我真的受够了我的系统告诉我空间快用完了,而我知道我的 1TB 硬盘大部分都空的(下载失败、无法保存我的工作等)。清空垃圾箱并运行漂白剂仅提供暂时的解决方案。你能告诉我有没有真正的解决方案,不需要重新安装 Ubuntu...再一次?我已经变得非常谨慎分区就这一点而言。谢谢。
total 100
drwxr-xr-x 2 root root 4096 Dec 13 14:23 .
drwxr-xr-x 132 root root 12288 Jan 12 08:32 ..
-rwxr-xr-x 1 root root 10046 Feb 7 2019 00_header
-rwxr-xr-x 1 root root 6258 Mar 4 2018 05_debian_theme
-rwxr-xr-x 1 root root 12693 Mar 4 2018 10_linux
-rwxr-xr-x 1 root root 11298 Mar 4 2018 20_linux_xen
-rwxr-xr-x 1 root root 1992 Jan 28 2016 20_memtest86+
-rwxr-xr-x 1 root root 559 Oct 27 08:51 25_custom
-rwxr-xr-x 1 root root 12059 Mar 4 2018 30_os-prober
-rwxr-xr-x 1 root root 1418 Mar 4 2018 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Mar 4 2018 40_custom
-rwxr-xr-x 1 root root 216 Mar 4 2018 41_custom
-rw-r--r-- 1 root root 483 Mar 4 2018 README
输出自grep -i menuentry /etc/grub.d/25_custom
:
menuentry "EFI/BOOT/bkpbootx64.efi" {
menuentry "EFI/BOOT/fbx64.efi" {
menuentry "EFI/ubuntu/fwupx64.efi" {
menuentry "EFI/ubuntu/mmx64.efi" {
猫/etc/fstab
# file system mount point type options dump pass
# / was on /dev/sdc5 during installation
UUID=6dc63d7f-10a6-4a7b-8544-160bd90656e9 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
#UUID=8005-7FBB /boot/efi vfat umask=0077 0 1
UUID=8005-7FBB /boot/efi vfat defaults 0 1
/swapfile none swap sw 0 0
joe@joe-MS-7B38:~/桌面/QB64$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.9G 0 3.9G 0% /dev
tmpfs 800M 2.1M 798M 1% /run
/dev/sdb5 17G 16G 231M 99% /
tmpfs 4.0G 91M 3.9G 3% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 4.0G 0 4.0G 0% /sys/fs/cgroup
/dev/loop0 4.3M 4.3M 0 100% /snap/gnome-calculator/536
/dev/loop1 4.3M 4.3M 0 100% /snap/gnome-calculator/544
/dev/loop2 1.0M 1.0M 0 100% /snap/gnome-logs/81
/dev/loop3 15M 15M 0 100% /snap/gnome-characters/367
/dev/loop5 141M 141M 0 100% /snap/gnome-3-26-1604/98
/dev/loop6 45M 45M 0 100% /snap/gtk-common-themes/1353
/dev/loop7 1.0M 1.0M 0 100% /snap/gnome-logs/73
/dev/loop8 90M 90M 0 100% /snap/core/8268
/dev/loop11 157M 157M 0 100% /snap/gnome-3-28-1804/91
/dev/loop12 3.8M 3.8M 0 100% /snap/gnome-system-monitor/111
/dev/loop15 90M 90M 0 100% /snap/core/8213
/dev/loop16 203M 203M 0 100% /snap/vlc/1049
/dev/loop18 157M 157M 0 100% /snap/gnome-3-28-1804/110
/dev/loop17 141M 141M 0 100% /snap/gnome-3-26-1604/97
/dev/loop9 3.8M 3.8M 0 100% /snap/gnome-system-monitor/123
/dev/loop10 203M 203M 0 100% /snap/vlc/1397
/dev/loop4 15M 15M 0 100% /snap/gnome-characters/375
/dev/sda1 188M 7.2M 180M 4% /boot/efi
/dev/loop19 55M 55M 0 100% /snap/core18/1288
tmpfs 800M 52K 800M 1% /run/user/1000
/dev/sr0 6.0G 6.0G 0 100% /media/joe/DIRT
/dev/sda2 917G 12G 859G 2% /media/joe/695a1d1e-fd7d-4d22-9b2d-474c06128758
/dev/loop20 55M 55M 0 100% /snap/core18/1650
/dev/loop13 45M 45M 0 100% /snap/gtk-common-themes/1440
tmpfs 800M 16K 800M 1% /run/user/120
joe@joe-MS-7B38:~/Desktop/QB64$ sudo blkid
/dev/sda1: UUID="8005-7FBB" TYPE="vfat" PARTUUID="27a1ee8f-f7d1-4950-abbd-9e8f108b5464"
/dev/sda2: UUID="695a1d1e-fd7d-4d22-9b2d-474c06128758" TYPE="ext4" PARTUUID="672863c7-133e-46f1-b73b-4f6bef6e1ff5"
/dev/sdb1: UUID="C040B0ED40B0EB74" TYPE="ntfs" PARTUUID="e8900690-01"
/dev/sdb5: UUID="6dc63d7f-10a6-4a7b-8544-160bd90656e9" TYPE="ext4" PARTUUID="e8900690-05"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/loop4: TYPE="squashfs"
/dev/loop5: TYPE="squashfs"
/dev/loop6: TYPE="squashfs"
/dev/loop7: TYPE="squashfs"
/dev/loop8: TYPE="squashfs"
/dev/loop9: TYPE="squashfs"
/dev/loop10: TYPE="squashfs"
/dev/loop11: TYPE="squashfs"
/dev/loop12: TYPE="squashfs"
/dev/loop13: TYPE="squashfs"
/dev/loop15: TYPE="squashfs"
/dev/loop16: TYPE="squashfs"
/dev/loop17: TYPE="squashfs"
/dev/loop18: TYPE="squashfs"
/dev/loop19: TYPE="squashfs"
/dev/loop20: TYPE="squashfs"
sudo fdisk -l /dev/sda
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 4C785F47-BD76-4FB3-BCB1-4C0011813BF4
Device Start End Sectors Size Type
/dev/sda1 2048 391167 389120 190M EFI System
/dev/sda2 391168 1953521663 1953130496 931.3G Linux filesystem
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: dos
Disk identifier: 0xe8900690
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 63 1918130209 1918130147 914.7G 7 HPFS/NTFS/exFAT
/dev/sdb2 1918132222 1953523711 35391490 16.9G 5 Extended
/dev/sdb5 1918132224 1953523711 35391488 16.9G 83 Linux
答案1
确保您已对重要的 Ubuntu 文件进行良好的备份,因为此过程可能会损坏或丢失数据。
请记住以下几点:
始终以在任何已挂载的交换分区上发出 来启动整个过程,并以在同一个交换分区上
swapoff
发出 来结束整个过程swapon
A移动通过将鼠标指针指向分区的中心,然后使用手形光标向左/向右拖动来完成
A调整大小通过使用方向箭头光标将分区的左侧/右侧向左/向右拖动来完成
如果任何分区无法移动/调整大小图形上,你可能必须手动输入所需的具体数字数据(除非我指示你这样做,否则不要这样做)
你开始任何移动/调整大小右键单击主窗口下方窗格中的分区,从弹出菜单中选择所需操作,然后在新窗口中完成该操作移动/调整大小窗户
请执行下列操作...
笔记:如果这不是与 Windows 的双启动环境,则 /dev/sda4 应该是 ext4 分区,而不是 NTFS。
笔记:如果程序没有完全按照我概述的方式进行,停止立即和不要继续。
- 启动至 Ubuntu Live DVD/USB
- 开始
gparted
- 移动/dev/sda4 分区完全正确
- 调整大小/dev/sda2 右侧一直正确
- 如果需要,调整 /dev/sda2 和 /dev/sda4 的最终大小
- 点击应用图标
或者...
笔记:由于看起来您没有运行 Windows 双启动……
- 备份 /dev/sda4 中的所有重要数据
- 如果你在 /etc/fstab 中为 /dev/sda4 添加了挂载点,请将其注释掉
sudo -H gedit /etc/fstab
- 启动至 Ubuntu Live DVD/USB
- 开始
gparted
- 删除 /dev/sda4
- 调整 /dev/sda2 右侧的大小
- 点击应用图标
- 重启
- 将任何 /dev/sda4 数据恢复到 /home 目录
更新#1:
- 稍有偏差即可修复另一个问题
sudo mv /etc/grub.d/25_custom ~/Desktop
# 将文件移动到桌面
sudo update-grub
# 更新 grub
reboot
# 惊叹于您更新更简洁的 GRUB 菜单!
更新 #2:
OP 实际上是启动到 /dev/sdb5,并且那我们的空间已经不够了!