Z
Z
zakatzakatom2019-12-14 23:25:58
linux
zakatzakatom, 2019-12-14 23:25:58

How to mount part of a drive to the /home mount point?

5df5451b745e3530300509.png
I need to mount a 200gb disk with /home. How can I do this without reinstalling the system?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
pfg21, 2019-12-14
@zakatzakatom

you prescribe /etc/fstab section /dev/nvme0n1p5 to mount it in some directory, for example /media/new_home
mount it.
then you copy all files from /home (it is better to use rsync) to /media/new_home,
then to /etc/fstab you overwrite the mount point /dev/nvme0n1p5 from media/new_home to /home
, save /etc/fstab and reboot.
After rebooting, you check the correctness of the mounting and operation of the system.
if everything is ok, then reboot into the recovery, unmount / home and clean / home on the root partition (otherwise your old hamster tiak will hang like a dead weight in the root fs).

R
Radjah, 2019-12-14
@Radjah

man mount
If permanent, thenman fstab

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question