帮助格式化 USB 驱动器

帮助格式化 USB 驱动器

所以我意外损坏了一个 sandisk usb 驱动器。当我转到“磁盘和设备”时,那里没有检测到 usb。我只能通过 kde 分区管理器或终端访问它,但无法读取其中的任何数据。它应该是 64GB,但在 kde 分区管理器中,容量显示为 64MB。我尝试创建一个新的分区表,它显示成功,但分区表没有创建。它仍然提示我创建一个新的分区表。我如何使 usb 驱动器可用?我不在乎数据是否丢失。

我尝试过之前对类似问题的回答如何格式化 USB 驱动器?

它对我不起作用。这是执行这些命令时的输出。

❯ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0     4K  1 loop /snap/bare/5
loop1         7:1    0  72.9M  1 loop /snap/core22/509
loop2         7:2    0  72.9M  1 loop /snap/core22/522
loop3         7:3    0 452.4M  1 loop /snap/gnome-42-2204/56
loop4         7:4    0 460.3M  1 loop /snap/gnome-42-2204/65
loop5         7:5    0  91.7M  1 loop /snap/gtk-common-themes/1535
loop6         7:6    0  49.8M  1 loop /snap/snapd/17950
loop7         7:7    0  49.8M  1 loop /snap/snapd/18357
sda           8:0    1    64M  0 disk 
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0   260M  0 part /boot/efi
├─nvme0n1p2 259:2    0    16M  0 part 
├─nvme0n1p3 259:3    0 200.9G  0 part 
├─nvme0n1p4 259:4    0     1G  0 part 
├─nvme0n1p5 259:5    0   2.2G  0 part 
├─nvme0n1p6 259:6    0   252G  0 part /
└─nvme0n1p7 259:7    0  20.6G  0 part 

❯ sudo fdisk /dev/sda

Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xf430b9ec.

Command (m for help): o
Created a new DOS disklabel with disk identifier 0xd9afc416.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-131071, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-131071, default 131071): 

Created a new partition 1 of type 'Linux' and of size 63 MiB.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


❯ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0     4K  1 loop /snap/bare/5
loop1         7:1    0  72.9M  1 loop /snap/core22/509
loop2         7:2    0  72.9M  1 loop /snap/core22/522
loop3         7:3    0 452.4M  1 loop /snap/gnome-42-2204/56
loop4         7:4    0 460.3M  1 loop /snap/gnome-42-2204/65
loop5         7:5    0  91.7M  1 loop /snap/gtk-common-themes/1535
loop6         7:6    0  49.8M  1 loop /snap/snapd/17950
loop7         7:7    0  49.8M  1 loop /snap/snapd/18357
sda           8:0    1    64M  0 disk 
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0   260M  0 part /boot/efi
├─nvme0n1p2 259:2    0    16M  0 part 
├─nvme0n1p3 259:3    0 200.9G  0 part 
├─nvme0n1p4 259:4    0     1G  0 part 
├─nvme0n1p5 259:5    0   2.2G  0 part 
├─nvme0n1p6 259:6    0   252G  0 part /
└─nvme0n1p7 259:7    0  20.6G  0 part 

尽管 fdisk 显示已创建了新分区,但之后重新检查时却lsblk没有显示任何新分区。

相关内容