LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-26-2003, 09:29 AM   #1
inge_ninge
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Rep: Reputation: 0
hd-problem files lost, strange e2fsck message


Hi all,
I have demaged my harddisk and want to recover the files but if I try e2fsck on the unmounted partition I get this:

[root@ingmar root]# e2fsck /dev/hdb2
e2fsck 1.27ea (14-Mar-2002)
/ contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Bad block 0 used as bad block indirect block?!?

This inconsistency can not be fixed with e2fsck; to fix it, use
dumpe2fs -b to dump out the bad block list and e2fsck -L filename
to read it back in again.
Continue<y>?

so I did as I was told:
[root@ingmar root]# dumpe2fs -b /dev/hdb2 > dump
dumpe2fs 1.27ea (14-Mar-2002)
[root@ingmar root]# e2fsck -L dump /dev/hdb2
e2fsck 1.27ea (14-Mar-2002)
ext2fs_block_iterate: Ext2 file too big while sanity checking the bad blocks inode

Can someone help?
Ingmar
PS: I tried to make a dump of the deleted inodes:
....
ls_deleted_inodes: Ext2 file too big while calling ext2fs_block_iterate
ls_deleted_inodes: Ext2 file too big while calling ext2fs_block_iterate
ls_deleted_inodes: Ext2 file too big while calling ext2fs_block_iterate
ls_deleted_inodes: Ext2 file too big while calling ext2fs_block_iterate
Inode Owner Mode Size Blocks Time deleted
1278041 500 40755 0 1/ 1 Mon Aug 5 00:13:36 2002
1278043 500 100644 7261 2/ 2 Mon Aug 5 00:13:36 2002
1278044 500 100644 2410 1/ 1 Mon Aug 5 00:13:36 2002
1278045 500 100644 8748 3/ 3 Mon Aug 5 00:13:36 2002
...
 
Old 01-26-2003, 11:18 AM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
If running ext2fs a few times won't help, I suggest booting into your system using a either something like Tom's Root Boot disk, mounting the filesystem and copying the important stuff out or seeing if you can rescue the fs in rescue mode (if you're using lilo) or by doing a dummy upgrade with the installation CDs to see if that fixes the fs.

Bert
 
Old 01-26-2003, 11:59 AM   #3
inge_ninge
LQ Newbie
 
Registered: Jan 2003
Posts: 7

Original Poster
Rep: Reputation: 0
Hi Bert, thanks for your reply. I have allready mounted the partition, but there isn't even a lost+found directory on it! dump2fs sais:
debugfs: ls

EXT2 directory corrupted
so, theres nothing to copy, I must have deleted the hole directorytree while trying to rescue the partition with e2fsck or ext2fs (cant remember).
Rescue mode was like restart and like manual starting e2fsck it stuck.
What do you mean with dummy upgrade. Doesn't it overwrite my data?
 
Old 01-26-2003, 12:45 PM   #4
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Well, that's your last option - when your distribution is upgraded it usually keeps all the /home information on the disk - if it can.

It's worth a try if all else fails. Some of the files may be beyond recovery though.
 
  


Reply


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
e2fsck startup problem abattoir Mandriva 2 09-25-2005 10:00 AM
A strange problem with files in FC4 manuworldgame Linux - General 4 07-18-2005 02:11 AM
strange message kapa SUSE / openSUSE 1 03-10-2005 04:09 AM
problem of ls with strange files jeson_515 Linux - Newbie 1 03-14-2004 08:40 AM
Login message lost... yuzuohong Linux - General 7 07-03-2003 02:16 PM


All times are GMT -5. The time now is 08:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration