[SOLVED] Help fixing what I think is a corrupt memory stick/pendrive?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
data-angel

[SOLVED] Help fixing what I think is a corrupt memory stick/pendrive?

Post by data-angel »

I have a friend that gave me what I think is a corrupted one of those fake 2tb USB drives, I was trying to see if I could get it to work and find out what it's actual size and transfer were, I was trying to follow this guide here but fsck didn't do anything and attempting to zero it leaves the terminal hanging. I tried looking for USB testing software on linux like rmprep but was struggling to find any.

Could anyone recommend any programs/commands for me to try? Or determine if this drive is just lost?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
pbear
Level 16
Level 16
Posts: 6569
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by pbear »

Zeroing is about as low level as you can get. If that didn't work, I'd just toss it.

By the way, did you include status=progress in your command string? If not, you might want to try again:

Code: Select all

sudo dd if=/dev/zero of=/dev/sdx bs=1M status=progress
This will tell you whether anything is being written. If not, you've got a dead parrot on your hands.
data-angel

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by data-angel »

Thank you! I didn't realise that was a thing, it turns out it was actually doing something, but it got stuck here:

Code: Select all

30305943552 bytes (30 GB, 28 GiB) copied, 5021 s, 6.0 MB/s 
so i'm guessing that's the actual capacity, I tried killing it to go and make a new partition but it's not being detected at all anymore! Anything I can do now or did zeroing the drive finish it off? lol
User avatar
AndyMH
Level 21
Level 21
Posts: 13728
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by AndyMH »

Did you create a partition table first?

You could try putting a partition table on it with gparted, and if that works creating a partition (generally fat32 for sticks) less than 30GB.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
pbear
Level 16
Level 16
Posts: 6569
Joined: Wed Jun 21, 2017 12:25 pm
Location: San Francisco

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by pbear »

data-angel wrote: Thu Sep 17, 2020 8:06 am ... did zeroing the drive finish it off?
Nah, when the operation completes you're returned to the command prompt. That it wouldn't complete confirms there's something wrong with the device. Might as well try Andy's suggestion, but I'll be astonished if it works.
User avatar
antikythera
Level 15
Level 15
Posts: 5721
Joined: Thu Jul 02, 2020 12:52 pm
Location: Cymru

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by antikythera »

pbear wrote: Thu Sep 17, 2020 11:33 am Might as well try Andy's suggestion, but I'll be astonished if it works.
Me too, quite frankly dd can take hours to zero out a drive that size, if not days depending on the speed of the USB stick and the controller it's connected to. The last thing you should ever do is interrupt it.

Also, given how long it can take, is it really worth the effort versus binning it and getting a new one now? At the measured 6MB/s for a 2TB drive I'd say not.

I recently zero'd a USB 3.0 128GB thumb drive and had to leave that running overnight to finish.
I’ll tell you a DNS joke but be advised, it could take up to 24 hours for everyone to get it.
data-angel

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by data-angel »

AndyMH wrote: Thu Sep 17, 2020 9:10 am Did you create a partition table first?
Couldn't! I meant It just isn't recognised anymore after interrupting it when it hung on the terminal, sorry!
antikythera wrote:dd can take hours to zero out a drive that size, if not days depending on the speed of the USB stick and the controller it's connected to.
Yeah it did take a few hours to get to where it was before hanging haha
antikythera wrote:Also, given how long it can take, is it really worth the effort versus binning it and getting a new one now? At the measured 6MB/s for a 2TB drive I'd say not
I'm pretty certain it's not actually 2TB haha, one of those fake chinese memory sticks, not really desperate for a new one enough to pay for it but would be handy to have just a spare to do whatever with

Also the speed listed there is just what it got stuck on, It still wasn't fast but was in normal USB2 range and degraded to that point before hanging.

But yeah, if it got stuck like that, and it's no longer registering as a device (keeps my laptop from booting when it's plugged in too actually lol) I guess there's no chance recovering it?
User avatar
antikythera
Level 15
Level 15
Posts: 5721
Joined: Thu Jul 02, 2020 12:52 pm
Location: Cymru

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by antikythera »

No, just bin it :lol:
I’ll tell you a DNS joke but be advised, it could take up to 24 hours for everyone to get it.
data-angel

Re: Help fixing what I think is a corrupt memory stick/pendrive?

Post by data-angel »

Ah, shame, ok tho, thanks everyone!
Locked

Return to “Beginner Questions”