我正在尝试重新格式化一个驱动器。最初是用ZFS文件系统为Solaris格式化的。我正在为我的Linux (debian)重新格式化。
我使用fdisk删除所有现有分区。当尝试创建新分区时,fdisk和cfdisk都挂起。
Disk /dev/sdb: 68.4 GiB, 73407865856 bytes, 143374738 sectors
Disk model: ST973402SSUN72G
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DB83FA41-8BEC-C84A-9DF1-8EC1CCDB776F
Welcome to fdisk (util-linux 2.33.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition number (1-9, default 1):
(按回车,挂起)
Disk: /dev/sdb
Size: 68.4 GiB, 73407865856 bytes, 143374738 sectors
Label: gpt, identifier: DB83FA41-8BEC-C84A-9DF1-8EC1CCDB776F
Device Start End Sectors Size Type
>> Free space 2048 143374704 143372657 68.4G
May be followed by M for MiB, G for GiB, T for TiB, or S for sectors.
(按下分区大小的enter,挂起)
fsck from util-linux 2.33.1
e2fsck 1.44.5 (15-Dec-2018)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Found a gpt partition table in /dev/sdb
它为什么挂着?我做错了什么?
发布于 2020-10-07 06:37:38
我使用fdisk命令创建了一个新的空GPT分区表。在此之后,新的分区命令开始工作。不确定为什么需要这样做,因为磁盘已经被标记为Disklabel类型: gpt。但在那之后起了作用。
https://serverfault.com/questions/1036781
复制相似问题