![fdisk 和 df 之间的尺寸存在奇怪的差异](https://linux22.com/image/766477/fdisk%20%E5%92%8C%20df%20%E4%B9%8B%E9%97%B4%E7%9A%84%E5%B0%BA%E5%AF%B8%E5%AD%98%E5%9C%A8%E5%A5%87%E6%80%AA%E7%9A%84%E5%B7%AE%E5%BC%82.png)
fdisk
报告有关分区的以下信息
Device: /dev/sda1
Boot: *
Start: 2048
End: 209715166
Sectors: 209713119
Cylinders: 443369
Size: 100G
Id: 83
Type: Linux
Start-C/H/S: 0/32/33
End-C/H/S: 766/42/11
Attrs: 80
虽然df
给了我这个:
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.1G 8.4M 3.1G 1% /run
/dev/sda1 20G 19G 0 100% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 3.1G 0 3.1G 0% /run/user/1000
我该如何恢复这 80G 以供使用?
更新fdisk -l /dev/sda
:
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors
Disk model: VBOX HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd958ae29
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 209715166 209713119 100G 83 Linux
已修复使用resize2fs /dev/sda1