我刚刚在 500GB SSD 上安装了 Ubuntu Server,看起来 / 的挂载只使用了 200GB。以下是 df -h 的输出:
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 1.5M 1.6G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 196G 7.4G 179G 4% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/sda2 976M 104M 805M 12% /boot
/dev/sda1 511M 7.8M 504M 2% /boot/efi
/dev/loop0 28M 28M 0 100% /snap/snapd/7264
/dev/loop1 55M 55M 0 100% /snap/core18/1705
/dev/loop2 69M 69M 0 100% /snap/lxd/14804
/dev/loop3 97M 97M 0 100% /snap/core/9436
/dev/loop4 126M 126M 0 100% /snap/docker/471
/dev/loop5 258M 258M 0 100% /snap/nextcloud/21796
/dev/loop6 260M 260M 0 100% /snap/rocketchat-server/1433
/dev/loop7 16M 16M 0 100% /snap/wormhole/112
tmpfs 1.6G 0 1.6G 0% /run/user/1000
有人知道为什么会发生这种情况吗?或者我该如何调整它的大小?谢谢!
sudo parted -l
Model: ATA WDC WDBNCE5000P (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 1612MB 1074MB ext4
3 1612MB 500GB 498GB
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 215GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 215GB 215GB ext4
答案1
我重新安装了服务器。如果其他人也遇到这个问题,请重新安装服务器并取消选中 LVM 选项。选择存储设备作为启动设备,然后选择格式为 ext64(视情况而定)的相同设备,这对我有用。