LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-20-2005, 11:29 AM   #1
jcspray
Member
 
Registered: Mar 2004
Location: York, UK
Distribution: Ubuntu
Posts: 132

Rep: Reputation: 15
Boot failure at pivot_root


Hello,

My situation is as follows: the computer has two hard drives, hdb and
sda. It's running off hdb right now, but ultimately the goal is to use
only sda.

On hdb9 there is a working breezy install, with a custom-compiled kernel
which was needed in order to talk to sda. sda5 contains an ext3
filesystem containing everything from hdb9, copied using
Code:
find . -xdev
-print | cpio -padm /mnt
I try to boot from sda5 with GRUB using:
Code:
root (hd0,4)
kernel /boot/vmlinuz-2.6.14-rc4 root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.14-rc4
boot
This works up until the point where init tries to start, whereupon it
gives the error:
Code:
pivot_root: no such file or directory
/sbin/init: 428: cannot open /dev/console
pivot_root is apparently like a souped-up chroot, used in the ubuntu
boot process for remounting the root filesystem.

My googling returned two possible causes:
* The /initrd directory that's used by pivot_root does not exist.
But it's right there staring at me on /dev/sda5
* The initrd image does not contain the correct modules to mount
this filesystem. My initrd contains sata_sis (sata driver for
this controller), libata, scsi_mod, sr_mod - that should be
everything I need, surely? Anyway, shouldn't the kernel have
panicked and said it couldn't mount the root filesystem in this
case?

I am stumped. Appreciations suggested.
 
Old 10-20-2005, 11:51 AM   #2
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 30
Why are you using an initrd anyway?

If you've compiled the kernel yourself, compile in all the stuff you need to boot, then you don't need an initrd.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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
Pivot_root: No such file or directory LinuxChristian Debian 3 07-22-2005 06:35 AM
Boot problem w/FC2 - DISK BOOT FAILURE maugou Fedora 2 06-30-2004 06:37 PM
li error and boot disk gives boot failure message Mr.Scum Linux - General 5 05-20-2003 10:41 AM


All times are GMT -5. The time now is 11:49 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration