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

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

 



> 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.

> 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
$

> 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".

> Sanity check: Is what you wrote the whole and
> unmodified content of your grub.conf?

At first I posted the supposedly relevant fragments.

The full glory of 76 lines now appears below.

Play proceeds independently of this thread, so the
timestamped snapshot you see here doesn't byte for
byte match the undated context for the fragments you
saw before.

> Sanity check: grub.conf? My grub definitely calls it
> menu.lst

See the tty log below.  I use find -printf in place
of ls -l to fit within the 54 column limit of the
path to you thru which this post will pass.

$ date
Tue Jun 24 10:22:59 MDT 2003
$
$ find /etc/grub.conf -printf '%p ->\n%l\n'
/etc/grub.conf ->
../boot/grub/grub.conf
$
$ find /boot/grub/menu.lst -printf '%p ->\n%l\n'
/boot/grub/menu.lst ->
./grub.conf
$
$ sudo cat /boot/grub/grub.conf | wc
     76     282    2422
$
$ sudo cat /boot/grub/grub.conf | sed
's/-[a-oq-z][a-z][a-z]/-xyz/'
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making
changes to this file
# NOTICE:  You have a /boot partition.  This means
that
#          all kernel and initrd paths are relative to
/boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-xyzsion ro root=/dev/hda2
#          initrd /initrd-xyzsion.img
#boot=/dev/hda
default=5
timeout=300
splashimage=(hd0,0)/grub/splash.xpm.gz
#append="hdc=ide-xyzi"  # -xyz inserted to turn on the
IDE-SCSI driver for DVD-RAM(?)
# title Red Hat Linux (2.5.72-pel)
#       root (hd0,0)
#       kernel /vmlinuz-2.5.72-pel ro root=LABEL=/
#       initrd /initrd-2.5.72-pel.img
 
 
title rhl(2.4.19-xyz)
        root (hd0,0)
        kernel /linux-2.4.19-xyz root=/dev/hda2
 
title rhl(2.5.73-xyz)
        root (hd0,0)
        kernel /linux-2.5.73-xyz root=/dev/hda2
 
title Red Hat Linux (2.5.73-pel)
        root (hd0,0)
        kernel /vmlinuz-2.5.73-pel ro root=/dev/hda2
        initrd /initrd-2.5.73-pel.img
title Red Hat Linux (2.4.21-rh-pel)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-rh-pel ro
root=/dev/hda2
        initrd /initrd-2.4.21-rh-pel.img
title Red Hat Linux (2.4.20-rh-pel)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-rh-pel ro root=LABEL=/
        initrd /initrd-2.4.20-rh-pel.img
title Red Hat Linux (2.4.20-pel)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-pel ro root=LABEL=/
        initrd /initrd-2.4.20-pel.img
title Red Hat Linux (2.4.21-xyz)
        root (hd0,0)
        kernel /vmlinuz-2.4.21-xyz ro root=/dev/hda2
        initrd /initrd-2.4.21-xyz.img
# title Red Hat Linux (2.4.20-18.9patched)
#       root (hd0,0)
#       kernel /vmlinuz-2.4.20-18.9patched ro
root=LABEL=/
#       initrd /initrd-2.4.20-18.9patched.img
title Red Hat Linux (2.4.20-18.9custom)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-18.9custom ro
root=LABEL=/
        initrd /initrd-2.4.20-18.9custom.img
# title Red Hat Linux (2.4.20-13.9patched)
#       root (hd0,0)
#       kernel /vmlinuz-2.4.20-13.9patched ro
root=LABEL=/
#       initrd /initrd-2.4.20-13.9patched.img
# title Red Hat Linux (2.5.69try)
#       root (hd0,0)
#       kernel /vmlinuz-2.5.69try ro root=/dev/hda2
#       initrd /initrd-2.5.69try.img
# title Red Hat Linux (2.4.20-13.9built)
#       root (hd0,0)
#       kernel /vmlinuz-2.4.20-13.9built ro
root=LABEL=/
#       initrd /initrd-2.4.20-13.9built.img
# title Red Hat Linux (2.4.20-13.9)
#       root (hd0,0)
#       kernel /vmlinuz-2.4.20-13.9 ro root=LABEL=/
#       initrd /initrd-2.4.20-13.9.img
# title Red Hat Linux (2.4.20-8)
#       root (hd0,0)
#       kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
#       initrd /initrd-2.4.20-8.img
#
$


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
--
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