my pendrive doesn't work: device label is not recognised How can I fix it? I don't need the data from it, so it can be formatted.
There are some communicates:
sudo fdisk -l /dev/sdb
Dysk /dev/sdb: 3,8 GiB, bajtów: 4026531840, sektorów: 7864320
Jednostki: sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Rozmiar we/wy (minimalny/optymalny) w bajtach: 512 / 512
sudo gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.3
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: not present
Creating new GPT entries.
Disk /dev/sdb: 7864320 sectors, 3.8 GiB
Model: UDisk
Sector size (logical/physical): 512/512 bytes
Disk identifier (GUID): 0ADEF184-7FFB-42EB-8C86-7639B58A025F
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 7864286
Partitions will be aligned on 2048-sector boundaries
Total free space is 7864253 sectors (3.7 GiB)
Number Start (sector) End (sector) Size Code Name
I also tried this:
sudo dd if=/dev/zero of=/dev/sdb bs=512 count=1
and gparted also without success.
/dev/sdb: unrecognised disc label
Now when I do:
sudo gdisk /dev/sdb
then I obtain:
GPT fdisk (gdisk) version 1.0.3
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!
Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!
Warning! One or more CRCs don't match. You should repair the disk!
Partition table scan:
MBR: not present
BSD: not present
APM: not present
GPT: damaged
Found invalid MBR and corrupt GPT. What do you want to do? (Using the
GPT MAY permit recovery of GPT data.)
1 - Use current GPT
2 - Create blank GPT
and whatever I choose (1 or 2), when I type: v,w it change nothing. Still I obtain the same communicates of gdisk /dev/sdb.
The pendrive was working few days ago.