LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Panic: pivot_root (/sysroot, /sysroot/initrd) Faild: 2 Help Needed (https://www.linuxquestions.org/questions/linux-general-1/kernel-panic-pivot_root-sysroot-sysroot-initrd-faild-2-help-needed-127301/)

KingofBLASH 12-19-2003 01:26 PM

Kernel Panic: pivot_root (/sysroot, /sysroot/initrd) Faild: 2 Help Needed
 
I just repartitioned my hard drive to create more room for Oggs. So I created the new hard drive, edited /etc/fstab to change the new drive letters (I moved some partitions), and edited /etc/lilo.conf to reflect that it should boot from /dev/hde6 and not /dev/hde10

So I boot up my computer and I see a blank screen with this error:

pivot_root (/sysroot, /sysroot/initrd) Failed: 2

And my computer dies without doing anything. I'm running Mandrake 9.2. Anybody know what is wrong and what I might need to do to fix it?

Thanks in advance,

Dan

aaa 12-19-2003 02:10 PM

Decompress your initrd (with 'gzip -d'), mount it as a loopback file ('mount initrdfile /a/folder -o loop'), then post the contents of the 'linuxrc' file in that's in there.

KingofBLASH 12-19-2003 02:27 PM

#!/bin/nash

echo "Loading reiserfs.o module"
insmod /lib/reiserfs.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating root device
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem with flags notail,noatime
mount -o notail,noatime --ro -t reiserfs /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd
echo Remounting devfs at correct place if necessary
handledevfs
umount /initrd/proc

aaa 12-19-2003 02:39 PM

Post your lilo.conf. Did you run 'lilo' to apply changes?

KingofBLASH 12-19-2003 02:44 PM

No, I didn't run lilo after editing lilo.conf. Can I run it from Knoppix on the lilo.conf file?

-Dan

KingofBLASH 12-19-2003 04:07 PM

The entries in the /dev in the initrd are:

console null ram systty tty1 tty2 tty3 tty4

aaa 12-19-2003 04:29 PM

In Knoppix, copy Mandrake's lilo.conf to /etc . Then run lilo. Changes to lilo.conf are never applied unless you run lilo.

aaa 12-20-2003 09:16 AM

Wait, lilo won't work in Knoppix right away because the files are in different places. Edit lilo.conf to show where the files are. Ex:
#Before
image =/boot/vmlinuz-mdk

#After, in knoppix
image=/mnt/hde6/boot/vmlinuz-mdk

g-rod 12-20-2003 10:43 AM

Make sure that the root partion (the one mounted on /) has a directory initrd. This directory is empty and never contains anything, but if it does not exists pivot_root at the end of linuxrc script in the initrd. It swaps the initial root device with the actual and then unmounts the ram diskk.
Let me know how it goes.


All times are GMT -5. The time now is 05:27 AM.