我想将 30 GB 的空间从主目录移动到根目录。
Filesystem Size Used Avail Use% Mounted on
udev 7.8G 0 7.8G 0% /dev
tmpfs 1.6G 11M 1.6G 1% /run
/dev/nvme0n1p7 19G 14G 3.6G 80% /
tmpfs 7.8G 158M 7.6G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/loop1 56M 56M 0 100% /snap/core18/1885
/dev/loop2 16M 16M 0 100% /snap/easy-openvpn-server/64
/dev/loop5 256M 256M 0 100% /snap/gnome-3-34-1804/36
/dev/loop3 162M 162M 0 100% /snap/gnome-3-28-1804/128
/dev/loop4 97M 97M 0 100% /snap/core/9804
/dev/loop6 2.5M 2.5M 0 100% /snap/gnome-calculator/748
/dev/loop0 97M 97M 0 100% /snap/core/9665
/dev/loop7 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop8 1.0M 1.0M 0 100% /snap/gnome-logs/100
/dev/loop9 384K 384K 0 100% /snap/gnome-characters/550
/dev/loop10 87M 87M 0 100% /snap/simplescreenrecorder/1
/dev/loop11 2.3M 2.3M 0 100% /snap/gnome-system-monitor/148
/dev/loop12 68M 68M 0 100% /snap/sublime-text/85
/dev/nvme0n1p8 147G 1.6G 138G 2% /home
/dev/nvme0n1p1 356M 116M 241M 33% /boot/efi
tmpfs 1.6G 24K 1.6G 1% /run/user/1000
我的主分区目前为 147 GB,根分区为 19 GB。我想将其设为 117 GB + 49 GB。我尝试了https://unix.stackexchange.com/questions/213245/increase-root-partition-by-reducing-home替换/dev/mapper...
为/dev/nvme...
从控制台登录。但fsck
命令给出错误Cannot continue, aborting.
请提出建议。