So first off that was one of the best tutorials I have followed, it worked the first time. But I was setting up a data raid1 array and wanted to move my entire /home directory to the new array /mnt.md0/home and removed the old home. I have been unable to find a proper way to mv /home /mnt/md0/home and to delete the /home directory and update the fstab to work. /dev/md0 /mnt/md0 /home ext4 defaults,nofail,discard 0 0
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
Glad the tutorial worked well for you! Before making any changes, make sure you have a backup in case anything goes wrong:
Once you have your backup, to move
/home
to your RAID 1 array you should be able to:Mount the RAID array (if not already mounted):
Copy
/home
data to the new array while preserving permissions:Update
fstab
to mount/home
from RAID on boot:Check if
/home
is on a separate mount:/home
is on a separate partition (e.g.,/dev/sdX
or another disk), you’ll need to unmount it first before updatingfstab
./home
is just part of/
, they don’t need to unmount it, and they can proceed with remounting it from the RAID array.Before unmounting, make sure that there are no active processes running on
/home
:Once you’ve confirmed that there are no active processes, unmount
/home
and remount it:Verify everything is working:
Reboot and confirm that
/home
is properly mounted.If anything goes wrong, you can revert by restoring from your backup and updating
fstab
again.Let me know how it goes.
- Bobby