Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-04-2005, 12:50 PM   #1
LQ Newbie
Registered: Dec 2005
Location: Russia
Distribution: Gentoo Linux
Posts: 2

Rep: Reputation: 0
FSCK on mounted partition

I used a Partition Magic to add more space to my root partition. But it halted, because of errors in partition. I booted Linux, printed "fsck /dev/hdb6", it said that it can cause severe filesystem damage, but I continued anyway... So, it halted with error, then any program could not be started.
I rebooted and got a kernel panic, because of inability to mount root fs. I booted Live-CD, tried to use fsck - but it said something like "This inconsistency could not be fixed by fsck. Use dumpe2fs -b and e2fsck -L filename". I know, that is because of bad blocks and I need to get list of it. But dumpe2fs failed with an error: "Root inode directory corrupted". Partition Magic's checker failed with a message "Inode 0 contains an illegal block 0".
I used R-Linux to recover my data, but all I saw were some multiplied remaining blocks of my data. After some fsck's, Partition Magic say that there is 37% bad blocks, and says that my partition contains illegal superblock. What can I do to recover my data and (maybe) partition?
Old 12-04-2005, 01:41 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
hmm, so despite the "severe filesystem damage" warning you still did it??

if you've got a corrupted superblock then one of the few tricks i'd know would be to use parted to scan the rest of the partition to look for spare superblocks. not something i've done myself, but if it finds one you can fsck it (when it's *NOT* mounted... not that you can mount it of course...) providing the spare superblock with the -b option.
Old 12-04-2005, 01:55 PM   #3
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
There is a howto here on discovering where your backup superblocks are:

This may or may not help you - sounds like over a third of the partition is wrecked.

Hope the lesson is not lost on you: never run fsck on a mounted filesystem.
Old 12-05-2005, 02:28 PM   #4
LQ Newbie
Registered: Dec 2005
Location: Russia
Distribution: Gentoo Linux
Posts: 2

Original Poster
Rep: Reputation: 0
I used mke2fs -n /dev/hdb6 - it showed me the backuped superblocks.
I tried to fsck, and mount with -o sb=xxxxx, but it failed
I was inattentive, so I used to press 'y'...
Now I'll try find superblock using your method. But it also says me that my inodes are corrupted, their size might be 0... And many other errors.


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
fsck failure at boot time - hda mounted twice Steve2001 Linux - General 1 07-30-2005 11:45 AM
Problems fixing partition with fsck bendahmon Linux - General 4 05-19-2005 02:41 PM
Error in partition. Unexpected Inconsistency, won't let me run fsck! mlsbraves Slackware 2 04-15-2005 10:03 PM
fsck used in mounted hd terryhon Linux - Newbie 5 10-07-2004 03:52 AM
Corrupted partition won't fsck --rebuild tree. Need help! bruno buys Linux - Hardware 2 03-28-2004 04:22 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 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
Open Source Consulting | Domain Registration