LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-19-2003, 12:26 PM   #1
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
Unhappy 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
 
Old 12-19-2003, 01:10 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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.
 
Old 12-19-2003, 01:27 PM   #3
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Original Poster
Rep: Reputation: 15
#!/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
 
Old 12-19-2003, 01:39 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Post your lilo.conf. Did you run 'lilo' to apply changes?

Last edited by aaa; 12-19-2003 at 01:41 PM.
 
Old 12-19-2003, 01:44 PM   #5
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Original Poster
Rep: Reputation: 15
No, I didn't run lilo after editing lilo.conf. Can I run it from Knoppix on the lilo.conf file?

-Dan
 
Old 12-19-2003, 03:07 PM   #6
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Original Poster
Rep: Reputation: 15
The entries in the /dev in the initrd are:

console null ram systty tty1 tty2 tty3 tty4
 
Old 12-19-2003, 03:29 PM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
In Knoppix, copy Mandrake's lilo.conf to /etc . Then run lilo. Changes to lilo.conf are never applied unless you run lilo.
 
Old 12-20-2003, 08:16 AM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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
 
Old 12-20-2003, 09:43 AM   #9
g-rod
Member
 
Registered: Dec 2003
Location: Long Island, NY USA
Distribution: RedHat, SUSE
Posts: 336

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
initrd, pivot_root and initctl woes... Hans Zarkoff Linux - General 22 10-24-2007 01:06 PM
Linux bootup: kernel panic: pivot_root failed evansg Fedora 4 10-24-2007 09:56 AM
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2 5150 Red Hat 2 04-17-2004 02:41 PM
initrd & kernel panic asjapulk Linux - General 2 01-13-2004 01:35 AM
initrd kernel panic gavares Linux - General 0 08-25-2003 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration