Help answer threads with 0 replies.
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 02-10-2004, 03:18 PM   #1
Registered: Feb 2003
Location: Toronto
Distribution: RH8 / FC1 / Gentoo / Debian / FreeBSD / Centos / Ubuntu
Posts: 182

Rep: Reputation: 35
Corrupted ext3 Filesystem. How do I fix it?

I've been searching for how to fix my corrupted filesystem with little success. I tried "shutdown -r -F" -- didn't work. I'm running Fedora Core 1. Filesystem is ext3. Here's a screen dump:

[root@coolman root]# fsck /dev/sda2 -n -f
fsck 1.34 (25-Jul-2003)
e2fsck 1.34 (25-Jul-2003)
Warning! /dev/sda2 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences: +9668870 -9668871
Fix? no

/: ********** WARNING: Filesystem still has errors **********

/: 201321/5183584 files (0.7% non-contiguous), 1015131/10361925 blocks
[root@coolman root]#

Everything seems to work fine. Should I even be concerned about this?

Old 02-10-2004, 03:32 PM   #2
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
make a backup .
theres no hint i can give except this one.
i can tell you: do a e2fsck with wrong options brought my nearly full harddrive to lost+found.
be carefull <lame>
Old 02-10-2004, 04:25 PM   #3
Registered: Feb 2003
Location: Toronto
Distribution: RH8 / FC1 / Gentoo / Debian / FreeBSD / Centos / Ubuntu
Posts: 182

Original Poster
Rep: Reputation: 35
Already been there. Fortunately, I am running this copy of Fedora under VMware. When I mess up, I just restore a previous good image and my mistake is gone.

Filesystem still corrupt. Any suggestions?
Old 02-10-2004, 04:37 PM   #4
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Rep: Reputation: 15
fsck -t ext3 /dev/sda2
Why do you have -f and -n? They are not, at least according to the documentation I have, valid switches. Also, switches belong before the filesystem name.

Old 02-10-2004, 04:43 PM   #5
Senior Member
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
heh, the only 2 times I tried installing Gentoo and/or Debian, the ext3 file system got fubar'd and rendered my drive useless......had to go to the H/D mfg website and download some tools to a floppy and let the tools fix the drive...........IE.....I lost everything on the drive itself.......luckily I had all data "backed up"

good luck........
Old 02-11-2004, 03:23 PM   #6
Registered: Feb 2003
Location: Toronto
Distribution: RH8 / FC1 / Gentoo / Debian / FreeBSD / Centos / Ubuntu
Posts: 182

Original Poster
Rep: Reputation: 35
Obviously, using different versions, jazernorth. Here are the options on my version:
Usage: fsck.ext3 [-panyrcdfvstDFSV] [-b superblock] [-B blocksize]
[-I inode_buffer_blocks] [-P process_inode_size]
[-l|-L bad_blocks_file] [-C fd] [-j ext-journal]
[-E extended-options] device

Emergency help:
-p Automatic repair (no questions)
-n Make no changes to the filesystem
-y Assume "yes" to all questions
-c Check for bad blocks and add them to the badblock list
-f Force checking even if filesystem is marked clean
-v Be verbose
-b superblock Use alternative superblock
-B blocksize Force blocksize when looking for superblock
-j external-journal Set location of the external journal
-l bad_blocks_file Add to badblocks list
-L bad_blocks_file Set badblocks list

Thanks for your input -- confirms what I suspected -- time to start over. This was a relatively new install anyways. No data lost.

Old 02-12-2004, 11:55 AM   #7
Registered: Oct 2003
Location: Montreal Beach
Distribution: Debian Unstable
Posts: 368

Rep: Reputation: 30
This might be the journaling system of ext3 that is corrupted. You might want to mount it as ext2 and see if you can save some DATA.


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
repair corrupted ext3 filesystem rvijay17 Linux - General 3 06-20-2009 12:35 PM
Can a corrupted ext3 filesystem be saved? erraticassassin Slackware 3 09-16-2005 02:45 PM
Corrupted Ext3 Filesystem pyrosim Linux - General 2 07-23-2005 12:21 PM
Corrupted superblock/filesystem? (Ext3) elrohir_telperi Linux - General 2 05-04-2004 06:29 AM
corrupted filesystem gbolly_bolly Linux - Distributions 2 05-06-2002 04:11 PM > Forums > Linux Forums > Linux - General

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