在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
解决方法:
如果/ dev / sde对应于可移动设备,请拔下它并删除任何剩余的设备节点(rm / dev / sde *).然后重新连接它并允许系统正确创建设备节点.
另一方面,如果/ dev / sde是内部设备,请删除设备节点并重新启动系统.这应该允许系统正确地重新创建设备节点.