problem with creating ramdisk: kernel loads, but hangs when it tries to mount ramdisk

problem with creating ramdisk: kernel loads, but hangs when it tries to mount ramdisk

Post by Oscar Stiffelma » Sat, 27 Feb 1999 04:00:00



Hi,

I built a ramdisk root partition for redhat 5.2, but it seems to crash as
soon as the kernel jumps to the ramdisk.
The last message I see is:
    VFS: Mounted root (ext2 fileseystem).

I built the ramdisk according to the instructions in docs/bootdisks
(followed it precisely)

Basically, I zeroed /dev/ram, made it an ext2 file system, and then mounted
it on /mnt.
I then created /mnt/dev, /mnt/etc, /mnt/bin, /mnt/sbin, /mnt/lib, /mnt/usr,
and /mnt/var
I populated dev with cp -dpR /dev /mnt
I then copied most of the /bin and /sbin binaries into their respective
locations.  I issued an ldd /mnt/bin/init and copied all of the libraries
required by init.  I stripped out the debug information with objmove from
the libraries and maintained symbolic links.

I then unmounted /mnt and copied the contents of /dev/ram to a file with a
dd if=/dev/ram of=rootfs bs=1k
It said there was a read/write error at this step.  Not sure what caused the
error.

Could someone post a generic redhat 5.2 (intel) ramdisk root partition (one
that can be mounted by the kernel and contains basic binaries)?  I would
really like to try a ramdisk that I know is working.

Thanks,

Oscar Stiffelman

 
 
 

problem with creating ramdisk: kernel loads, but hangs when it tries to mount ramdisk

Post by Villy Kru » Sat, 27 Feb 1999 04:00:00




>Hi,

>I built a ramdisk root partition for redhat 5.2, but it seems to crash as
>soon as the kernel jumps to the ramdisk.
>The last message I see is:
>    VFS: Mounted root (ext2 fileseystem).

>I built the ramdisk according to the instructions in docs/bootdisks
>(followed it precisely)

>I then unmounted /mnt and copied the contents of /dev/ram to a file with a
>dd if=/dev/ram of=rootfs bs=1k
>It said there was a read/write error at this step.  Not sure what caused the
>error.

Probably tried to put too much information into the ramdisk.  Not sure
if the limit is 2Meg or 4Meg.

Villy

 
 
 

problem with creating ramdisk: kernel loads, but hangs when it tries to mount ramdisk

Post by Allan Jone » Tue, 02 Mar 1999 04:00:00





>>Hi,

>>I built a ramdisk root partition for redhat 5.2, but it seems to crash as
>>soon as the kernel jumps to the ramdisk.
>>The last message I see is:
>>    VFS: Mounted root (ext2 fileseystem).

>>I built the ramdisk according to the instructions in docs/bootdisks
>>(followed it precisely)

>>I then unmounted /mnt and copied the contents of /dev/ram to a file with a
>>dd if=/dev/ram of=rootfs bs=1k
>>It said there was a read/write error at this step.  Not sure what caused
the
>>error.

I can make 4Meg RamDisk images; anything larger, and I get the same type of
problem where the system hangs at boot.
 
 
 

1. ramdisk for linux: mount /ramdisk

Here's a feature I would like--anyone else seen something like this:

I would like to be able to mount a ram disk in the filesystem,
somewhat like an Amiga ramdisk.  

# cat /etc/fstab
/dev/hda6                  /                    ext2    defaults
/dev/hda1                  /boot                ext2    defaults
8megs of physical memory   /mnt/ramdisk         ram     defaults

# mount /mnt/ramdisk

This would be terribly convenient.  Anyone else wondered about this?

--

  reads.vcf
< 1K Download

2. Adaptec 1520A Question

3. Q: RAMDISK, how to make use of a ramdisk specified in kernel Makefile

4. Wanted: Unix System Administrators

5. lilo.config to load hda1 to ramdisk & mount it as root fs?

6. new tool about X11

7. loadlin won't mount initial ramdisk created with mkinitrd

8. How to create a link to a link

9. - ramdisk.image.gz (0/78) Re: potato on beige G3: where is ramdisk?

10. init ramdisk vs. root ramdisk

11. ramdisk driver initialized: 16 ramdisks of 4096K size

12. upgrading kernel: failure to load SCSI ramdisk

13. Kernel panic on RAMDISK loading