Rescuing a Damaged USB Stick

William O'Higgins Witteman william.ohiggins-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Mon Dec 19 13:07:41 UTC 2011


On Mon, Dec 19, 2011 at 02:13:21AM -0500, William Park wrote:
>On Mon, Dec 19, 2011 at 12:17:04AM -0500, William O'Higgins Witteman wrote:
>> I've got an nice clean image of a USB stick on my hard drive.  I'm
>> pretty sure there is still data on it - stings returns *oodles* of
>> stuff.  The problem is that there is no partition table on this thing -
>> gpart says that there are no partitions.
>> 
>> So, I can't mount the image (or the stick) 'cause there are no
>> partitions.  I'm pretty sure it was a FAT32 stick, so I'd love to
>> somehow replace the partition table on the image I've got and see if I
>> can pull off some of that data.
>> 
>> Anyone have a set of documents for this?  I've found lots of
>> almost-useful information, including some really old docs, but nothing
>> that says "do this!" for my situation.
>> 
>> Thanks!
>
>Odd that it doesn't have partition table.  Windows always creates the
>first partition.  Unless it was created from Linux to use the whole
>device.  In any case, you can take a peek into the image:
>
>    # losetup usb.img
>	-- check /proc/partition to see that "loop0" is created

Here's where it breaks down, like this:

loop: can't get info on device usb.img: Inappropriate ioctl for
device

Am I hosed?
-- 

yours,

William

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://gtalug.org/pipermail/legacy/attachments/20111219/bf5778d3/attachment.sig>


More information about the Legacy mailing list