Well, I now have a 6 meg ramdisk working. Only problem was that I couldn't
get 'holes' working so I compressed it with gzip. It takes about 45
seconds to decompress :-(
-----BEGIN GEEK CODE BLOCK-----
GCS d- s:+ a--- C++ UL++++ P++++ L++ E W+++ N+ o K- w---
O M- V- PS PE+ Y+ PGP t 5 X+ R- tv b+ DI+ D+
G e- h! !r y
------END GEEK CODE BLOCK------
On Mon, 13 Mar 2000, 권석근 wrote:
> Hi, Bobby Lai
> This is my little thought about generating 1MB ramdisk.
> (Did you get right answers already, then discard this msg.)
> Well, I didn't try to make 1MB ramdisk with holes utils.
> (I am using 1MB ramdisk now but it's a pre-built one come
> from coldfire userland source tree)
> I just tried make ramdisk following your steps on my desk top linux like
> $ dd if=/dev/zero of=/dev/ram0 bs=2k count=512
> $ mkfs.ext2 -b 2048 /dev/ram0 512 (my RH5.2 mkfs.ext2 didnt have -N option)
> and tried to mount /dev/ram0 on /mnt. but it failed!
> (could get right super block?)
> Therefore i re-tried it without block size option, like this
> $ dd if=/dev/zero of=/dev/ram0 count=1024
> $ mkfs.ext2 /dev/ram0 1024
> and after this i could mount /dev/ram on /mnt.
> in my thought, ramdisk do not allow block size options like 2048 :-)
> have you tried this ramdisk image with holes?
> >Sorry, may I ask a stupid question.
> >I am trying to create a 1 mega byte size ramdisk.
> >On my linux-PC side.
> >I use the commands as follows:
> >$ dd if=/dev/zero of=/dev/ram0 bs=2k count=512
> >$ mkfs.ext2 -b 2048 -N 64 /dev/ram0 512
> >$ dd if=/dev/ram0 of=raw1m64i.img
> >In the directory "ramimage" has a tool "holes" of pilot user space.
> >./holes raw1m64i.img > ramfs1m64i.img
> >But .... I copy ramfs1m64i.img to "/romdisk/ramfs.img", replace the old
> >ramfs.img file.
> >When I create a new image, expanding disk fail .....
> >Can someone tell me how to create a new ramdisk file for ucsimm ??
> >Thank you !
> >This message resent by the firstname.lastname@example.org list server
> This message resent by the email@example.com list server http://www.uClinux.com/
This message resent by the firstname.lastname@example.org list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:34 EST