From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HohMe-0003q4-BF for garchives@archives.gentoo.org; Thu, 17 May 2007 14:54:01 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4HEq06i016979; Thu, 17 May 2007 14:52:00 GMT Received: from spore.ath.cx (c-24-245-14-14.hsd1.mn.comcast.net [24.245.14.14]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4HEjxjx009053 for ; Thu, 17 May 2007 14:46:00 GMT Received: from pascal.spore.ath.cx (pascal.spore.ath.cx [192.168.1.100]) by spore.ath.cx (Postfix) with ESMTP id A7BC32D6B8 for ; Thu, 17 May 2007 09:45:59 -0500 (CDT) Date: Thu, 17 May 2007 09:45:59 -0500 From: Dan Farrell To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Corrupt USB pen drive Message-ID: <20070517094559.14586f21@pascal.spore.ath.cx> In-Reply-To: <200705171236.28695.michaelkintzios@gmail.com> References: <200705171236.28695.michaelkintzios@gmail.com> Organization: Spore, Ltd. X-Mailer: Claws Mail 2.6.1 (GTK+ 2.10.6; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: 9199545e-9bff-484f-87f6-a98b9630aa13 X-Archives-Hash: 896c8e43b7d051be74180156dc3830ca On Thu, 17 May 2007 12:36:25 +0100 Mick wrote: > Hi All, > > A colleague used a USB stick on his home machine and when he brought > it to work he can no longer access it using WinXP. I offered to help > with my Gentoo laptop (as one ought to rise to the challenge!) but it > seems that Linux is also struggling to get to it: > ========================================== > usb 2-1: new full speed USB device using uhci_hcd and address 2 > usb 2-1: configuration #1 chosen from 1 choice > scsi0 : SCSI emulation for USB Mass Storage devices > usb-storage: device found at 2 > usb-storage: waiting for device to settle before scanning > scsi 0:0:0:0: Direct-Access USB BAR 1.89 PQ: 0 > ANSI: 2 SCSI device sda: 255744 512-byte hdwr sectors (131 MB) > sda: Write Protect is off > sda: Mode Sense: 03 00 00 00 > sda: assuming drive cache: write through > SCSI device sda: 255744 512-byte hdwr sectors (131 MB) > sda: Write Protect is off > sda: Mode Sense: 03 00 00 00 > sda: assuming drive cache: write through > sda: unknown partition table > sd 0:0:0:0: Attached scsi removable disk sda > sd 0:0:0:0: Attached scsi generic sg0 type 0 > usb-storage: device scan complete > UDF-fs: No VRS found > Unable to identify CD-ROM format. > FAT: bogus logical sector size 65535 > VFS: Can't find a valid FAT filesystem on dev sda. > NTFS-fs warning (device sda): is_boot_sector_ntfs(): Invalid boot > sector checksum. > NTFS-fs error (device sda): read_ntfs_boot_sector(): Primary boot > sector is invalid. > NTFS-fs error (device sda): read_ntfs_boot_sector(): Mount option > errors=recover not used. Aborting without trying to recover. > NTFS-fs error (device sda): ntfs_fill_super(): Not an NTFS volume. > hfs: can't find a HFS filesystem on dev sda. > VFS: Can't find ext3 filesystem on dev sda. > VFS: Can't find an ext2 filesystem on dev sda. > ReiserFS: sda: warning: sh-2021: reiserfs_fill_super: can not find > reiserfs on sda > ========================================== > > I tried to dd the boot sector so that I can look at it on my hard > drive, but it cannot access /dev/sda. Is there anything that I can > do with my Gentoo to recover the files on this USB? have you tried reading raw from the device like | dd if=/dev/sda of=sda.image ? That might do the recovery. How to get it out of the image is the same problem but once the backup succeeds you can plug it into a windows xp box and reformat, and you will probably end up with the same partition structure as originally. Then you can try to read the right part of the image out of the image, once you get the numbers from fdisk on the newly formatted drive, and end up with an image of sda1. From there you should be able to mount sda1 and read out the data, if it isn't corrupted. I also am wondering what happened to the partition table. I bet your coworker has a security-compromised box at home (oh, runs windows? right...) At any rate, if the data is recoverable, it may be possible to rebuild the partition table if you can find out where the partition started and ended. People have done it before, i've read online about it. -- gentoo-user@gentoo.org mailing list