我也得到了gparted:
以下是一些数据
➜ ~ df -Th
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 7.7G 0 7.7G 0% /dev
tmpfs tmpfs 1.6G 9.5M 1.6G 1% /run
/dev/sdb1 ext4 15G 14G 240M 99% /
tmpfs tmpfs 7.7G 110M 7.6G 2% /dev/shm
tmpfs tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/loop0 squashfs 4.4M 4.4M 0 100% /snap/canonical-livepatch/15
/dev/loop2 squashfs 4.4M 4.4M 0 100% /snap/canonical-livepatch/17
/dev/loop1 squashfs 75M 75M 0 100% /snap/ubuntu-core/423
/dev/sda5 ext4 444G 13G 409G 3% /home
tmpfs tmpfs 1.6G 68K 1.6G 1% /run/user/1000
/dev/loop3 squashfs 4.4M 4.4M 0 100% /snap/canonical-livepatch/22
/dev/loop4 squashfs 76M 76M 0 100% /snap/ubuntu-core/1797
➜ ~ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=8042684k,nr_inodes=2010671,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=1612560k,mode=755)
/dev/sdb1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=34,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/var/lib/snapd/snaps/canonical-livepatch_15.snap on /snap/canonical-livepatch/15 type squashfs (ro,relatime)
/var/lib/snapd/snaps/canonical-livepatch_17.snap on /snap/canonical-livepatch/17 type squashfs (ro,relatime)
/var/lib/snapd/snaps/ubuntu-core_423.snap on /snap/ubuntu-core/423 type squashfs (ro,relatime)
/dev/sda5 on /home type ext4 (rw,relatime,data=ordered)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,noexec,relatime,size=1612560k,mode=755)
nsfs on /run/snapd/ns/canonical-livepatch.mnt type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1612560k,mode=700,uid=1000,gid=1000)
/dev/sdb1 on /var/lib/docker/aufs type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/var/lib/snapd/snaps/canonical-livepatch_22.snap on /snap/canonical-livepatch/22 type squashfs (ro,relatime)
/var/lib/snapd/snaps/ubuntu-core_1797.snap on /snap/ubuntu-core/1797 type squashfs (ro,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
➜ ~ sudo parted -l
Model: ATA ST500LM021-1KJ15 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
2 1048kB 484GB 484GB extended
5 1049kB 484GB 484GB logical ext4
1 484GB 500GB 16.4GB primary linux-swap(v1)
Model: ATA SanDisk SSD U110 (scsi)
Disk /dev/sdb: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 16.0GB 16.0GB primary ext4 boot
那么看起来我有很多未使用的空间?
答案1
您的问题在这里...
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext4 15G 14G 240M 99% /
您的 / 分区已满……好吧,真正的问题是您的 / 分区太小。对于这个来说,SSD 太小了。Ubuntu / 分区不应小于 20G,30-60G 更现实。您可能可以摆脱一些旧的 Ubuntu 内核/boot
,如果您在 Ask Ubuntu 上搜索,您会找到大量有关如何最好地做到这一点的说明。
另一个想法是在 500G 上构建可启动系统,并将 16G SSD 用于其他用途。