在Linux中,分区分为主分区、扩展分区和逻辑分区,使用fdisk-1命令获得分区信息如下所示:
Disk/dev/hda:24 0 heads,63 sectors,1940 cylinders
Units=cylinders of 15120 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda 1286 2162128+ c Win95 FAT32(LBA)
/dev/hda2 * 288 1940 12496680 5 Extended
/dev/hda5 288 289 15088+ 83 Linux
/dev/hda6 290 844 4195768+ 83 Linux
/dev/hda7 845 983 1050808+ 82 Linux swap
/dev/hda8 984 1816 6297448+ 83 Linux
/dev/hda9 1817 1940 937408+ 83 Linux
其中,属于扩展分区的是 (5) 。
使用df-T命令获得信息部分如下所示:
Filesystem Type lk Blocks Used Available Use% Mounted on
/dev/hda6 reiSerfs 4195632 2015020 2180612 49% /
/dev/hda5 ext2 14607 3778 10075 8% /boot
/dev/hda9 reiserfs 937372 202368 735004 22% /home
/dev/hda8 reiSerfa 6297248 3883504 2414744 62% /opt
Shmfs shm 256220 0 256220 0% /dev/shm
/dev/hda1 984 2159992 1854192 305800 86% /wlndows/c
其中,不属于Linux系统分区的是 (6) 。