Re: grub root=/dev/hd$v$n not root=LABEL=/ why

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 24, 2003 at 09:49:19AM -0700, Pat LaVarre wrote:
> > From: Jan Hudec [mailto:bulb@ucw.cz] ...
> > panic  ... ends in 00:00 ...
> > was not able to make sense
> > from what was passed as root=
> 
> Cogent, helpful, thanks again.
> 
> > > With the redhat.com kernels I have installed,
> > > root=LABEL=/ works,
> > > but with my kernel.org kernels,
> > > only root=/dev/hda2 works.
> >
> > root=LABEL=/ seems to be implemented
> > by RedHat specific patch.
> 
> Me I'm slow to accept the theory of a Red Hat patch
> because root=LABEL=/ does work when I build
> kernel.org source almost as is.  I only add a .config
> from Red Hat, and I build in a Red Hat Linux.
> 
> I have not yet modified my copy of the kernel.org
> source in any other way.

Well, I did a brief lookup on linux-kernel list and it seems, that the
feature is not implemented in kernel, but in RedHat initrd (after all,
it is the RightWay to do it there).

> > Sanity check ... Sanity check ... Sanity check ...
> 
> Thanks for finding the time to ask.  To my newbie
> eye, all these checks pass, I'm curious to know if
> you agree.  Specifically I see:
> 
> > IIRC each menu section must end
> > in `boot' command ...
> 
> The string "boot" appears in three lines, but never
> as a command.  I quote:
> 
> $ sudo grep -i boot /boot/grub/grub.conf
> # NOTICE:  You have a /boot partition.  This means
> that
> #          all kernel and initrd paths are relative to
> /boot/, eg.
> #boot=/dev/hda
> $

Grub should imply it at the end of menu entry.

> > Sanity check: Are you _really_ using it?
> > When you get the grub boot menu,
> > press `e' and inspect what grub is about to execute.
> 
> Diff by eye says same.  Pressing e to edit the kernel
> line and later b to try the edited lines panics if
> "root=LABEL=/" and works if "root=/dev/hda2".

That definitely means, that grub is doing it's job right.

The fact the first does not means, that kernel can't figure out what
"LABEL=/" means.

It seems it is really implemented in the initrd. That means that you
have to boot with /dev/hd?? when booting without initrd.
(I don't know, what is in redhat initrd - if it's a shell script, you
might try to check it).

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux