Mount problem from initrd

From: Philipp Taprogge (Philipp.Taprogge_at_gmx.net)
Date: 04/28/04


Date: Wed, 28 Apr 2004 11:21:48 +0200

Hi!

Perhaps anyone here has a clue for me...
I am building a very small linux system to boot off an IDE-Flash
module and run from a ramdisk. To this end I have built an initrd
containing a statically linked busybox-1.00-pre4 and a 2.4.26 kernel
(with build-in ide and ext2 support).
My linuxrc, which is supposed to set up the ramdisk that will contain
the root-fs, looks something like this:

---
#!/bin/ash
PATH=/bin:/sbin
mount -o remount,rw /
mount -o ro /dev/hda1 /mnt
gunzip /mnt/rootfs.gz > /dev/ram1
umount /mnt
pivot_root /dev/ram1 initrd
exec /sbin/init
---
The problem is that "mount -o ro /dev/hda1 /mnt" fails with "mount of 
/dev/hda1 on /mnt failed: no such file or directory".
/bin/mount is a smylink to busybox, /dev/hda1 a block special device 
with major 3, minor 1, owned by root.root and rights 640 and /mnt is a 
directory owned by root.root with rights 755.
What do I fail to notice here?
Thanks for any clues you guys can offer.
	Phil


Relevant Pages

  • modifying initrd for kickstarting RH9
    ... modified init and have been able to just unzip the ramdisk, mount it, fill ... Or in another case ignore the ks.cfg I feed it; it won't mount ... I initially tried just making a bigger image (~1.5M larger than default, ... This yielded the invalid install tree msg. ...
    (RedHat)
  • Re: BOOT_CS
    ... the CRC32 of the decompressed RAM disk - and stop the boot process ... another kernel version / initrd to load. ... You cannot place the decompressed initrd at a maximum address before ... address minus ramdisk size if I remember ...
    (Linux-Kernel)
  • Re: [RFC] file extents for EXT3
    ... There is no reason to use ext3 in such a situation except ... Not only would the journal itself require a 1MB ramdisk, ... > (automatically supplied when the mount is read only, ... If you are interested in that, the ext3 code is _nearly_ ready to support ...
    (Linux-Kernel)
  • Re: nfs-mounting AIX fs from linux ramdisk client
    ... NFS filesystem. ... When the ramdisk tries to mount the required fs from the aix server ... Trying to mount the fs by the ramdisk fails after a long timeout. ... When the server is a linux system, ...
    (AIX-L)
  • Re: Source code for Install init
    ... Perhaps even a bad boot parameter? ... > Oh, looks like you are trying make a bootable tape, bare metal restore ... > that the initrd is loaded from tape*. ... ramdisk for a custom network kickstart. ...
    (RedHat)