Mount problem from initrd
From: Philipp Taprogge (Philipp.Taprogge_at_gmx.net)
Date: 04/28/04
- Next message: Robert Redelmeier: "Re: Spindle speed of Hard Disk- How to find"
- Previous message: Villy Kruse: "Re: send to socket: Bad file descriptor"
- Next in thread: Jerry Peters: "Re: Mount problem from initrd"
- Reply: Jerry Peters: "Re: Mount problem from initrd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Robert Redelmeier: "Re: Spindle speed of Hard Disk- How to find"
- Previous message: Villy Kruse: "Re: send to socket: Bad file descriptor"
- Next in thread: Jerry Peters: "Re: Mount problem from initrd"
- Reply: Jerry Peters: "Re: Mount problem from initrd"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|