在 Ubuntu 14.04 上,我尝试创建新分区,但无法创建文件系统
fdisk -l /dev/sde
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sde: 299.0 GB, 298999349248 bytes
256 heads, 63 sectors/track, 36209 cylinders, total 583983104 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 1 583983103 291991551+ ee GPT
Partition 1 does not start on physical sector boundary.
但
partprobe /dev/sde1
Error: Error opening /dev/sde1: No such device or address
和
mkfs.xfs /dev/sde1
mkfs.xfs: cannot open /dev/sde1: No such device or address
设备存在,虽然设备节点看起来很奇怪
ls -la /dev/sde*
brw-rw---- 1 root disk 8, 64 Jan 18 16:43 /dev/sde
cr-------- 1 root root 8, 65 Jan 17 09:20 /dev/sde1
cr-------- 1 root root 8, 66 Jan 17 09:20 /dev/sde2
答案1
显示警告fdisk
:
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
您必须使用gdisk
或parted
与 GPT 磁盘一起使用。
答案2
如果/dev/sde
对应于可移动设备,请将其拔下并删除所有剩余的设备节点 ( rm /dev/sde*
)。然后重新连接并让系统正确创建设备节点。
另一方面,如果/dev/sde
是内部设备,请删除设备节点并重新启动系统。这应该允许系统正确地重新创建设备节点。