LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-10-2004, 02:18 PM   #1
Apollo77
Member
 
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?

Thanks,
Apollo
 
Old 02-10-2004, 02:32 PM   #2
Quis
Member
 
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, 03:25 PM   #3
Apollo77
Member
 
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, 03:37 PM   #4
jazernorth
Member
 
Registered: Jan 2004
Location: Green Bay
Distribution: RedHat 8.0, LFS-5.0
Posts: 100

Rep: Reputation: 15
try:
Code:
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.

JN
 
Old 02-10-2004, 03:43 PM   #5
320mb
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, 02:23 PM   #6
Apollo77
Member
 
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.

Apollo
 
Old 02-12-2004, 10:55 AM   #7
yanik
Member
 
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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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