I cannot erase USB flash-drive. Previously it was prepared & used as ubuntu-22 installation disk. Please help. Thanks
I cannot erase USB flash-drive. Previously it was prepared & used as ubuntu-22 installation disk. Please help. Thanks
|
Hello Igor. What have you tried already?
|
Use gparted to create a new partition table, a new partition and select the desired filesystem.
|
When flash disk ignores write requests and retains old data it is an indication that it has failed and is giving you the last chance to copy your files.
|
I have run into the same problem a time or two. I've been using wipefs lately to get rid of the filesystem signatures before I do anything else, especially if I installed from the memory stick.
I'm going to have to try gparted next time. Sounds like a solid suggestion. |
Quote:
|
There are two possibilities. It might be failing but it may just be that its iso formating makes it look like an external optical drive and what could alter that?
Mount it, note the id (e.g. /dev/sdc or whatever), unmount, and use this Code:
dd if=/dev/zero bs=1M count=10 of=/dev/sdc |
Quote:
|
Terminal printed: Permission denied
|
Quote:
sudo dd if=/dev/zero bs=1M count=10 of=/dev/sdx Please verify the correct device ID. |
|
DavidMcCann
I -- not a pro -- tried that way. Failed. |
michaelk
Thank you. Especially for the last quotation. Regretfully, it cannot help to purge my flash-jack. |
When a pendrive has been used as an installation image, to return it to normal usage, you need to write a new partition table to it, usually an MBR, (could be a GPT, depending on size), then partition, & add a file system.
|
michaelk
Terminal answered: 10+0 records in 10+0 records out 10485760 bytes (10 MB, 10 MiB) copied, 0.0065166 s, 1.6 GB/s So? |
fatmac
When a pendrive has been used as an installation image, to return it to normal usage, you need to write a new partition table to it, usually an MBR*, (could be a GPT*, depending on size), then partition, & add a file system. * Sorry, but what's that? |
Now with gparted
1. Create a new partition table. MBR for a flash drive is fine 2. Create a new partition, select the desired filesystem. If also using the drive with Windows select NTFS, exFAT or FAT32. 3. Click the green check mark to apply all operations. MBR = Master Boot Record. It organizes partitions on a drive so the system can find them. GPT = GUID Partition Table. Basically same as for MBR but for drives > 2TB |
DavidMcCann
Mount it, note the id (e.g. /dev/sdc or whatever), unmount, ... It doesn't mount. |
If you created a new partition table as instructed above, did you create a partition with a filesystem (see post 17)? If not, it won't mount as there is nothing to mount. You need to create a filesystem on it.
|
I thank you all for your answers to my post.
|
I think fatmac is on to something:
Quote:
I have been using wipefs a lot lately to make good-but-unwriteable USB flash drives writeable again. The command line is "wipefs -a /dev/sdX". It zeroes out the file system signature and a couple of other locations, as described in the man page. It has failed me on a couple of cheap drives. They got the hammer-and-trash treatment. If you can still read the data from the last time you used the drive, give wipefs a try. HTH |
Quote:
|
All times are GMT -5. The time now is 06:47 AM. |