LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mageia (https://www.linuxquestions.org/questions/mageia-97/)
-   -   How to move /home directory to another drive (https://www.linuxquestions.org/questions/mageia-97/how-to-move-home-directory-to-another-drive-4175504282/)

nigelc 05-07-2014 09:27 PM

How to move /home directory to another drive
 
Hi,
I have a new system where mageia 4 has been installed on an ssd and would like to put /home dir on the second drive. I think it is /dev/sdb1

the fstab:
Code:

# Entry for /dev/sda1 :
UUID=2bb07894-5cbe-4359-8db8-8adb82b7673f / ext4 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sdb1 :
UUID=1db2ed92-3662-4a0b-b50c-5a2f4de6a797 /storage ext4 acl,relatime 1 2
# Entry for /dev/sda5 :
UUID=ea7969f3-1364-4e4c-a799-0b0073ef1b43 swap swap defaults 0 0
[nigel@localhost ~]$

Will I have to remove and add the users?

syg00 05-07-2014 09:50 PM

No, it's just data. There are a bunch of how-to's on the web.

ondoho 05-08-2014 02:34 AM

once you moved the data to the new drive, you have to 1) rename your old home/username
2) in fsatb, mount the new drive to /home/username

nigelc 05-10-2014 12:05 AM

Its all going now. Thanks

Is this line on the fstab ok since this is an ssd?
Quote:

# Entry for /dev/sda1 :
UUID=2bb07894-5cbe-4359-8db8-8adb82b7673f / ext4 defaults 1 1

ondoho 05-10-2014 02:02 AM

does it work as expected?

nigelc 05-10-2014 02:37 AM

Yes it's all ok now.


All times are GMT -5. The time now is 05:00 PM.