linux系统如何查看硬盘大小以及分区情况
今天和大家介绍下,如何查看linux系统的硬盘大小以及设备情况,很多朋友用windows系统都知道,打开我的电脑就能查看硬盘情况,但是linux系统需要用命令才能查看到。
我们SSH登录到linux系统下,在命令提示符下输入著名的硬盘命令Fdisk -l ,然后回车,下面是我机器的结果:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sda: 53.6 GB, 53687091200 bytes
256 heads, 63 sectors/track, 6501 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 6502 52428799+ ee EFI GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn 't support GPT. Use GNU Parted.
Disk /dev/sdb: 1945.6 GB, 1945620185088 bytes
255 heads, 63 sectors/track, 236541 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
以上的信息是有2个分区,第一块是53.6GB,第二块是1945.6GB,以及柱面情况等等,这样我们就能大概计算自己的硬盘大概是多少啦,是不是很简单呢,赶紧去用命令查看一下您的硬盘吧。