<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span>Are you "root"?</span></div><div><span>-- <br></span></div><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> William O'Higgins Witteman <william.ohiggins-H217xnMUJC0sA/PxXw9srA@public.gmane.org><br> <b><span style="font-weight: bold;">To:</span></b> tlug-lxSQFCZeNF4@public.gmane.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, December 19, 2011 8:07:41 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [TLUG]: Rescuing a Damaged USB
 Stick<br> </font> <br>On Mon, Dec 19, 2011 at 02:13:21AM -0500, William Park wrote:<br>>On Mon, Dec 19, 2011 at 12:17:04AM -0500, William O'Higgins Witteman wrote:<br>>> I've got an nice clean image of a USB stick on my hard drive.  I'm<br>>> pretty sure there is still data on it - stings returns *oodles* of<br>>> stuff.  The problem is that there is no partition table on this thing -<br>>> gpart says that there are no partitions.<br>>> <br>>> So, I can't mount the image (or the stick) 'cause there are no<br>>> partitions.  I'm pretty sure it was a FAT32 stick, so I'd love to<br>>> somehow replace the partition table on the image I've got and see if I<br>>> can pull off some of that data.<br>>> <br>>> Anyone have a set of documents for this?  I've found lots of<br>>> almost-useful information, including some really old docs, but nothing<br>>> that says
 "do this!" for my situation.<br>>> <br>>> Thanks!<br>><br>>Odd that it doesn't have partition table.  Windows always creates the<br>>first partition.  Unless it was created from Linux to use the whole<br>>device.  In any case, you can take a peek into the image:<br>><br>>    # losetup usb.img<br>>    -- check /proc/partition to see that "loop0" is created<br><br>Here's where it breaks down, like this:<br><br>loop: can't get info on device usb.img: Inappropriate ioctl for<br>device<br><br>Am I hosed?<br>-- <br><br>yours,<br><br>William<br><br><br><br> </div> </div> </blockquote></div>   </div></body></html>