Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
data recovery from usb memory stick
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Molozonide
n00b
n00b


Joined: 28 Mar 2005
Posts: 2

PostPosted: Fri Apr 01, 2005 3:59 pm    Post subject: data recovery from usb memory stick Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Fri Apr 01, 2005 5:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Molozonide
n00b
n00b


Joined: 28 Mar 2005
Posts: 2

PostPosted: Mon Apr 04, 2005 3:43 pm    Post subject: yeah, but.... Reply with quote

I don't own any commercial recovery tools. Are there any recommended recovery tools for Linux?
Back to top
View user's profile Send private message
gab10
n00b
n00b


Joined: 04 Apr 2005
Posts: 8

PostPosted: Mon Apr 04, 2005 4:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
diogot
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2006
Posts: 114
Location: Brasil

PostPosted: Fri Jun 16, 2006 8:31 pm    Post subject: Reply with quote

I have the same problem too.
I try the autopsy but did't work.
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Fri Jun 16, 2006 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
diogot
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2006
Posts: 114
Location: Brasil

PostPosted: Sat Jun 17, 2006 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum