Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Desperately need advice on fixing a corrupt XFS partition
Date: Tue, 09 Dec 2008 17:49:06
Message-Id: 58965d8a0812090949r37f5b09ei3bbdab4e8e7b4f6e@mail.gmail.com
1 I accidentally sent this from the wrong email address the first time,
2 not sure if it went through to the list so I'm sending it again (I
3 apologize if it is a duplicate).
4
5 Hi,
6
7 I've got an external USB hard drive adapter that apparently have been
8 going bad, or maybe the drive is going bad, I don't know... It has
9 died a few times in the last week. During that time I've been burning
10 DVDs and trying to copy all of the data off of it, but it choked with
11 about 130gb remaining and now, after hooking up a new adapter, XFS
12 won't mount it. :( It's full of pictures and home movies and stuff.
13 Sadly, this drive was part of my backup strategy. The files were all
14 consolidated on this disk, where I was sorting and organizing them
15 into nice DVD-sized chunks. I guess I wasn't fast enough.
16
17 When I try to mount, I get the "wrong fs type" message, and dmesg shows this:
18 XFS: bad version
19 XFS: SB validate failed
20
21 When I try to run xfs_check against it, it segfaults! (!!!)
22
23 # xfs_check /dev/sdf1
24 xfs_check: size check failed
25 xfs_check: read failed: Invalid argument
26 xfs_check: data size check failed
27 cache_node_purge: refcount was 1, not zero (node=0x1fd6c20)
28 xfs_check: cannot read root inode (22)
29 cache_node_purge: refcount was 1, not zero (node=0x1fd6d70)
30 xfs_check: cannot read realtime bitmap inode (22)
31 /usr/bin/xfs_check: line 28: 30698 Segmentation fault
32 xfs_db$DBOPTS -i -p xfs_check -c "check$OPTS" $1
33
34 xfs_repair exists, but the man page says it can only be used against
35 clealy unmounted drives... which seems kind of funny. I ran it anyway,
36 in read-only mode, and it was unable to find the primary superblock
37 and started scanning the disk for the secondary. I aborted it because
38 I don't know how much torture this drive can take.
39
40 When I run "less -f /dev/sdf1" i can see amongst the bits all of the
41 names of my directories and files etc... so I am pretty sure the data
42 is there and readable, but I can't figure out how to get XFS to go
43 ahead and mount it so I can copy all of that stuff off and swear off
44 USB hard drive adapters forever. :)
45
46 Remember a few days ago when someone on this list posted his XFS
47 horror story and I said I'd never had a problem with it? Yeah, I put a
48 curse on myself for sure when I said that. :P
49
50 If anyone has any ideas at all about how to go about fixing/mounting
51 this, I will be forever in your debt. Thanks.
52
53 Paul

Replies

Subject Author
Re: [gentoo-user] Re: Desperately need advice on fixing a corrupt XFS partition Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Re: Desperately need advice on fixing a corrupt XFS partition Stroller <stroller@××××××××××××××××××.uk>
Re: [gentoo-user] Re: Desperately need advice on fixing a corrupt XFS partition Alex Schuster <wonko@×××××××××.org>