当我尝试在 Ubuntu 18.04 上安装 CUDA 时,出现了类似这样的警报 Not enough space remaining on system root
。因此我运行了以下命令进行检查:
danni@danni:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 7888196 0 7888196 0% /dev
tmpfs 1584380 2024 1582356 1% /run
/dev/sda6 19092136 15497852 2601416 86% /
tmpfs 7921884 26480 7895404 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 7921884 0 7921884 0% /sys/fs/cgroup
/dev/loop3 35584 35584 0 100% /snap/gtk-common-themes/319
/dev/loop2 21504 21504 0 100% /snap/gnome-logs/25
/dev/loop1 2432 2432 0 100% /snap/gnome-calculator/180
/dev/loop0 13312 13312 0 100% /snap/gnome-characters/101
/dev/loop5 296064 296064 0 100% /snap/pycharm-professional/78
/dev/loop6 143488 143488 0 100% /snap/gnome-3-26-1604/59
/dev/loop9 13312 13312 0 100% /snap/gnome-characters/103
/dev/loop8 3840 3840 0 100% /snap/gnome-system-monitor/51
/dev/loop10 3456 3456 0 100% /snap/gnome-system-monitor/36
/dev/loop12 1664 1664 0 100% /snap/gnome-calculator/154
/dev/loop4 14848 14848 0 100% /snap/gnome-logs/37
/dev/loop11 89088 89088 0 100% /snap/core/4830
/dev/loop14 144384 144384 0 100% /snap/gnome-3-26-1604/70
/dev/loop13 12544 12544 0 100% /snap/gnome-characters/69
/dev/loop15 307200 307200 0 100% /snap/pycharm-professional/68
/dev/loop19 2432 2432 0 100% /snap/gnome-calculator/178
/dev/loop20 5120 5120 0 100% /snap/canonical-livepatch/41
/dev/loop16 89088 89088 0 100% /snap/core/4917
/dev/loop18 3840 3840 0 100% /snap/gnome-system-monitor/45
/dev/loop17 142848 142848 0 100% /snap/gnome-3-26-1604/64
/dev/sda7 33186512 16828492 14642516 54% /home
tmpfs 1584376 20 1584356 1% /run/user/120
tmpfs 1584376 48 1584328 1% /run/user/1000
/dev/loop21 89088 89088 0 100% /snap/core/5145
/dev/sda3 293601276 133692 293467584 1% /media/danni/New Volume
/dev/sda2 314572796 134332 314438464 1% /media/danni/New Volume1
/dev/sda1 314572796 809720 313763076 1% /media/danni/New Volume2
/dev/sdb2 122947924 121239492 1708432 99% /media/danni/388CA9278CA8E09C
然后我的磁盘使用情况如下所示: 磁盘使用情况
所以我真的不知道为什么会有这么多/media
文件夹或dev/loop
。有人能给我解释一下或者告诉我如何释放更多空间吗?有没有比较方便的方法来更改磁盘空间?非常感谢!