Page 1 of 1

USB stick in a sorry state

Posted: Sun Nov 12, 2017 7:50 am
by exxonin
I do want to reformat a usb stick, but it is in a sorry state. How might it be rescued? I have no information on it. Please do see image, volume 3, disk F:
Image

Re: USB stick in a sorry state

Posted: Sun Nov 12, 2017 10:21 am
by Pepi
Never had any luck with a USB stick after it gets confused. I usually do the DISKPART thing on them BUT that delete all

Re: USB stick in a sorry state

Posted: Sun Nov 12, 2017 10:38 am
by austin.texas
I have always used the dd command to clean up USB drives which have problems, and dd has never failed me.
First, run the command

Code: Select all

inxi -D
to identify the USB drive designation. My USB drive shows as /dev/sdc:
Then use dd to clean off whatever garbage might be causing the problem: (change sdX here)

Code: Select all

sudo dd if=/dev/zero of=/dev/sdX bs=1M count=10
Then you can use Gparted to create a new partition table and filesystem.

Re: USB stick in a sorry state

Posted: Sun Nov 12, 2017 11:38 am
by exxonin
Contrary to diskpart, for instance gparted on linux is not able to detect the erroneous usb stick. How am I to overcome this nondetection of the usb stick on linux?

Please do see image, erroneous usb stick is not detected:

Image

Re: USB stick in a sorry state

Posted: Sun Nov 12, 2017 12:14 pm
by austin.texas
exxonin wrote:Please do see image, erroneous usb stick is not detected:
Your image shows a USB (/dev/sdb - 62GB). Is that a different USB drive?

Re: USB stick in a sorry state

Posted: Sun Nov 12, 2017 12:27 pm
by exxonin
Indeed, that is the usb stick with my working linux mint on it. Like the windows stick on my diskpart image: Disk 'C', volume 2. The erroneous usb stick is 32 GB, but does not show up, like it does on diskpart as volume 3, 'F'.

Re: USB stick in a sorry state

Posted: Mon Nov 13, 2017 5:35 am
by exxonin
With 'Hiren's Boot CD' the USB stick was detected: 'sr0'. I obtained this information, please do see images:
Image
Image
Image
Image
I also got the 'udevil.conf' file of the erroneous USB stick, I do not know if this information might be helpful.

Why is it that the erroneous USB stick is detected: 'sr0', but when the terminal operates a command on it, the terminal reports: "No medium found while trying to determine filesystem size."

Re: USB stick in a sorry state

Posted: Mon Nov 13, 2017 5:54 am
by Faust
I've had many of these , most often caused by writing Linux ISOs that went badly ( back in my "hopping" days :) )

In a Linux environment I go with what austin.texas recommended , 100% .... using the dd command ,
but please do make double certain that you have selected the correct target drive .
dd is " lean and mean " and will not warn you or give you second chances if you make a boo-boo .

There is another solution if you have a Windows box around ( and I hate to do this on a Linux forum , but it works ! )
Download " Partition Wizard Free " , if only because it seems to do some things that gparted can not .
eg. It will usually "see" a drive that Linux can't recognize , and it has repaired USB drives for me that I thought were doomed to the garbage bin .

.... just a few thoughts

Re: USB stick in a sorry state

Posted: Mon Nov 13, 2017 6:11 am
by Moem
exxonin wrote:please do see images
I've given you two examples of how to use the rimg tag to post images directly in the thread, without people needing to click on them. Please take a look; I'm sure you can learn this, too.

Re: USB stick in a sorry state

Posted: Mon Nov 13, 2017 9:57 am
by exxonin
I have done 'rimg':

"Image"
"Image"
"Image"
"Image"

But, I do not get your result.

Re: USB stick in a sorry state

Posted: Mon Nov 13, 2017 10:01 am
by Moem
Try using the link to the actual image itself, not the complete page. The 'rimg' tag needs a URL that ends in an image format, such as .jpg or .png. You can get that link by rightclicking on the image and choosing 'Copy image' or similar (depending on browser).

Re: USB stick in a sorry state

Posted: Tue Nov 14, 2017 6:39 am
by exxonin
I am almost there, so why is ' read/write' access denied?

Image

Re: USB stick in a sorry state

Posted: Tue Nov 14, 2017 6:53 am
by exxonin
I did place ' .jpg' on it like you did, on image, but with me does not work.

Re: USB stick in a sorry state

Posted: Tue Nov 14, 2017 6:57 am
by Moem
I did not just add '.jpg'. I went to the page to view the image, rightclicked on the image, and copied the URL of the image itself (not the page). That is the URL that I used.