LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-20-2006, 08:40 AM   #1
macroron
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Rep: Reputation: 0
hfs: unable to find HFS+ superblock VFS: Can't find ext3 filesystem on dev sdb.


Hello.

To be safe I bought an new identical 80gb sata harddrive to install Fedora Core 6 on. The old one has Fedora Core 5 installed on it. I installed fc6 on the new drive with the old drive unplugged. I then plugged the old drive back in. After configuring /boot/grub/grub.conf, I was able to see and switch to both systems on their own drive from the fc5 initial boot screen. Everything was working until I decided to enter the boot menu and boot into fc6 on the new disc directly. I get this message from dmesg on fc5:

hfs: unable to find HFS+ superblock
VFS: Can't find ext3 filesystem on dev sdb.

Using the rescue disc I chroot /dev/sysimage -> nano /boot/grub/grub.conf. But grub.conf is empty. I was able to do this on initial install to get the grub.conf entry info to add to the fc5 master grub.conf.

I can can still boot into fc5, but when I choose the fc6 entry on the fc5 initial boot screen, I get a lock up and kernel panic.

How can I correct this? Please help.

Pre thankyou,

-ron-
 
Old 11-20-2006, 11:44 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Quote:
Originally Posted by macroron
Hello.


I can can still boot into fc5, but when I choose the fc6 entry on the fc5 initial boot screen, I get a lock up and kernel panic.
Sounds like the booting kernel is aimed at the wrong partition or maybe something kernel. What's the exact panic? Is it, "Unable to mount Root FS on blah blah blah?"

Cheers,

Finegan
 
Old 11-20-2006, 12:05 PM   #3
macroron
LQ Newbie
 
Registered: Jul 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by finegan
Sounds like the booting kernel is aimed at the wrong partition or maybe something kernel. What's the exact panic? Is it, "Unable to mount Root FS on blah blah blah?"

Cheers,

Finegan

Hello,

Selecting the fc6 entry on the initial Grub boot screen from fc5 on the old sata drive.

Switchroot: Mount Failed: No Such File or Directory.
Kernel Panic Not Syncing: Attempted to Kill Init.

-ron-
 
Old 11-20-2006, 09:50 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
It looks like its initrd is aimed at a partition that's not even there. This could get mungly. Normally its just a matter of booting using the kernel argument of root=/dev/hda4 (or whatever is your root), but FC has always used initrds, so the kernel actually boots to the initrd, there's a tiny /init script in there that basically just loads a bunch of kernel modules (also in the initrd file, maybe does some other fun and games, and then exec's the init on the real root filesystem.

The only way I know of to fix that is to unpack the initrd, usually named initrd.gz, loopback mount it, hand edit the script so its aimed at the right partition, unmount the loop and repack it.

Something weird happened though if you've got FC5 on one partition and FC6 on another? Do you have /boot shared between the two? If I remember right (going back a bit, haven't messed with FC since 3ish), initrd.gz is a symplink to whichever one matches the kernel, like initrd-2.6.14.blah.tar.gz

This is why initrds suck.

Regardless, if you want to go wacky in depth on this:

Find the initrd that the FC6 kernel is using from your grub.conf
gunzip initrd.gz
mount -o loop initrd /mnt/somewhere
nano /mnt/somewhere/init (it might be /mnt/somewhere/sbin/init)
Look for the switchroot call, its probably going to be a variable, track up in the script to where that partition is declared, fix it, umount, re-gunzip, etc...

If you want to just forgo using an initrd, you kinda can't. FC modularized ext3 support and its one of the modules that the initrd loads before switch rooting. So, the kernel aimed directly at the rootfs can't read the rootfs. This is wacky fun.

If you want to compile your own kernel with all the ext3 support in it and just aim that right at the FC6 partition, its probably the best way to go, depending on your skill level. Heck 3/4s of this whole missive may seem pedantic.

Then again, I may be on crack and you can just pass the kernel root=/dev/hda4 or whatever and the initrd will take the kernel argument and run with it...

Cheers,

Finegan
 
  


Reply



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
error mounting ext3 filesystem... mount: /dev/hdd1: can't read superblock versaulis Linux - Software 5 11-26-2006 08:34 PM
Error mounting HFS+ volume: unable to find HFS+ superblock applewax Linux - General 3 05-31-2006 08:45 AM
How do i create HFS, HFS+ and RockRidge CD's? moore757 Linux - Software 2 06-19-2005 10:13 PM
VFS: Can't find ext3 filesystem manudath Linux - Hardware 0 02-22-2005 05:04 PM
Reformatting/splitting an ext3 fs into HFS scarr3d Linux - General 4 01-20-2004 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:54 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