我讨厌这个垃圾信息:Disk /dev/dm-0 doesn't contain a valid partition table
例如在我的 Debian 6.0 虚拟机中: [r...@linux-x64:~]# fdisk -v fdisk (util-linux-ng 2.16.2) [r...@linux-x64:~]# fdisk -l Disk /dev/sda: 17.2 GB, 17171480576 bytes 255 heads, 63 sectors/track, 2087 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x000a318a Device Boot Start End Blocks Id System /dev/sda1 * 1 15 120456 83 Linux /dev/sda2 16 127 899640 82 Linux swap / Solaris /dev/sda3 128 2087 15743700 8e Linux LVM Disk /dev/dm-0: 3997 MB, 3997171712 bytes 255 heads, 63 sectors/track, 485 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/dm-0 doesn't contain a valid partition table 但是为什么 RedHat 中的低版本 fdisk 就很聪明: [r...@rhel ~]# fdisk -v fdisk (util-linux 2.13-pre7) [r...@rhel ~]# fdisk -l Disk /dev/sda: 146.1 GB, 146163105792 bytes 255 heads, 63 sectors/track, 17769 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 13 104391 83 Linux /dev/sda2 14 17769 142625070 8e Linux LVM Disk /dev/sdb: 292.3 GB, 292326211584 bytes 255 heads, 63 sectors/track, 35539 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 35539 285466986 8e Linux LVM -- Dongsheng

