Answers:
在Ubuntu中,该命令fdisk -l
不会返回任何内容,因为sudo不会执行该命令。请执行:sudo fdisk -l
它应该返回有关您的磁盘的信息。
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 250069679 125034839+ ee GPT