Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 08-20-2008, 11:26 AM   #1 (permalink)
Registered User
 
Join Date: Nov 2005
Location: A wretched hive of scum and villany (Bathgate, Scotland)
Posts: 96
OS: Windows XP Pro x64, dual booting with XP Home for safety


Trash Use parted to recover broken flash drive?

(Sorry, I'm not sure which section to post this in. Mods, feel free to move this to a more appropriate section if you want.)

A while back I was transferring files from my friend's windows machine to my USB flash drive (a 2GB Sandisk Cruzer Micro), when Windows somehow broke it. Windows came up with a write error, and when I tried to open it from windows explorer I was informed that the disk was not formatted, would I like to format it now?

Of course I don't want to format it, I want my data back! I think that parted can do what I want. I think that all i need to do is re-apply the file system (I'm not sure if it would have been FAT or FAT 32, can anyone help me work that bit out?), and hopefully I can recover some or all of the data from the disk.
In parted, when I select the disk and type print, I get the following:
Number Start End Size Type File system Flags
1 245s 3999743s 3999499s primary lba
so the first thing I tried was:
rescue 245 999743
This didn't give me any output, presumably meaning that it didn't find anything to rescue. So next I removed the partition using rm 1, and then typed:
mkpart primary fat32 245s 3999743s (I assumed that the system was FAT 32).
This seemed to work, so I tried print again, and got:
Number Start End Size Type File system Flags
1 245s 3999743s 3999499s primary lba

Back to exactly as it was when i started, completely sans filesystem. I then tried the same thing with FAT16 instead of FAT32, but that didn't work either. Can you help me work out how to re-apply the filesystem, and whether it should be FAT16 or FAT32?
Kenmcfa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 08-23-2008, 09:42 PM   #2 (permalink)
Registered User
 
dragonember's Avatar
 
Join Date: Jan 2006
Location: The voices in my head disagree...
Posts: 163
OS: Windows XP: Home Edition SP2/Ububtu 8.04

My System

Send a message via AIM to dragonember Send a message via MSN to dragonember Send a message via Yahoo to dragonember
Re: Use parted to recover broken flash drive?

have you tried using a data recovery tool?
__________________
Extrico subjectio quod verum ero evidens

No one can make you feel inferior without your consent. -- Eleanor Roosevelt

"it may be alright to be content with what you have; never with what you are."--B.C. Forbes
dragonember is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-23-2008, 11:26 PM   #3 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 988
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

Re: Use parted to recover broken flash drive?

If there's a way to use parted for that, I don't know about it (although I don't design partitioning tools, so maybe?). Look into TestDisk and PhotoRec. I know there are some other tools out there, like Foremost, but haven't used them.

PhotoRec pulls files off of your drive, TestDisk tries to fix the partition map. I recommend making an image of the drive using the dd program and trying to recover the data off of that (PhotoRec can use images from dd).
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-26-2008, 02:15 PM   #4 (permalink)
Registered User
 
Join Date: Nov 2005
Location: A wretched hive of scum and villany (Bathgate, Scotland)
Posts: 96
OS: Windows XP Pro x64, dual booting with XP Home for safety


Re: Use parted to recover broken flash drive?

Hmm, the parted theory doesn't really seem to work.

Dragonember, can you recommend any specific data recovery tool?

Shuuhen, thanks for the input, I'm trying these now.
Kenmcfa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 08-26-2008, 02:46 PM   #5 (permalink)
Registered User
 
Join Date: Nov 2005
Location: A wretched hive of scum and villany (Bathgate, Scotland)
Posts: 96
OS: Windows XP Pro x64, dual booting with XP Home for safety


Re: Use parted to recover broken flash drive?

Test disk might just have managed to fix the image file. However, I don't know how to check. How do I check? Is there a program that can normally view the contents of an image file? Or do I have to use dd to apply this new image to my drive, thereby wrecking everything if the image is not fixed?
Kenmcfa is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 05:32 PM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85