Rescuing a Damaged USB Stick
Lennart Sorensen
lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Mon Dec 19 14:56:23 UTC 2011
On Mon, Dec 19, 2011 at 08:07:41AM -0500, William O'Higgins Witteman wrote:
> 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?
losetup /dev/loop0 usb.img
or
losetup -f usb.img
--
Len Sorensen
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list