balena-io / etcher

Flash OS images to SD cards & USB drives, safely and easily.
https://etcher.io/
Apache License 2.0
29.84k stars 2.11k forks source link

usb pen damaged #3689

Open frankbald opened 2 years ago

frankbald commented 2 years ago

I just tried to flash this iso on my 16 gb usb crucial pen, now I can't see it anymore from windows explorer. Tried to rebuild the partition with disk management, nothing happened, then AOMEI partition assistant, the same, what can I do?

lurch commented 2 years ago

Does https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/ help?

frankbald commented 2 years ago

Does https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/ help?

thanks, long discussion but at the end I found the solution. Clearly this software has a huge bugs seeing all the comments

lurch commented 2 years ago

I think the "bugs" are with the way that Windows copes with non-standard partitioning schemes, rather than with Etcher? :man_shrugging:

frankbald commented 2 years ago

I think the "bugs" are with the way that Windows copes with non-standard partitioning schemes, rather than with Etcher? 🤷‍♂️

maybe, but first of all windows takes the majority of the os market share, so if you develop something you have to take into account what's best for who is using Etcher on Windows. Second and most important I've used disk management and aomei partition manager, and it's really weird that both of them were unable to reverse the stuck state of the pen

mcraa commented 2 years ago

Can you share what was the solution, maybe from the solution backtrack the details of the problem, and share those too? So others can use your comments if they have the same issue.

Would you like to open issues or support tickets at Microsoft and aomei that their software was not helpful with a pen drive that you were able to fix in a different way? Maybe share the replies from there too so others can use your comments if they have the same issue.

Otherwise, we can close this issue, Thanks

frankbald commented 2 years ago

i've used the following commands on powershell opened in administrator mode:

DISKPART> clean

DiskPart has encountered an error: Access is denied. See the System Event Log for more information.

DISKPART> convert gpt

DiskPart successfully converted the selected disk to GPT format.

DISKPART> create partition primary

DiskPart succeeded in creating the specified partition.

DISKPART> format quick fs=ntfs

100 percent completed

DiskPart successfully formatted the volume.

lurch commented 2 years ago

I'm not directly involved with the Etcher project, but just to clarify...

you have to take into account what's best for who is using Etcher on Windows.

The "issue" isn't caused by Etcher itself, but with the contents of your linux-lite-5.4-64bit.iso file. (i.e. I suspect using Win32DiskImager or RPi Imager would cause exactly the same problems)

frankbald commented 2 years ago

I'm not directly involved with the Etcher project, but just to clarify...

you have to take into account what's best for who is using Etcher on Windows.

The "issue" isn't caused by Etcher itself, but with the contents of your linux-lite-5.4-64bit.iso file. (i.e. I suspect using Win32DiskImager or RPi Imager would cause exactly the same problems)

nope, it's not caused by the iso, and then if you go to read comments on this page https://www.balena.io/blog/did-etcher-break-my-usb-sd-card/ you can see that there are a lot of people using Etcher with all kinds of iso having this problem, so yeah, it's a Etcher bug, I don't understand why some people are taking this as a personal offense, user feedback should be useful to improve software

lurch commented 2 years ago

I wasn't taking personal offence, I don't care if you use Etcher or not, I was just trying to clear up confusion.

There's more info about the confusion "hybrid Linux ISOs" can cause here. And see also this discussion (and the massive thread that it links to) for an example of where people prematurely blame the disk-flashing software for being faulty, when it's not actually the software's fault.

frankbald commented 2 years ago

I wasn't taking personal offence, I don't care if you use Etcher or not, I was just trying to clear up confusion.

There's more info about the confusion "hybrid Linux ISOs" can cause here. And see also this discussion (and the massive thread that it links to) for an example of where people prematurely blame the disk-flashing software for being faulty, when it's not actually the software's fault.

thank you so much for all the info and the resources you provided, but a personal idea, maybe stupid from a really noob user. If it's a problem happening frequently, not caused by Etcher, why don't put a disclaimer when you try to use one of these ISO's?

frankbald commented 2 years ago

and even better, why the developers don't put inside the tool a formatter option to restore the memory device to a default fat32 partition?

lurch commented 2 years ago

and even better, why the developers don't put inside the tool a formatter option to restore the memory device to a default fat32 partition?

I've no idea why Etcher hasn't yet added an option to do that (see #273 ), but https://github.com/raspberrypi/rpi-imager/ does have the option to do that.