Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 04-14-2004, 09:06 AM   #1
LQ Newbie
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2

I've installed Linux on a drive with the intention of moving the drive to another laptop that doesnt have any floppy or CD drive. Initially this failed because the kernel was set for the wrong type of CPU so I put the drive back in the original laptop and recompiled for a compatible CPU, however on booting back up in the new laptop I got the following error

pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2

I've found some things on this raging from recreating a directory (/init-somthing) which is still there to checking the ext3 setting in .config file (but I have no idea what .config file or where to find it) because it has something to do with the ram disk filesystem being wrong

Its probably worth mentioning that the unmodified kernel boots without a problem.

Old 04-17-2004, 02:29 PM   #2
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,074

Rep: Reputation: 53
So, did you create a compatible initrd image for your self-built kernel? man mkinitrd has all the things you need to know
Old 04-17-2004, 02:41 PM   #3
LQ Newbie
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
I gave up in the end and reinstalled (I'd tried removing the RAM disk from the kernel and that only made things worse). Fortunately the next time I recompiled I didnt run into the same problem (no idea why because I didnt do anything differently)


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 Off
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
failed initrd unmount safeboot mode asainat Mandriva 3 06-25-2004 09:58 AM
Boot initrd FAILED!? tumana Linux - Newbie 6 04-06-2004 07:32 PM
Kernel Panic: pivot_root (/sysroot, /sysroot/initrd) Faild: 2 Help Needed KingofBLASH Linux - General 8 12-20-2003 09:43 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:23 PM.

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