[root@root /]# fdisk -l
Disk /dev/vda: 26.8 GB, 26843545600 bytes, 52428800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000dcb5c
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 48232063 24115008 83 Linux
/dev/vda2 48232064 52426367 2097152 82 Linux swap / Solaris
[root@root /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 2.0G 1.8G 78M 96% /
devtmpfs 912M 0 912M 0% /dev
tmpfs 921M 0 921M 0% /dev/shm
tmpfs 921M 25M 896M 3% /run
tmpfs 921M 0 921M 0% /sys/fs/cgroup
tmpfs 921M 25M 896M 3% /etc/machine-id
tmpfs 185M 0 185M 0% /run/user/0
实在搞不懂为什么会这样,明明还有 26.8G 空间,但是 df -hl 只显示 2GB
1
msg7086 2017-04-11 23:04:09 +08:00 1
resize2fs /
|