X
X
Xtone2019-11-13 12:12:19
linux
Xtone, 2019-11-13 12:12:19

How to cure a flash drive?

I bought a new flash drive and decided to format it for prevention. True, at first from under Windows, but the formatting was very delayed there, I decided that something was wrong (Windows is generally a buggy system) and rebooted into Linux. From under it I also tried through gparted and from the console, but all to no avail ... The flash drive died :( Please help me revive it. it is possible to re-create the partition table (also tried, but did not help)
PS Now it is not displayed in the file manager, but its partition / dev / sdc is visible through fdisk -l

Answer the question

In order to leave comments, you need to log in

8 answer(s)
Z
Zolg, 2019-11-13
@Zolg

Windows in general is a buggy system

The times of the joke about 'now, I'll just format the floppy' have passed many, many years ago,
the simplest thing for you:
# dd if=/dev/zero of=/dev/sdc bs=1M count=1
on Linux (wipe the partition table) then
stick in Windows and agree with the formatting.
if it doesn't help, most likely the flash drive is broken

R
Ronald McDonald, 2019-11-13
@Zoominger

dd if=/dev/zero of=/dev/sdc bs=4096
And then format. The process will take time.

C
CityCat4, 2019-11-13
@CityCat4

Windows in general is a buggy system

Yes, but if it has a problem with a flash drive, then as a rule the problem is not in Windows :) I just got guano and it's good that she died right away, while there was no valuable information on it.
If you want to have sex for real, you can take it apart, find a description of the controller by marking, try to change it, but as a rule, everything ends with an exact throw into the trash can :)

S
Saboteur, 2019-11-13
@saboteur_kiev

xtone ,

Yes, I bought it without a check in a small eatery where photos are taken for documents.

It is possible that a burnt flash drive that is lying about its size. Therefore, when you try to write information to a place that is not on the flash drive, it is covered.
Here, when formatting, you just got there. Well, or without formatting, they would write down a couple of files and everything would be covered.
Pretty common situation.
You should not buy it is not clear what is not clear where, it is not clear what brand.

A
Alexey Dmitriev, 2019-11-13
@SignFinder

Flash drive manufacturers have utilities for testing and formatting their flash drives. Look on the manufacturer's website.

X
xotkot, 2019-11-13
@xotkot

what does fdisk itself show? Does the flash drive size match? show its output
, make sure /dev/sdc is the block device of your flash drive, if not, then change what is written below to the appropriate one.

$ sudo umount /dev/sdc*
$ sudo wipefs -af /dev/sdc
$ sudo parted /dev/sdc mktable gpt mkpart p1 0% 100%
$ lsblk
$ sudo mkfs.ext4 /dev/sdc1
$ udisksctl mount -b /dev/sdc1

A
Alexey Kharchenko, 2019-11-14
@AVX

As a person with experience, I can say that from 8-10 years ago it was relevant. Now the prices for flash drives are such that it makes sense to mess around starting with 64GB.
In Linux, wipe the entire flash drive with the dd utility. Next, we make one section with any partition editor, format it - you're done!
In Windows, we take the same dd (windows) or better flashnul (I usually used it), and overwrite the flash drive. Well and further regular means of Windows.
Flashnul can also test all blocks on a flash drive - read-write-verify - see help in the program itself.
If there is a gag somewhere, they already suggested that there is a site fhlashboot.ru, there are a lot of materials, and different software for different controllers.
PS!!! If the data on the flash drive is important - do nothing with it at all! Immediately to the data recovery company, where they will take a dump from the memory chips and decrypt it, and give your data (if they are still there).

A
Alexander, 2019-11-16
@Adorne

Try to recreate the partition table and the partition itself:

sudo parted /dev/sdc

mklabel gpt <делает GPT-таблицу>
mkpart <выбираете ntfs, start делаете 0, end делаете 100%>
quit <выход из утилиты>

sudo mkfs.ntfs -Q /dev/sdc1

Then try to mount:
sudo mount.ntfs /dev/sdc1 /mnt

lsblk -f <должен показать примонтированный раздел с файловой системой>

If the problem is only with the table, it should help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question