[Seek Help] 如何从根分区分一个home分区出来
Tofloor
poster avatar
与风长舞的叶
deepin
2024-10-21 22:31
Author

安装V23时只分了一个根分区,现在想单独分一个home分区出来,请问该如何操作。

试了ubantu里试用的Parted,也是分不了,压缩不了。

image.png

Reply Favorite View the author
All Replies
pzm9012
Moderator
2024-10-22 00:51
#1

对系统分区操作需要切换到其他系统,可以使用U盘借助Live系统调整。用官方镜像附带的Live或者这个第三方Live都可以:https://bbs.deepin.org.cn/post/260096

Reply View the author
jjcui8595
deepin
19 hours ago
#2

LiveCD引导后压缩根分区、创建home分区,编辑fstab文件以挂载home分区

Reply View the author
与风长舞的叶
deepin
16 hours ago
#3
jjcui8595

LiveCD引导后压缩根分区、创建home分区,编辑fstab文件以挂载home分区

试了livecd的Gparted,显示无法压缩出来一个新分区,这个根分区带锁。

就像图片里的,减号是暗的,无法点。

Reply View the author
remyxo
deepin
14 hours ago
#4
与风长舞的叶

试了livecd的Gparted,显示无法压缩出来一个新分区,这个根分区带锁。

就像图片里的,减号是暗的,无法点。

分区可能被livecd挂载了,先unmount掉,再运行gparted

Reply View the author
jjcui8595
deepin
13 hours ago
#5
与风长舞的叶

试了livecd的Gparted,显示无法压缩出来一个新分区,这个根分区带锁。

就像图片里的,减号是暗的,无法点。

Gparted中先解除挂载根分区

Reply View the author
138******58
deepin
12 hours ago
#6

先分一个区留给/home目录

然后用sudo blkid获取那个分区的uuid

最后编辑/etc/fstab,添加类似于下面的一行

UUID=cc8c3d2e-6808-440b-86ed-d12dab4d15ae /home ext4 defaults 0 2

如果你的是btffs,可以网上找找资料,我这里全是ext4文件系统

Reply View the author
辉辉
deepin
7 hours ago
#7

遇到这种分区空间不够用的情况下,我宁愿直接重装系统,那些命令、挂载、卸载等等真让人头痛。

Reply View the author