LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-25-2014, 10:16 AM   #1
nouse
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Rep: Reputation: Disabled
Moving several users to a new partition / Splitting home between multiple drives


Hi!

We currently have 5 users on our home directory (hdd1, raid0). Now, we got a new harddrive and want to move 2 of the users to that new drive. The filesystem should still be able to treat all users as coming from the same home directory.
So, basically we want to split our home directory between multiple partitions.
Is this possible?

Thank you for help!
 
Old 03-25-2014, 10:27 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Generally I'd suggest using an LVM container to flexibily aggregate all disk into a single filesystem for home, but certainly you could do something less elegant and mount another partition under /home, and update those user directories to, say, /home/anotherdisk/userE. Really depends what level of solution you're after here.
 
Old 03-25-2014, 11:31 AM   #3
nouse
LQ Newbie
 
Registered: Sep 2013
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi! Thanks for your answer!

LVM would be weird, as far as i understood it, some RAID protection is recommended. The thing is, our system runs a 2x2 TB HDD in RAID, and our new HDD is just added to the system without being part of the RAID system. We just need the space.

If i understood you correctly, you suggest to mount the new drive under /home? That's it?
Then i just move the user dirs to the new disk with usermod?

In the end, i would like to have my home showing all user directories as if they were in a single folder. Is that feasible that way?
 
Old 03-28-2014, 06:51 AM   #4
cgtueno
Member
 
Registered: Jul 2003
Posts: 363

Rep: Reputation: 50
Hi nouse

Innocent question.
Why not simply re-specify the user's home directories, as directories under another partition on the new HDD ? A user's home directory is simply a directory after all. Or do you have some other special requirement to have all the users branch to separate directories under a single unified \home directory ?

With interest.

C.
 
Old 04-09-2014, 08:46 AM   #5
cizzi
Member
 
Registered: Jun 2001
Distribution: Gentoo
Posts: 153

Rep: Reputation: 19
I would use gparted to resize your partitions.
 
Old 04-15-2014, 03:59 PM   #6
selfprogrammed
Member
 
Registered: Jan 2010
Location: Minnesota, USA
Distribution: Slackware 13.37, 14.2, 15.0
Posts: 635

Rep: Reputation: 154Reputation: 154
Is there some reason that a soft link would not work.

>> ln -s /sdab/home/user4 /home/user4

A listing of /home will still show all the directories.

The user will not notice.

It only adds a few characters to the length of the expanded file name, if they even see that.

Easy to implement, easy to change, easy to modify.
All the files of the moved 2 users are all on one drive.
Can backup /home by specifying each user independently, or specify to follow soft links.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Splitting and merging large file (~1.5TB) with dd involving multiple hard drives zahoo Linux - Software 2 05-10-2013 05:25 PM
Moving /home into the / partition asrisk Linux - General 8 03-16-2010 04:17 PM
,dmrc problem after moving /home partition to NTFS partition yeehung Linux - Newbie 1 11-14-2007 06:17 AM
Moving /home to a new partition jon_flanders Linux - General 2 05-24-2006 08:38 PM
Moving/using new /home partition concoran Linux - General 1 05-20-2002 09:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration