LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices

Reply
 
Search this Thread
Old 05-07-2014, 09:27 PM   #1
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 297
Blog Entries: 4

Rep: Reputation: 52
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?
 
Old 05-07-2014, 09:50 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,103

Rep: Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982Reputation: 982
No, it's just data. There are a bunch of how-to's on the web.
 
Old 05-08-2014, 02:34 AM   #3
ondoho
Member
 
Registered: Dec 2013
Distribution: arch linux / crunchbang
Posts: 651

Rep: Reputation: 94
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
 
Old 05-10-2014, 12:05 AM   #4
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 297
Blog Entries: 4

Original Poster
Rep: Reputation: 52
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
 
Old 05-10-2014, 02:02 AM   #5
ondoho
Member
 
Registered: Dec 2013
Distribution: arch linux / crunchbang
Posts: 651

Rep: Reputation: 94
does it work as expected?
 
Old 05-10-2014, 02:37 AM   #6
nigelc
Member
 
Registered: Oct 2004
Location: Sydney, Australia
Distribution: Mageia 4
Posts: 297
Blog Entries: 4

Original Poster
Rep: Reputation: 52
Yes it's all ok now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I move my home directory to another hard drive? ratman1 Linux - Newbie 13 02-29-2012 10:59 AM
how can I move my /home directory to a brand new hard drive? toben Linux - Hardware 7 03-04-2008 03:13 PM
Move /home directory on RAID5 elyounsi Suse/Novell 3 12-07-2005 12:10 PM
Move my Home directory... it-s Linux - General 5 07-08-2005 11:34 AM
Move home directory iain.ross Linux - Newbie 6 01-01-2005 04:37 PM


All times are GMT -5. The time now is 02:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration