D
D
Denis Kotov2017-04-13 11:15:24
linux
Denis Kotov, 2017-04-13 11:15:24

How to move the home folder to another drive?

When installing the Linux Mint 18.1 operating system, out of habit, I installed all the folders on one physical disk and in one partition /
Now there is a second hard disk, how to transfer the / home folder to it correctly so that no programs break?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Shvets, 2017-04-13
@Xuxicheta

let /dev/sda1 be your old disk and partition
and /dev/sdb1 be the new, formatted partition where you want to move /home

mkdir /mnt/newhome && mount /dev/sdb1 /mnt/newhome
rsync -a /home /mnt/newhome

Check if everything went well.
edit /etc/fstab
there look for the old home, or if it is not there, enter something like
It is necessary that the addresses and type of the file system are correct.
Then
mount -a

L
lxfr, 2017-04-13
@lxfr

And what prevents just the second disk to stick and mount and use it? What are your goals? Separate /home into a separate partition?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question