尝试在 Linux 中对磁盘驱动器进行分区和格式化时,不断出现错误的使用情况

尝试在 Linux 中对磁盘驱动器进行分区和格式化时,不断出现错误的使用情况
Disklabel type: gpt
Disk identifier:  6C5A63BF-EF32-9244-8273-250775DB79D6

Device      Start     End  Sectors  Size Type
/dev/sdb1 8704000 18874476 10170477 4.9G Linux filesystem
/dev/sdb2   20480   53247   32768  16M ChromeOS kernel
/dev/sdb3 4509696 8703999 4194304   2G ChromeOS root fs
/dev/sdb4   53248   86015   32768  16M ChromeOS kernel
/dev/sdb5  315392 4509695 4194304   2G ChromeOS root fs
/dev/sdb6   16448   16448       1 5128 ChromeOS kernel
/dev/sdb7    16449   16449       1 5128 ChromeOS root fs
/dev/sdb8   86016  118783   32768  16M Linux filesystem
/dev/sdb9    16450   16450       1 5128 ChromeOS reserved
/dev/sdb10   16451   16451       1 5128 ChromeOS reserved
/dev/sdbll     64   16447   16384   8M BIOS boot
/dev/sdb12 249856  315391   65536  32M EFI System

Partition 7 does not start on physical sector boundary. Partition 9 does not start on physical 
sector boundary. Partition 10 does not start on physical sector boundary. Partition table entries 
are not in disk order. student@d2e8a553c052:-$
student@d2e8a553c052:-$ student@d2e8a553c052:-$
student@d2e8a553c052:-$ sudo fdisk /dev/[SECOND DRIVE ] fdisk: bad usage
Try 'fdisk --help' for more information.
student@d2e8a553c052:-$ sudo fdisk --help

Usage:
fdisk [options] <disk>     change partition table fdisk [options] -1 [<disk>] list partition 
table(s)

Display or manipulate a disk partition table.


Options:
-b, --sector-size <size>
-B, --protect-boot

创建新标签时,物理和逻辑扇区大小不会擦除引导位

答案1

一般来说,你会从

sudo fdisk -l /dev/sda

或者

sudo fdisk -l /dev/sdb

您可以通过在 /dev 中查找来找到设备节点(sd* 部分)

ls -al /dev/ | more

查找以“b”(表示“块设备”)开头的行。

祝你好运。

相关内容