Re: initrd and root= option
- From: kermit <cku192@xxxxxxxxx>
- Date: Thu, 29 Dec 2005 19:55:53 +0300
Joseph Harvell wrote:
> I have been using an initrd booting Linux for a long time now. But I
> have never understood the meaning of root= with an initrd and now that I
> am switching from devfs to udev, I can't seem to get the system to boot
> at all no matter what I pass in for root=. I used to pass in
> /dev/ram/0, and then pivot_root to the real root filesystem. But now I
> get a panic complaining about an invalid root device even before the
> initrd is mounted. I have tried /dev/ram/0 and /dev/ram0. My actual
> root filesystem is ext3 and resides on an LVM logical volume. In
> devfs, the block device would be /dev/london/root. Based on how I have
> udev setup, it would be /dev/london-root.
>
> So what is supposed to be passed in to root= when using an initrd? Is
> it the ramdisk or is it what the root filesystem will eventually be?
> And how does /proc/sys/kernel/real-root-dev play into this?
It is completely up to your initrd (meaning most likely your distribution).
If you use RH derivative mkinitrd, then root= is supposed to be real root
device. Kernel computes (attempts to) device number for it and stores as
real-root-dev; later on initrd script extracts it and creates /dev/root to
mount root on. It avoids hardcoding root path in initrd.
But you are free to hardcode root path in initrd ...
> Also, am I
> still supposed to be using pivot_root in Linux 2.6?
>
I can only say that it is still used by at least one major distro out
there ... do not break things that just work :)
To your original problem - if otherwise your initrd works, try passing
"root=/dev/ram". But I am rather confused that /dev/ram0 did not work. Do
you have CONFIG_BLK_DEV_RAM=y? Otherwise it is not going to work at all.
=arvi=
.
- References:
- initrd and root= option
- From: Joseph Harvell
- initrd and root= option
- Prev by Date: Re: How to Install Debian Sarge on SATA drive???
- Next by Date: Re: linux on a usb stick : crc error
- Previous by thread: Re: initrd and root= option
- Next by thread: Kernel 2.6 / SATA / Marvell LAN - need kernel config help
- Index(es):
Relevant Pages
|