Re: [gentoo-user] Corrupt USB pen drive

2007-05-21 Thread Mick
On Friday 18 May 2007 16:16, Etaoin Shrdlu wrote: On Friday 18 May 2007 15:11, Mick wrote: On Friday 18 May 2007 13:25, Hans-Werner Hilse wrote: Did you try the recovery tools for the FS in question? I tried fsck.msdos but didn't fix it. [snip... lot's of good advice] Bottom line: I

Re: [gentoo-user] Corrupt USB pen drive [ot]

2007-05-21 Thread Dan Farrell
On Mon, 21 May 2007 10:47:03 +0100 Mick [EMAIL PROTECTED] wrote: I believe that there are horses for courses me too, linux discs are for computers, windows discs make good coasters. ; ) -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Mick
On Thursday 17 May 2007 23:27, Etaoin Shrdlu wrote: On Thursday 17 May 2007 18:04, Mick wrote: Thanks Dan, as I said above I tried to extract the MBR out of it by running: dd if=/dev/sda of=/tmp/r1 bs=512 But couldn't access it whatsoever. Oops! I could access it, but of

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Etaoin Shrdlu
On Friday 18 May 2007 10:29, Mick wrote: On Thursday 17 May 2007 23:27, Etaoin Shrdlu wrote: IIRC, that is not the right syntax for mounting a loopback filesystem. If /tmp/r1 is the file containing the filesystem, try mount -o loop /tmp/r1 /mnt/somewhere and make sure you have

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Mick
On Friday 18 May 2007 10:24, Etaoin Shrdlu wrote: You still seem to be missing the correct syntax. (note: this might not solve your problem, and even issuing the right command might be of no help, but since you asked for it, here it is). [snip . . . ] Thanks! Things don't always go as they

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Hans-Werner Hilse
Hi, On Fri, 18 May 2007 12:50:07 +0100 Mick [EMAIL PROTECTED] wrote: I am getting the same errors as before: == # mount -t vfat -o loop /tmp/r1 /mnt/sda1 mount: wrong fs type, bad option, bad superblock on /dev/loop1, missing codepage or other

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Mick
On Friday 18 May 2007 13:25, Hans-Werner Hilse wrote: Hi, On Fri, 18 May 2007 12:50:07 +0100 Mick [EMAIL PROTECTED] wrote: No matter if I use vfat, msdos, or ntfs. It seems to me that I need to reconstruct the hex of the partition table - but don't know how to do this and testdisk does

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Dan Farrell
On Fri, 18 May 2007 14:11:14 +0100 Mick [EMAIL PROTECTED] wrote: On Friday 18 May 2007 13:25, Hans-Werner Hilse wrote: Hi, On Fri, 18 May 2007 12:50:07 +0100 Mick [EMAIL PROTECTED] wrote: No matter if I use vfat, msdos, or ntfs. It seems to me that I need to reconstruct the hex

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Etaoin Shrdlu
On Friday 18 May 2007 15:11, Mick wrote: On Friday 18 May 2007 13:25, Hans-Werner Hilse wrote: Did you try the recovery tools for the FS in question? I tried fsck.msdos but didn't fix it. Like most USB sticks I would assume that it is either FAT32 or FAT16. Given that this is what I see

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Hans-Werner Hilse
Hi, On Fri, 18 May 2007 14:11:14 +0100 Mick [EMAIL PROTECTED] wrote: Did you try the recovery tools for the FS in question? I tried fsck.msdos but didn't fix it. Doesn't make me wonder, as I'll explain below, there's no file system starting at offset 0 in that image of your stick... Like

Re: [gentoo-user] Corrupt USB pen drive

2007-05-18 Thread Etaoin Shrdlu
On Friday 18 May 2007 16:48, Hans-Werner Hilse wrote: I'll answer another question first: The asterisk indicates consecutive lines w/ the same data. So here, we have a full block (512 bytes, 0x000-0x1ff) containing almost only zeros. It stops with a valid master boot record magic number

[gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Mick
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:

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Elias Probst
On Thursday 17 May 2007 13:36:25 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

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Mick
On Thursday 17 May 2007 12:51, Elias Probst wrote: On Thursday 17 May 2007 13:36:25 Mick wrote: 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? Try

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Dan Farrell
On Thu, 17 May 2007 12:36:25 +0100 Mick [EMAIL PROTECTED] 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

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Mick
On Thursday 17 May 2007 15:45, Dan Farrell wrote: On Thu, 17 May 2007 12:36:25 +0100 Mick [EMAIL PROTECTED] wrote: 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

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Dan Farrell
On Thu, 17 May 2007 16:38:44 +0100 Mick [EMAIL PROTECTED] wrote: On Thursday 17 May 2007 15:45, Dan Farrell wrote: On Thu, 17 May 2007 12:36:25 +0100 Mick [EMAIL PROTECTED] wrote: I tried to dd the boot sector so that I can look at it on my hard drive, but it cannot access

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Tim Allingham
On Thu, 2007-05-17 at 16:38 +0100, Mick wrote: On Thursday 17 May 2007 15:45, Dan Farrell wrote: On Thu, 17 May 2007 12:36:25 +0100 Mick [EMAIL PROTECTED] wrote: 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

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Mick
On Thursday 17 May 2007 16:38, Mick wrote: On Thursday 17 May 2007 15:45, Dan Farrell wrote: On Thu, 17 May 2007 12:36:25 +0100 Mick [EMAIL PROTECTED] wrote: 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

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Dan Farrell
On Thu, 17 May 2007 17:04:21 +0100 Mick [EMAIL PROTECTED] wrote: Thanks Dan, as I said above I tried to extract the MBR out of it by running: dd if=/dev/sda of=/tmp/r1 bs=512 But couldn't access it whatsoever. Oops! I could access it, but of course I had to try it as root! Right, I've got it

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Tim Allingham
On Thu, 2007-05-17 at 17:04 +0100, Mick wrote: On Thursday 17 May 2007 16:38, Mick wrote: On Thursday 17 May 2007 15:45, Dan Farrell wrote: On Thu, 17 May 2007 12:36:25 +0100 Mick [EMAIL PROTECTED] wrote: I tried to dd the boot sector so that I can look at it on my hard drive,

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Etaoin Shrdlu
On Thursday 17 May 2007 13:36, Mick wrote: 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

Re: [gentoo-user] Corrupt USB pen drive

2007-05-17 Thread Etaoin Shrdlu
On Thursday 17 May 2007 18:04, Mick wrote: Thanks Dan, as I said above I tried to extract the MBR out of it by running: dd if=/dev/sda of=/tmp/r1 bs=512 But couldn't access it whatsoever. Oops! I could access it, but of course I had to try it as root! Right, I've got it on my hard