Flash Drive Complete Rebuild

Using TestDisk to repair the filesystem
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
AkBKuU
Posts: 2
Joined: 11 Sep 2013, 00:08

Flash Drive Complete Rebuild

#1 Post by AkBKuU »

Hello,
I have a Lexar JumpDrive USB 3.0 64Gb flash drive. I was using it with Ubuntu and it did something to it that has made it completely unusable. I had tried several different recovery methods a while ago but I don't remember what they were now. I stubled accross TestDisk yesterday when I had an HDD take a dive and it was able to recover the 1Tb+ files I had on it so I am hoping it can just make the flash drive usable. I don't have any data on it that I need to recover, I just want to be able to use it again. It Windows' Disk Management it says the drive is read only. Here are the results for different action in TestDisk using Intel partition table:

Analyze>Quick Search:

Code: Select all

* HPFS - NTFS     0 0 33 7787 159 52 125108192 [New Volume]
Analyze>Quick Search>Write:

Code: Select all

Partition: Write error
Advanced>Boot>Rebuild BS>Write:

Code: Select all

Write error: Can't write new NTFS boot sector
Write error: Can't write new NTFS backup boot sector
Delete:

Code: Select all

Write error: Can't clear partition table
What steps should I take to just get it back to being usable?

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Flash Drive Complete Rebuild

#2 Post by cgrenier »

The disk may have a jumper that you can set for the read-only mode.
Under Linux, as root, run "hdparm -r /dev/sdb" (replace sdb by the correct device) to check if the disk is in read-only mode. You may force it back to read-write.

Output on my own-computer when a disk isn't in read-only:

Code: Select all

sudo hdparm -r /dev/sdb

/dev/sdb:
 readonly      =  0 (off)

AkBKuU
Posts: 2
Joined: 11 Sep 2013, 00:08

Re: Flash Drive Complete Rebuild

#3 Post by AkBKuU »

The drive does not have a jumper.

I'm away from the drive right now but I'll try that command when I have access to it again.

Locked