Root Label Problem - Kernel Panic - Redhat

This is a discussion on Root Label Problem - Kernel Panic - Redhat ; Hi, I moved the RHEL4 from IDE to new SATA disk. I have labeled the new root and swap partitions, but I cant get the system running. Just after initrd load kernel panics: mkrootdev: label /1 not found Mounting root ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Root Label Problem - Kernel Panic

  1. Root Label Problem - Kernel Panic

    Hi,
    I moved the RHEL4 from IDE to new SATA disk. I have labeled the new root and
    swap partitions, but I cant get the system running. Just after initrd load
    kernel panics:

    mkrootdev: label /1 not found
    Mounting root filesystem
    mount: error 2 mouting ext3
    switchroot: mount failed: 22
    Kernel panic - not syncing: Attempted to kill init!


    Why kernel can not find the label? What I did wrong?


    # uname -r
    2.6.9-42.0.3.EL

    # e2label /dev/sda1
    /1


    # cat /etc/fstab
    # This file is edited by fstab-sync - see 'man fstab-sync' for details
    LABEL=/1 / ext3 defaults 1 1
    none /dev/pts devpts gid=5,mode=620 0 0
    none /dev/shm tmpfs defaults 0 0
    none /proc proc defaults 0 0
    none /sys sysfs defaults 0 0
    LABEL=SWAP-sda2 swap swap defaults 0 0
    /dev/hdb /media/cdrecorder auto
    pamconsole,exec,noauto,managed 0 0



    # cat /etc/grub.conf
    default=0
    timeout=5
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    hiddenmenu
    title RHEL4 (2.6.9-42.0.3.EL)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.9-42.0.3.EL ro root=LABEL=/1
    initrd /boot/initrd-2.6.9-42.0.3.EL.img
    none * * * * * * * * * */dev/shm * * * * * * * *tmpfs * defaults * * * *0 0
    none * * * * * * * * * */proc * * * * * * * * * proc * *defaults * * * *0 0
    none * * * * * * * * * */sys * * * * * * * * * *sysfs * defaults * * * *0 0
    LABEL=SWAP-sda2 * * * * swap * * * * * * * * * *swap * *defaults * * * *0 0
    /dev/hdb * * * * * * * */media/cdrecorder * * * auto *
    pamconsole,exec,noauto,managed 0 0



    Thanks for any help.
    Sorry for my poor english.

    --
    Simon

  2. Re: Root Label Problem - Kernel Panic

    On Fri, 22 Dec 2006 16:12:11 +0100, Simon wrote:

    > Hi,
    > I moved the RHEL4 from IDE to new SATA disk. I have labeled the new root
    > and swap partitions, but I cant get the system running. Just after
    > initrd load kernel panics:
    >
    > mkrootdev: label /1 not found
    > Mounting root filesystem
    > mount: error 2 mouting ext3
    > switchroot: mount failed: 22
    > Kernel panic - not syncing: Attempted to kill init!


    Are you sure the label should be "/1" and not just "/"? The labels seem to
    get appended with a number any time you move them.

    Boot to a rescue cd and either fix the label or put the actual partition
    name in your fstab (/dev/whatever it is) instead of the label.

+ Reply to Thread