LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2005, 01:06 PM   #1
erraticassassin
Member
 
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 131

Rep: Reputation: 18
Can a corrupted ext3 filesystem be saved?


Hi all,

I've been running Slack 10.1 on my laptop for about three months. fsck ran at boot, which is fine because it had booted twenty-odd times without being check. However, up popped an error message saying the filesystem on my hard drive was corrupt!

I followed the instructions it gave and was greeted with page after pages of prompts asking if I wanted to fix a bad block on inode number whatever it was. Not knowing any better, I answer yes to all of the prompts and rebooted. The reboot worked fine and I was able to log into my usual desktop and backup all of my personal files to a 512Mb USB key.

However, what do I do now? Can I continue to use the laptop without doing anything else? Is it likely to fall over again? Would a fresh install be a better idea?

Any advice greatly appreciated.
 
Old 09-16-2005, 01:22 PM   #2
MrMichaelWill
LQ Newbie
 
Registered: Nov 2003
Posts: 10

Rep: Reputation: 0
Re: Can a corrupted ext3 filesystem be saved?

Quote:
Originally posted by erraticassassin
Hi all,

I've been running Slack 10.1 on my laptop for about three months. fsck ran at boot, which is fine because it had booted twenty-odd times without being check. However, up popped an error message saying the filesystem on my hard drive was corrupt!

I followed the instructions it gave and was greeted with page after pages of prompts asking if I wanted to fix a bad block on inode number whatever it was. Not knowing any better, I answer yes to all of the prompts and rebooted. The reboot worked fine and I was able to log into my usual desktop and backup all of my personal files to a 512Mb USB key.

However, what do I do now? Can I continue to use the laptop without doing anything else? Is it likely to fall over again? Would a fresh install be a better idea?

Any advice greatly appreciated.
I think you are fine. Whatever you could have lost you have lost already, and you now have a consistent
state of the filesystem. Definitly doing backups *before* a crash would be preferable in the future ;-)

Michael
 
Old 09-16-2005, 01:23 PM   #3
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
If fsck is mentioning bad blocks it could be a physical problem. You might try running the badblock checker via fsck. IIRC, the command is something like this:

e2fsck -c -C 0 /dev/hda1

Before you do make sure you've backed up everything you need to. $HOME files, /etc config files, self-created scripts...

If it's just bad files you can probably restore them just by reinstalling the tgz files from the install discs. Mount the disc and cd into each dir one-by-one and do:

installpkg *.tgz

Again, you'll want to have made backups as mentioned above.
 
Old 09-16-2005, 01:45 PM   #4
erraticassassin
Member
 
Registered: Feb 2004
Distribution: Slackware 13.1
Posts: 131

Original Poster
Rep: Reputation: 18
@ Michael - actually, I had done a backup a few days before the problem. Not entirely sure why, since I don't have a regular schedule - must have been the ol' spider-sense tingling. But I did it again because I'd tinkered with a few things...

@ dracolich - I'll have a quick read through the man pages before proceeding, I think. It is a fairly old laptop though, so physical problems could be a possibility.

My thanks to you both.
 
  


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 Off
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
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 ext3 Filesystem. How do I fix it? Apollo77 Linux - General 6 02-12-2004 10:55 AM
corrupted filesystem gbolly_bolly Linux - Distributions 2 05-06-2002 03:11 PM

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

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