我无法删除 USB 驱动器/记忆棒上的分区

tsh*_*ang 2 partition usb-drive

我得到了一个可能由 dd 创建的分区,在 4GB 的 U 盘上大约有 200MB。我无法使用 GParted 删除它(该选项在右键单击菜单上呈灰色)。

在此处输入图片说明

在此处输入图片说明

squ*_*org 5

打开终端

steve@mcr-pc-29334:~$ sudo fdisk  /dev/sdb

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): d                   
Selected partition 1

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
steve@mcr-pc-29334:~$ 
Run Code Online (Sandbox Code Playgroud)

所以须藤 fdisk /dev/sdb

然后按 d

删除分区,如果它是唯一的,它会自动选择,否则它会提示输入分区号

然后按 w 将更改写入磁盘

完毕 :)