Moving /home to a different drive [Solved]

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Moving /home to a different drive [Solved]

Postby rodgoslin » May 29th, '16, 01:28

I have a problem, in that the HDD that I'm using is rather smaller than I would desire. Rather than re-build the whole thing on a larger disk, I've decided to move /home onto another disk entirely. I've done this before, a number of times, without problem, but these were on a new install. So, I'm proposing adding a new (larger) drive, naming it, and mounting it as (say) newhome, and copying the whole of /home onto it. Then renaming the existing home directory to home2 and newhome to home. The difficulty here is that since processes are running from /home, it cannot be unmounted. Is there a (simple) way of overcoming this? Options I've come up with are to do it in single user mode, the other, is to run an install in 'update ' mode, which will change nothing, but use the Diskdrake function to setup the old and new drives in the changed configuration. How this will affect other aspects, as sy, printers, scanner, external shared drives, I'm not sure. I'd welcome any (simple) suggestions, up to re-installing the whole thing from scratch, from backups.
Last edited by rodgoslin on Jun 3rd, '16, 22:01, edited 1 time in total.
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Moving /home to a different drive

Postby Ken-Bergen » May 29th, '16, 02:08

Copy everything in the old /home to a partition on the new drive.
Edit /etc/fstab to reflect the new mount point for /home .
Reboot.
Ken
Ken-Bergen
 
Posts: 1019
Joined: Mar 30th, '11, 02:45
Location: Chilliwack, BC, Canada

Re: Moving /home to a different drive

Postby rodgoslin » May 29th, '16, 02:44

Ahh! An excellent, elegant Cheers!and simple solution. Thanks. I'll give it a try, in the morning.

Rod
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Moving /home to a different drive

Postby rodgoslin » Jun 3rd, '16, 22:00

Thanks, ken-bergen. That worked fine.I must remember it if I find myself in the same situation again. There were a couple of options in fstab, that had to be changed, as well, but all worked well, straight off.

Cheers, Rod Goslin
rodgoslin
 
Posts: 523
Joined: Nov 19th, '11, 01:31

Re: Moving /home to a different drive [Solved]

Postby AstorBG » Jun 4th, '16, 12:37

Ahh I needed that solution one week ago! LOL
Now I know, thanks to ken :)
Mageia 5.1, KDE4, x86_64
Mageia 8, Plasma, x86_64
AstorBG
 
Posts: 57
Joined: Jan 29th, '13, 21:31


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron