LINUX下,怎么查看(包括没有挂载的)硬盘使用情况?
2011-08-22 07:37HRF1990to2003 | 分类:硬盘 | 浏览2250次
我来帮他解答
提问者采纳
检举| 2011-08-22 08:31
sudo fdisk -l 可以查看到的!
[root@localhost /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
13G 10G 2.0G 84% /
/dev/sda1 99M 30M 65M 32% /boot
tmpfs 471M 0 471M 0% /dev/shm
[root@localhost /]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
13G 10G 2.0G 84% /
/dev/sda1 99M 30M 65M 32% /boot
tmpfs 471M 0 471M 0% /dev/shm
[root@localhost /]# fdisk -l
Disk /dev/sda: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 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 1958 15623212+ 8e Linux LVM
Disk /dev/sdb: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12794 102760448 83 Linux
/dev/sdb2 12794 13055 2094081 5 Extended
/dev/sdb5 12794 13055 2094080 82 Linux swap / Solaris
[root@localhost /]#