Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-30-2005, 03:17 AM   #1
LQ Newbie
Registered: Jul 2005
Posts: 12

Rep: Reputation: 0
Can't boot, LVM and inode problem

I got a BIG pronlem.

When I try to start my Fedora 3 (with LVM) I get the following error .

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel <version> ro root=/dev/VolGroup00/LogVol00 rhgb quit

Uncompressing Linux, Ok, booting the kernel
audit(1130670158:0): initialized
Red Hat nash version 4.1.18 started
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00"now active
EXT3-fs error (device dm-0): ext3_get_inode_loc: unable to read inode block - inode=507905, block=1015810
mount: error 5 mounting none

And from there it is just haning there.

I am no expert and have no clue what I can do to repair this , I got some data on there that I realy must have.

THe problem started yesterdat, while I was working, I clicked on the bar to start my email program and I got the error that my mail program was not installed.

I then tried some other things but nothing was starting, I checked the messsage file (/var/log/ ) but nothing has been writting to this file for the last 30 minutes, Then I did something realy stupid, I rebooted

I tried to boot from FC3 DVD and the boot was mounted without a problem ( I think because this is outside LVM ) but the rest gives me problems.

Is there some tool I can run to recover from this.

Old 10-31-2005, 12:30 AM   #2
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
It sounds like you need to check one of the logical volume's ext3 filesystem with e2fsck.

Using your installation disk, boot into rescue mode (boot: linux rescue), but don't search for or mount the linux installation.

Since you have two logical volumes, one is probably / and the other is probably swap. From the rescue command prompt, run:

lvm vgscan
lvm lvscan
lvm vgchange -a y
e2fsck /dev/VolGroup00/LogVol00
e2fsck /dev/VolGroup00/LogVol01

Only one of the e2fsck commands may run correctly, since one of the logical volumes may be swap. The first three lvm commands are included just in case the logical volumes are not activated in rescue mode.

For more details, see:

man e2fsck
man vgscan
man lvscan
man vgchange
Old 11-01-2005, 01:34 PM   #3
LQ Newbie
Registered: Jul 2005
Posts: 12

Original Poster
Rep: Reputation: 0
finaly got it working


I finaly got this working. I used the following steps for this :

Boot from Fedora DVD, entered rescue mode
didn't search for installed distro
lvm vgchange --ignorelockingfailure -P -a y
fdisk -l ( to find partitions )
mkdir /mnt/boot
mount /dev/hda1 /mnt/boot
fsck -f -y /dev/VolGroup00/LogVol00

This did run for 8 hours, before I finaly decided to break the fsck.
When I tried to boot, I got another error, so I wan't happy.
Desided to try again with the same procedure (found somewhere on the internet)
and it repeated the last two inodes from the first try, but did continue and was finished within 30 minutes.

Rebooted, and everything was ok. Did even say that system wasn't shutdown properly and if I wanted to do a filesystem check :-)

Thanks for WhatsHisName, as he almost dictated the same procedure, and because not mounted, could even work better.

I made my backup more up to date and a script to do this everytime I issue a shutdown command.



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
Can't boot, LVM and inode problem Raoul68 Linux - Hardware 0 10-30-2005 03:14 AM
LVM at boot time Ubuntu 64 bits HellSpawn Ubuntu 1 07-13-2005 07:53 PM
can i put /boot in lvm partition benseghir Linux - Enterprise 1 06-15-2005 08:29 AM
Slack/Fedora dual-boot using LVM Phaete Fedora 3 04-14-2005 04:13 PM
activating LVM at boot time NGraphiX Linux - General 2 05-22-2003 05:37 AM > Forums > Linux Forums > Linux - General

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

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