USB drive Reiserfs partitions suddenly corrupted?!
Hi folks,
Okay I'm really lost and desperate and hope someone can give me a hint. I have an external USB drive with 3 ReiserFS partitions which were working without trouble last time I connected it a few days ago. However, today after attaching the drive none of the partitions are recognized as Reiserfs (the partition table seems fine however). So I did various (read-only) checks, read up about the reiser filesystem structure etc. and, using hexdump, realized that the superblock of all three partitions seem to contain invalid data. So I created a disk image of one of the partitions and ran testdisk. It found a number of superblocks at various offsets (I believe all within the journal area) but was not able to recover anything. Next, I tried two things: Code:
reiserfsck -rebuild-sb && reiserfsck -rebuild-tree -S Second thing I tried (with the original image) was manually copying one of the superblocks to offset 0x10000. Unfortunately, I was still unable to mount the image and although testdisk was now able to browse the filesystem, it only showed those files which reiserfsck fully recovered in attempt 1. I checked my system logs but as far as I can tell the hard drive was properly unmounted last time and nothing else done with it since then. So I have absolutely no idea what is going on... Here are some relevant details of my setup: System: Debian wheezy/sid 2.6.38-2-686 HDD: WDC WD30 lsusb: Bus 001 Device 005: ID 067b:2507 Prolific Technology, Inc. PL2507 Hi-speed USB to IDE bridge controller Code:
# fdisk -l /dev/sdb Code:
# hexdump -C /dev/sdb1 Cheers, AusBob |
don't do it
simple
don't use reiserfs for a usb stick your stick might actually be stuffed now from using a journaling file system use vfat for compatibility or use one of the newer file-systems designed for flash drives. go for a search, don't be lazy, learn http://www.justfuckinggoogleit.com/ search for something like linux usb flash filesystem http://linux.koolsolutions.com/2009/...r-usb-devices/ came up first for me and especially described the problem of write life limits buy a new stick, they're cheap throw your old stick in the bin, it's character building |
hey coltree,
thanks for your suggestions - however, it is not a USB stick but an external HDD (300GB). Nevertheless, I guess I'll use ext3 in the future. Still wondering what might have happened though... anyone? |
Quote:
Quote:
Ausbob: What is the age of your harddisk? Can you see it in disk utility when connected? |
Quote:
I can see the drive and its partitions in disk utility. As I wrote in my first post, the disk and MBR are fine, as is the general structure of the partitions. It just appears as if the reiser superblocks (and maybe some other blocks) have been overwritten but I have no idea how. All I did when I last used it were general file operations before a safe remove. |
Forgot to ask: has the disk smart capability? If yes did you run a selftest? Has there been an extreme load on your computer?
|
Quote:
Quote:
|
Interesting situation
I've seen superblock corruption before when trying to use an external USB 2.0 drive with a USB 1.0 port on an ext3 filesystem.
May have just been a bad usb port. |
That's interesting salemboot. I might have had the device attached to an old laptop which doesn't support USB 2.0 once. Unfortunately I can't remember anymore. But if that's really the reason I wonder if it's a hardware or software issue since I use other USB devices on that laptop which work fine.
|
All times are GMT -5. The time now is 01:46 AM. |