LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-14-2006, 10:06 AM   #1
cjbrooker
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Rep: Reputation: 0
Fedora fails to boot after crashing


Hi,

I have a dual boot PC with Fedora 4 and Windows XP. Fedora froze yesterday and I had to reboot using the reset button on the PC. It hasn't booted successfully since. The error I'm getting is:

EXT-fs : dm-0 : couldn't mount because of unsupported optional features (2000200)
mount error 22 - mounting ext 3
ERROR opening /dev/console!!!!:2
error dup2'ing fd of 0 to 0
error dup2'ing fd of 0 to 1
error dup2'ing fd of 0 to 2
switchroot, mount failed : 22
kernel panic - not syncing: Attempting to kill init.


I have the following kernels in GRUB and they all give the same message:
2.6.14-1.1653_FC4
2.6.14-1.1644_FC4
2.6.14-1.1637_FC4
2.6.13-1.1532_FC4
2.6.11-1.1369_FC4

I then tried booting from the Rescue CD but this can't find the Linux partition. When trying a manual mount of the partition I get the following:
# mkdir /mnt/sysimage
# mount -t ext3 /dev/hda3 /mnt/sysimage
Mount failed - invalid argument.

This is weird because the fdisk command lists all the correct partitions:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 5099 40957686 7 HPFS/NTFS
/dev/hda2 5100 5112 104422+ 83 Linux
/dev/hda3 5113 9964 38973690 8e Linux LVM

Any help would be greatly appreciated as I need to try and recover some data before resorting to a reinstall.

Cheers,

Chris.
 
Old 01-14-2006, 10:42 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You probably need to fsck the partition. Boot the rescue disk again, and (before attempting to mount) issue:

fsck -C -y /dev/hda3
 
Old 01-14-2006, 11:29 AM   #3
cjbrooker
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the quick response.

I've tried this but get the following message:

fsck 1.37 (21-Mar-2005)
WARNING: couldn't open /etc/fstab: No such file or directory.
e2fsck 1.37 (21-Mar-2005)
Couldn't find ext2 superblock, trying backup blocks....
fsck.ext2: Bad magic number in superblock while trying to open /dev/hda3

The superblock could not be read or does not describe the correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

I tried to run the e2fsck command and got the same message....

Not sure what to try next.

Cheers,

Chris.
 
Old 02-25-2006, 04:22 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
Just had the same problem, and what you need to do is run fsck -c /dev/mapper/VolGroup00-LogVol00 (assuming you've used the standard defaults).

The point is that the ext3 fs is "hidden" in the logical volume partition, and "exposed" by the mapper device.

Note: The -c is a "bad block" check, and it can take a long while to run. (Like overnight.)
 
Old 03-07-2006, 03:41 AM   #5
cjbrooker
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the suggestion, however I don't have this directory under /dev/mapper. I have an empty directory called control under this path.

Is there any way that I can find out where my "hidden" logical volume partion is?
 
Old 03-10-2006, 10:31 AM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 347Reputation: 347Reputation: 347Reputation: 347
Try (from rescue) a pvscan to see if the logical volume is even found. Perhaps the lvchange -ay during boot is failing?

All I can suggest is to Google for "logical volume disk recovery," and, if you find anything that works, let us know.

Whatever you, don't run fsck on the raw logical volume device since it is likely to kill any hope of recovery.
 
Old 03-27-2006, 01:19 PM   #7
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,274

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Expanding on the good info already presented by PTrenholme...

Boot Knoppix
Open a terminal window
Code:
$ su
# modprobe dm-mod
# apt-get update
# apt-get install lvm-common lvm2
# lndir /lib/lvm-200/ /sbin/
# pvscan
# vgchange -a y
# ls /dev/mapper (hopefully you'll see your logical volumes listed!)
# fsck -f /dev/mapper/XXX-YYY  (replace XXX-YYY with the actual volume(s) giving you problems)
One thing different, ... I think you want to run "vgchange -a y" rather than "lvchange -a y" as suggested earlier. Maybe lvchange can do similar things to vgchange in this regards. I've always used vgchange myself, and never investigated lvchange for making things visible.

If things are really hosed, you may have to invoke the specific fsck variant for whatever filesystem you are using (e.g., "e2fsck", etc.)

And reiterating what PTrenholme said, do NOT run fsck on "/dev/hda3" and try to repair it. You may well DESTROY it. Your /dev/hda3 is an LVM physical volume, not a filesystem!
 
Old 06-12-2006, 01:54 PM   #8
cjbrooker
LQ Newbie
 
Registered: Jan 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the help on this but in the end I have decided to reinstall Linux (Ubuntu Dapper Drake).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora core 4 won't boot from grub, fails when changing root silex_88 Fedora 3 10-01-2005 04:58 PM
Fedora Install Crashing habala Fedora 1 01-18-2005 03:45 AM
Fedora W/ KDE Crashing jeopardyracing Linux - Newbie 3 09-23-2004 07:47 AM
After adding ide to SATA(via) machine, boot fails - Fedora core 2 Jemsquash Linux - Hardware 6 09-21-2004 09:41 AM
Boot of Fedora 2 T2 fails after upgrade geustace Fedora 6 04-27-2004 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration