This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fw: ramdisk--------How to build a ramdisk file in Cygwin?


----- Original Message ----- 
From: "liangalei" <liangalei@mail.cs.sjtu.edu.cn>
To: "Jason Morgan" <jason.morgan@citel.com>
Sent: Thursday, July 11, 2002 12:22 PM
Subject: ramdisk--------How to build a ramdisk file in Cygwin?


> Hi,
> 
> thanks you for help from last email (which is about kernel cross-compile for arm core), and now I meet a new problem when I want to build a "ramdisk".
> 
> Following gives two messages of "mkramdisk script" and "error report", like the command "mount" given by Cygwin is very different from "mount" in Linux, like "mount -t ext2" is an invalid command.
> 
> How to build a ramdisk file in Cygwin?
> 
> the script "mkramdisk" I got is as following
> =====================================================
> echo "YOU MUST BE ROOT TO DO THIS"
> 
> rm -f ramdisk.be.*
> 
> # Make a file of 
> dd if=/dev/zero of=ramdisk.be bs=1k count=16384
> 
> # Make a file system on it. 
> /sbin/mke2fs -vm0 -F ramdisk.be 16384
> 
> # Mount it as a file systm
> mount -o loop -t ext2 ramdisk.be /mnt
> 
> # copy the big endian tree to this file system
> cd bigtree
> cp -R -p -d -f . /mnt
> cd ..
> 
> # umount the file system
> umount /mnt
> 
> # gzip it
> gzip -v9 ramdisk.be
> 
> # copy it to tftpboot
> cp ramdisk.be.gz      /tftpboot/ramdisk_img.gz
> 
> if [ ! -d ../../bin ]; then mkdir -p ../../bin; fi
> cp ramdisk.be.gz      ../../bin/ramdisk_img.gz
> 
> rm -f ramdisk.be.*
> =========================================================================
> 
> 
> And Error messages reported by Cygwin shell as follows
> ========================================================================
> tar: bigtree/dev/ttyx2: Cannot mknod: Function not implemented
> tar: bigtree/dev/ptyx3: Cannot mknod: Function not implemented
> tar: bigtree/dev/ttyx3: Cannot mknod: Function not implemented
> ................
> 
> tar: Error exit delayed from previous errors
> 
> done copying files
> tar cvfz bigtree.tar.gz bigtree >/dev/null
> YOU MUST BE ROOT TO DO THIS
> 16384+0 records in
> 16384+0 records out
> /sbin/mke2fs: not found
> usage mount [-bfstux] <win32path> <posixpath>
> -b  text files are equivalent to binary files (newline = \n)
> -f  force mount, don't warn about missing mount point directories
> -s  add mount point to system-wide registry location
> -t  text files get \r\n line endings (default)
> -u  add mount point to user registry location (default)
> -x  treat all files under mount point as executables
> 
> [-bs] --change-cygdrive-prefix <posixpath>
>     change the cygdrive path prefix to <posixpath>
> --show-cygdrive-prefixes
>     show user and/or system cygdrive path prefixes
> --import-old-mounts
>     copy old registry mount table mounts into the current mount areas
> umount: /mnt: No such file or directory
> ramdisk.be:              99.9% -- replaced with ramdisk.be.gz
> bash-2.04$
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]