怎么增加根目录的空间?
Tofloor
poster avatar
152******35
deepin
2020-12-06 21:52
Author

安装是没规划好,好像是网上搜的分配方法,现在根目录太小了,安装xdroid报空间不够

想问下怎么调整?


Reply Favorite View the author
All Replies
i8520
deepin
2020-12-06 22:44
#1

live 进入系统,把根分区的数据直接备份到大的分区

手动配置fstab自动挂载  ext4 ntfs fat32 分区 http://note.youdao.com/s/MKhxBTFs


Reply View the author
Feng Yu
deepin
2020-12-07 00:31
#2

ext4是不支持垮分区扩展的,相邻的分区是可以扩展的,btrfs和zfs好像是支持的。你这种情况只能删了/home分区,/和/home这俩相邻。因此删了/home之后就可以扩展/的容量,再重新划分/home出来

Reply View the author
neko
deepin
Ecological co-builder
Q&A Team
2020-12-07 02:39
#3

可以修改/etc/fstab将以下目录挂载到数据盘(/data)如果没有可以用其它空闲的分区代替比如你的/home 


不可直接复制执行,按实际情况修改。

sudo -i

mkdir /data/usr

mv /usr/{share,local} /data/usr/

echo "/data/usr/share /usr/share none defaults,bind 0 0" >> /etc/fstab

echo "/data/usr/local /usr/local none defaults,bind 0 0" >> /etc/fstab

reboot

Reply View the author
Ziggy
deepin
2020-12-07 04:59
#4

论坛可以搜索到的

Reply View the author
ghostry
deepin
2020-12-07 05:12
#5

可以把/opt 能成分区.


基本上,看哪个目录大, 就可以分出去.


这样根分区就不需要多大了.

Reply View the author
Hmily❤晨
deepin
2021-01-15 17:41
#6

我也是这个问题,现在解决了,有个暴躁老哥给的代码解决的~~但是重启的时候黑屏了不知道为啥,黑屏上的代码看不懂,直接摁了电源键,重启以后选择回滚系统,但是发现居然成功了~

Reply View the author
jeffreyhe
deepin
2021-02-19 01:07
#7

做个gparted live的盘。https://gparted.org/download.php 剩下的 不用说了吧。

Reply View the author