View previous topic :: View next topic |
Author |
Message |
Molozonide n00b
Joined: 28 Mar 2005 Posts: 2
|
Posted: Fri Apr 01, 2005 3:59 pm Post subject: data recovery from usb memory stick |
|
|
My USB memory stick has sh*t the bed. When I use it at work, it prompts to be reformatted. I took it home and used trusty linux to copy the data with:
dd if=/dev/sdd of=/tmp/usb-drive
I can't mount the drive directly; 'mount -t vfat /dev/sdd' says it has a bad superblock. If I 'cat /tmp/usb-drive' I can see the data inside, which gives me hope. Of course, the /tmp/usb-drive can't be mounted as a loopback device because it has the same corrupted superblock.
How do I recover the data? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54834 Location: 56N 3W
|
Posted: Fri Apr 01, 2005 5:06 pm Post subject: |
|
|
Molozonide,
Now you have a backup, you can use recovery tools on the USB-Drive.
What tools depends on the filesystem. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Molozonide n00b
Joined: 28 Mar 2005 Posts: 2
|
Posted: Mon Apr 04, 2005 3:43 pm Post subject: yeah, but.... |
|
|
I don't own any commercial recovery tools. Are there any recommended recovery tools for Linux? |
|
Back to top |
|
|
gab10 n00b
Joined: 04 Apr 2005 Posts: 8
|
Posted: Mon Apr 04, 2005 4:35 pm Post subject: |
|
|
I had a USB drive go bad about 6 months ago and was looking for the same thing. I never did find anything that didn't cost a fortune. Let me know if you find something, or if anybody else does...that's a utility I could really use. |
|
Back to top |
|
|
diogot Tux's lil' helper
Joined: 25 Mar 2006 Posts: 114 Location: Brasil
|
Posted: Fri Jun 16, 2006 8:31 pm Post subject: |
|
|
I have the same problem too.
I try the autopsy but did't work. |
|
Back to top |
|
|
troymc Guru
Joined: 22 Mar 2006 Posts: 553
|
Posted: Fri Jun 16, 2006 8:53 pm Post subject: |
|
|
Molozonide wrote: |
mount -t vfat /dev/sdd
|
You generally don't mount the device /dev/sdd but a partition: /dev/sddX.
If that was a typo and you made a copy of the data with dd, then forget the stick. Make another copy of the data & work with it. This will help eliminate risk to your data.
If you dd'd /dev/sdd and there were partitions in it, try dd'ing the individual partitions. Then you can try mounting them via loopback:
Code: |
# mount -o loop /tmp/usb-part1 /mnt
|
troymc |
|
Back to top |
|
|
diogot Tux's lil' helper
Joined: 25 Mar 2006 Posts: 114 Location: Brasil
|
Posted: Sat Jun 17, 2006 11:06 pm Post subject: |
|
|
I do a 'dd' in the partition:
Code: | # dd if=/dev/sda1 of=img |
When I moun the file I have this error:
Code: | # mount -o loop img loop/
ioctl: LOOP_CLR_FD: Device or resource busy
mount: you must specify the filesystem type
# mount -o loop -t vfat img loop/
mount: wrong fs type, bad option, bad superblock on /dev/loop2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
# dmesg | tail
...
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev loop1.
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev loop2.
|
My problem is that I pull off the stick while the system are writing in the device. |
|
Back to top |
|
|
|