Linux将home单独分区,如何把home目录迁移到独立分区

这篇博客介绍了如何在Linux系统中将/home目录迁移到单独的分区,以便在重装系统时保留个人数据。首先创建足够大小的新分区,然后复制/home目录的内容到新分区,修改挂载点,更新/etc/fstab文件,确保新分区在启动时自动挂载。这一过程有助于保护用户数据不受操作系统重装的影响。
摘要由CSDN通过智能技术生成

Having the “/home” directory tree on it’s own partition has several advantages, the biggest perhaps being that you can reinstall the OS (or even a different distro of Linux) without losing all your data. You can do this by keeping the /home partition unchanged and reinstalling the OS which goes in the “/” (root) directory, which can be on a seperate partition.

有“ /home”目录树在它自己的分区具有几个方面的优势,最大的可能是,您可以重新安装操作系统(甚至是一个不同的发行版的Linux )而不丧失您的所有数据。为此,您可以保持/home分区不变,重新安装操作系统而不用在“ / ” (根)目录,它可以在一个单独的分区。

But you, like me, did not know this when you first installed Ubuntu, and have not created a new partition for “/home” when you first installed Ubuntu. Despair not, it is really simple to move “/home” to its own partition.

但是,你像我一样,不知道这当您第一次安装Ubuntu的,并没有建立一个新分区为“ /home”当你第一次安装Ubuntu Linux系统。没有绝望,这是很简单移动“ /home” ,以它自己的分区。

First, create a partition of sufficient s

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值