BLAG

BLAG Forums
It is currently Sat Dec 20, 2014 12:57 am

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Tue Jul 01, 2008 10:47 am 
Offline

Joined: Mon May 16, 2005 11:02 am
Posts: 277
Location: Basque Country/Euskal Herria
can anyone suggest a way of fixing the fs on my 500gb external USB drive?
it has a single ext2 partition, sdb1. actually i thought it was ext3, but the output below suggests not.
using QTparted, the disk appears to be about 50% full, so i guess the data is still there. i'd like to save it, as most of it is not backed up (in fact, some of it *is* backups!)

i get:
Code:
[root@blagged-up bob]# mount /dev/sdb1 /media/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so


and then:
Code:
[root@blagged-up bob]# dmesg | tail
EXT2-fs error (device sdb1): ext2_check_descriptors: Block bitmap for group 512 not in group (block 1869750373)!
EXT2-fs: group descriptors corrupted!
EXT2-fs error (device sdb1): ext2_check_descriptors: Block bitmap for group 512 not in group (block 1869750373)!
EXT2-fs: group descriptors corrupted!
EXT2-fs error (device sdb1): ext2_check_descriptors: Block bitmap for group 512 not in group (block 1869750373)!
EXT2-fs: group descriptors corrupted!


any tips? i notice blag70k doesn't have fsck or tune2fs by default. i take it i should start by installing them?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 1:33 pm 
Offline

Joined: Fri Jan 25, 2008 5:15 am
Posts: 125
Location: Western Australia
Tried installing and running testdisk? Usually does the job at recovering files/filesystems for me.


Top
 Profile  
 
PostPosted: Tue Jul 01, 2008 2:27 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
pistonbrew wrote:
any tips? i notice blag70k doesn't have fsck or tune2fs by default. i take it i should start by installing them?


Ya, they are there, they probably aren't in your $PATH.

/sbin/fsck
/sbin/tune2fs

Code:
su -
umount /dev/sdb1
fsck -vvv /dev/sdb1


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 2:43 pm 
Offline

Joined: Mon May 16, 2005 11:02 am
Posts: 277
Location: Basque Country/Euskal Herria
thanks guys, will try these when i get home.

jebba - i didn't try that.. oops!

googling around, lots of requests for info on this problem (or similar), but not many resolutions :-(

we'll see how we go...


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 8:46 pm 
Offline

Joined: Mon May 16, 2005 11:02 am
Posts: 277
Location: Basque Country/Euskal Herria
just trying testdisk so far. it failed to find any partitions during the quick and deeper scans, but it is currently finding some superblocks.
not sure if that's good news or not!


bit of a crash course in ext filesystems, this :-(


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 01, 2008 10:51 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Definitely check out fsck, as it is the main tool for fixing ext2/3 filesystems (especially before doing any crazy partitioning moves or anything like that ;)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 02, 2008 8:02 am 
Offline

Joined: Mon May 16, 2005 11:02 am
Posts: 277
Location: Basque Country/Euskal Herria
well i *think* i've saved my data, thanks to a bit of all the advice here.

long story short (involving thousands of inodes...), i can mount /dev/sdb1 now, but all the data is in the lost+found.

according to nautilus, lost+found contains 43575 items, totalling 201.5 GB - which is about the same size as the data on the lost partition..
i guess the only way to restore it is manually, which would probably take too long to be practical.

unless, again, anyone knows of a recovery tool?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 02, 2008 8:58 am 
Offline

Joined: Mon May 16, 2005 11:02 am
Posts: 277
Location: Basque Country/Euskal Herria
on further inspection, a lot of stuff has landed in recognisable directories, so i can just copy that to another disk.

the rest, i might be able to weed out using photorec, which is bundled with testdisk.

so, there goes a day i will never get back ;-)
thanks for helping, all!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 02, 2008 8:58 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
Cool, glad you saved your data at least. The lost+found directory will often have "all" the files, but now given totally weird names...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 03, 2008 9:26 am 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
i just saw this somewhere
http://www.informationweek.com/news/sto ... =208403254


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 03, 2008 3:14 pm 
Offline

Joined: Mon May 16, 2005 11:02 am
Posts: 277
Location: Basque Country/Euskal Herria
i must say, testdisk/photorec worked really well. i recovered what i could by hand from lost+found, then photorec'd the rest - which mainly turned out to be junk *.png's from my gnome thumbnails, but it did rescue some important stuff too. wish i'd known about it before.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group