`
yuyee
  • 浏览: 56116 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

磁盘查看

阅读更多
磁盘查看工具
1. df来至于coreutils软件包,系统自带,通过这个命令可以查看磁盘的使用情况以及文件系统的挂载位置,参数:-l查看所有分区情况
如: Filesystem   容量 已用  可用 已用% 挂载点
     /dev/hda1    11g 6.0G 4.4G 58%   /
2.fdisk来自util-linux软件包,查看磁盘分区表和分区结构,参数-l,查看所有银盘的分区情况
  格式: Device Boot      Start         End      Blocks   Id  System
blocks表示分区的大小,单位是byte
System表示文件系统
[root@localhost beinan]# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot Start End Blocks Id System
/dev/hda1 * 1 765 6144831 7 HPFS/NTFS
/dev/hda2 766 2805 16386300 c W95 FAT32 (LBA)
/dev/hda3 2806 7751 39728745 5 Extended
/dev/hda5 2806 3825 8193118+ 83 Linux
/dev/hda6 3826 5100 10241406 83 Linux
/dev/hda7 5101 5198 787153+ 82 Linux swap / Solaris
/dev/hda8 5199 6657 11719386 83 Linux
/dev/hda9 6658 7751 8787523+ 83 Linux
Disk /dev/sda: 60.0 GB, 60011642880 bytes
64 heads, 32 sectors/track, 57231 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
   Device Boot Start End Blocks Id System
/dev/sda1 1 57231 58604528 83 Linux


/dev/hda3是扩展分区,下面的都是他的逻辑分区,主分区为/dev/hda1,/dev/hda2,/dev/hda3

通过fdisk -l /dev/sda 可查看该硬盘的分区情况
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics