1、通过fdisk命令查看
[root@gaosheng bjdb_script]# fdisk -l Disk /dev/sda: 32.2 GB, 32212254720 bytes 255 heads, 63 sectors/track, 3916 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 3394 27262273+ 83 Linux /dev/sda2 3395 3916 4192965 82 Linux swap / Solaris [root@gaosheng bjdb_script]#
原文:http://www.cnblogs.com/arcer/p/3563857.html