Gentoo Archives: gentoo-user

From: Francesco Talamona <ti.liame@×××××.it>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Corrupt USB pen drive
Date: Thu, 17 May 2007 16:42:42
Message-Id: 200705171835.46919.ti.liame@email.it
In Reply to: [gentoo-user] Corrupt USB pen drive by Mick
1 On Thursday 17 May 2007, Mick wrote:
2 > Hi All,
3 >
4 > A colleague used a USB stick on his home machine and when he brought
5 > it to work he can no longer access it using WinXP. I offered to help
6 > with my Gentoo laptop (as one ought to rise to the challenge!) but it
7 > seems that Linux is also struggling to get to it:
8 > ==========================================
9 > usb 2-1: new full speed USB device using uhci_hcd and address 2
10 > usb 2-1: configuration #1 chosen from 1 choice
11 > scsi0 : SCSI emulation for USB Mass Storage devices
12 > usb-storage: device found at 2
13 > usb-storage: waiting for device to settle before scanning
14 > scsi 0:0:0:0: Direct-Access USB BAR 1.89 PQ: 0
15 > ANSI: 2 SCSI device sda: 255744 512-byte hdwr sectors (131 MB)
16 > sda: Write Protect is off
17 > sda: Mode Sense: 03 00 00 00
18 > sda: assuming drive cache: write through
19 > SCSI device sda: 255744 512-byte hdwr sectors (131 MB)
20 > sda: Write Protect is off
21 > sda: Mode Sense: 03 00 00 00
22 > sda: assuming drive cache: write through
23 > sda: unknown partition table
24 > sd 0:0:0:0: Attached scsi removable disk sda
25 > sd 0:0:0:0: Attached scsi generic sg0 type 0
26 > usb-storage: device scan complete
27 > UDF-fs: No VRS found
28 > Unable to identify CD-ROM format.
29 > FAT: bogus logical sector size 65535
30 > VFS: Can't find a valid FAT filesystem on dev sda.
31 > NTFS-fs warning (device sda): is_boot_sector_ntfs(): Invalid boot
32 > sector checksum.
33 > NTFS-fs error (device sda): read_ntfs_boot_sector(): Primary boot
34 > sector is invalid.
35 > NTFS-fs error (device sda): read_ntfs_boot_sector(): Mount option
36 > errors=recover not used. Aborting without trying to recover.
37 > NTFS-fs error (device sda): ntfs_fill_super(): Not an NTFS volume.
38 > hfs: can't find a HFS filesystem on dev sda.
39 > VFS: Can't find ext3 filesystem on dev sda.
40 > VFS: Can't find an ext2 filesystem on dev sda.
41 > ReiserFS: sda: warning: sh-2021: reiserfs_fill_super: can not find
42 > reiserfs on sda
43 > ==========================================
44 >
45 > I tried to dd the boot sector so that I can look at it on my hard
46 > drive, but it cannot access /dev/sda. Is there anything that I can
47 > do with my Gentoo to recover the files on this USB?
48
49 If you have usb support built modular in the kernel it worth a try to
50 force the laptopo to USB 1.1 so it can read a reluctant key (I once had
51 a key that stopped working on USB 2.0 but was perfectly readable by
52 older PCs).
53
54 You can then try ddrescue, a dd clone that is specifically designed to
55 skip errors on bad media for recovery attempt.
56
57 Good luck
58 Francesco.
59
60 --
61 Linux Version 2.6.21-gentoo, Compiled #1 PREEMPT Mon Apr 30 21:45:34
62 CEST 2007
63 One 1GHz AMD Athlon 64 Processor, 2GB RAM, 2004.01 Bogomips Total
64 aemaeth
65 --
66 gentoo-user@g.o mailing list