virmach的VPS重装系统后只有2G空间是怎么回事?
virmach的VPS重装系统后只有2G空间是怎么回事?用fdisk看到的空间确实是20G, 但df命令看到的只有2G,而且可用的空间是2G.安装几个软件就称爆了。
# fdisk -l
Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 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 IdSystem
/dev/vda1 * 2048 37746303 18872128 83Linux
/dev/vda2 37746304 41940607 2097152 82Linux swap / Solaris
# parted -l
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 21.5GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
NumberStart End Size Type File system Flags
1 1049kB19.3GB19.3GBprimaryext4 boot
2 19.3GB21.5GB2147MBprimarylinux-swap(v1)
# df -h
Filesystem SizeUsed Avail Use% Mounted on
/dev/vda1 2.0G 1005M836M55% /
devtmpfs 912M 0912M 0% /dev
tmpfs 921M 0921M 0% /dev/shm
tmpfs 921M 17M904M 2% /run
tmpfs 921M 0921M 0% /sys/fs/cgroup
tmpfs 921M 17M904M 2% /etc/machine-id
#
本帖最后由 foboy 于 2016-12-21 05:17 编辑
已经找到了答案,感谢强大的坛子。
传送:https://www.hs2v.com/forum.php ... 50&highlight=2g
resize2fs /dev/vda1
页:
[1]