Think before you speak, read before you think.

ubuntu移动home目录

by

in

有时候/home目录可能不够用,将现有的目录移动到新的分区需要如下六个步骤操作:

1.设置目标分区

2.将目标分区使用fstab挂载到/media/home并重启

3.使用rsync将/home的数据移到/media/home

4.将fstab中的新分区/media/home改为/home

5.将/home改名为/old_home并重启

6.将/old_home删掉

具体操作参考:

https://help.ubuntu.com/community/Partitioning/Home/Moving

也可参考:

http://www.ibm.com/developerworks/cn/linux/l-tip-prompt/tip05/


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *