LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-07-2005, 09:06 PM   #1
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Rep: Reputation: 15
Move my Home directory...


Hi all,

I have e question here - How do I move my user Home directory to a different partition (say I have a larger one freed up just recently). I'm on Suse 9.2 and so far I used Yast2 to reformat the new partition to Reiser. Now, if mount it, I can only write to it as root, but if I comy/move my user files there in root accout all files will change to root ownership! What do I do? Is there a software that would help me?

Thanks in advance.

it-s
 
Old 07-07-2005, 09:20 PM   #2
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
First, make sure the directory where you are mounting the partition is owned by the user.
chown it-s:users <pathtomountpoint>

Next, when you make the entry in /etc/fstab to mount it, include user in the options section.

Third, if the mount point is not /home/it-s, then make a symlink from /home/it-s to the location, in case apps looking for it can't find it.

ln -s <pathtomountpoint> /home/it-s

That should do it.
The quickest way is to move your data out of /home/it-s, set up the mount point of the new partition in /etc/fstab to mount at /home/it-s, mount it (mount -a), then move your data back. That will prevent you from having to change anything in your user profile. I hope all that made sense.

Last edited by Pcghost; 07-07-2005 at 09:28 PM.
 
Old 07-07-2005, 11:00 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
IBM put together a really good tutorial on moving the /home partition. Good luck with it -- J.W.
 
Old 07-08-2005, 08:40 AM   #4
it-s
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SUSE 10
Posts: 69

Original Poster
Rep: Reputation: 15
Pcghost, J.W. thanks a lot. You bouth were very helpfull. All my files are seccessfuly transfered
Now, is it just me or ReiserFS is slower then ext3???

But, that's not important. An important thing is that I have done what I wanted.

Now just one more thing. I want to merge my old /home partition with my existing / (root) partition without destroying the later.
In other words:
Code:
fstab>>
...
/dev/hda7            /         reiserfs  (my root partition)
/dev/hda6            /home/it-s/archive     ext3      (my old 'home' partition)
/dev/hda5            /home       reiserfs   (my new 'home' partition)
...
>>
I want: hda7+hda6=hda? without loosing content of hda7!!! (don't care for hda6)

Hope I make any sence here

Thanks for your help once more.

Eugene
 
Old 07-08-2005, 09:19 AM   #5
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Real Washington
Distribution: Debian, Android
Posts: 1,819

Rep: Reputation: 46
You'll want to remove the old home partition (using fdisk, cfdisk, etc), and then resize hda7 to take up the free space. Reiser is supposedly a little slower than ext3, but not enough to notice, and I have found reiser to be much more tolerant of power failures. I started using Reiser when I was a SuSE user, and have stuck with it through all the Debians as well for the reason stated above.
 
Old 07-08-2005, 11:34 AM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
I agree 100% with Pcghost. I originally used ext3 but switched to reiserfs due to reading/hearing good things about from people I respect, and now it's my file system of choice. That is not to say that there necessarily is anything wrong with ext3, but this past year the area I live in has been soaked with rain, and there were a number of blackouts. Fortunately, none of my machines complained at all, and no data was lost. -- J.W.
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
Can I move /home ? MikeyDIUP Linux - Newbie 3 09-11-2005 01:36 AM
Move home directory iain.ross Linux - Newbie 6 01-01-2005 04:37 PM
move postgres home directory how to? vickr1z Linux - Newbie 2 09-15-2004 11:49 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration