LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-16-2004, 02:50 PM   #1
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Rep: Reputation: 30
Does anyone here have a separate /root and /home partition?


Ive been thinking, if I had a separate /root and separate /home/user partition, then everytime I went to do an upgrade/install, I would lose everything that was saved in the /home/user partition. Is this feasible?
 
Old 03-16-2004, 02:56 PM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
/root isn't supposed to be seperate. If you want to share /home with different distros, make sure the user id numbers are the same to avoid permission problems.
 
Old 03-16-2004, 03:07 PM   #3
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by aaa
/root isn't supposed to be seperate. If you want to share /home with different distros, make sure the user id numbers are the same to avoid permission problems.
Well, what I was thinking was a separate /home partition from my Mandrake partition, that way when I upgrade Mandrake or mess with it, I dont lose whatever is saved in the /home folder. Does that make sense?
 
Old 03-16-2004, 03:18 PM   #4
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
It does. Just make sure your user has the same number it had before when you reinstall.
 
Old 03-16-2004, 05:00 PM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
aaa - I'm confused about your post. I agree that if you were trying to share /home across different distros you could run into problems, but Kramer seems to be asking whether upgrading (ie, going from ver 8 to ver 9 of the distro, or installing additional packages manually) would have a negative impact on the contents of /home. I'd say No, they're totally independent issues. In other words, upgrading to a newer version, or installing additional software will not have any effect on the users, nor would it do anything harmful to /home. Similarly, I don't see any real harm in giving /root its own partition, if that was your desire. What downside would there be in doing this? I've learned a lot from your posts and thus I want to better understand your recommendations in this situation. -- J.W.
 
Old 03-16-2004, 05:28 PM   #6
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
The reason the root dir should be part of the main partition is the same reason essential programs are kept in /bin & /sbin (and not in /usr/bin ...); they are essential to the system. It's why there is no /home/root. Root should be independent of what happens to other stuff. If something happens to one of the other partitions (say the /home), you can still boot as root in single-user mode normally.

I don't know if upgrading will change the uid number, but with a reinstall this is quite likely. Every user has a number, and the name is just for show. Stuff like ownership is determined by the uid number, not the username. If you do something a little as create users in a different order, the numbers will be different. Or the new Mandrake may assign numbers in a different order. If you want the old files to still belong to you, you need to make sure you use the same uid number.
 
Old 03-16-2004, 05:39 PM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I think the confusion's coming from his saying '/root' when I think he meant '/(root)'. Yeah, /root has to be part of /. But / can easily do without /home. I think he wants

/dev/hdxN /
/dev/hdxN /home

not

/
/root
/home
 
Old 03-16-2004, 06:17 PM   #8
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Quote:
Originally posted by aaa
If you want the old files to still belong to you, you need to make sure you use the same uid number.
"Need" is rather a strong word. You could always chown the user's directory if it ends up with a different uid.
 
Old 03-16-2004, 06:25 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Let's distinguish between "/" and "/root". I clearly understand that / contains the essential programs, and that there's a significant benefit to having / live on one partition and /home on another. However, to use an analogy: /root is to the root user as /home/<user> is to a regular user, right? As such, just like any mountpoint, you could create a separate partition for it if you wanted to. I don't see that there would be any meaningful downside to putting /root on its own partition - am I missing obvious drawbacks?

As for the UID, Yes, I see your point. Thanks for any input -- J.W.
 
Old 03-16-2004, 06:31 PM   #10
Kramer
Member
 
Registered: Aug 2003
Location: Somewhere south of sanity...
Distribution: Mandrake 9.1
Posts: 550

Original Poster
Rep: Reputation: 30
I guess I would have been better off saying / and /home rather than /root. / and /home would have probably been more appropriate.
 
Old 03-16-2004, 06:34 PM   #11
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
I can't see any problems. Even if the drive containing /root becomes corrupted, the system should fall back on using / for /root. Home directories don't contain any files that make or break system-wide settings.
 
Old 03-17-2004, 05:05 AM   #12
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
partiotions

/ = root partition.
/boot = boot partition = boot directory.
/root = user root's home directory on the root partiotion.
 
Old 03-17-2004, 05:52 AM   #13
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,287

Rep: Reputation: 173Reputation: 173
yes, yes YES!

It is a *very* good idea to have a seperate /home partition.
/home and
/ partitions are the bare minimum.

billy
 
  


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
moving /home /root & /var to new partition CrashedAgain Linux - General 8 11-24-2005 10:44 AM
Had to rebuild /root partition. now /home link broken snakecreepsdown Linux - Newbie 1 05-16-2005 10:56 AM
Firewalls for home networks, is separate justified? setiDude Linux - Security 12 10-18-2004 08:55 PM
How can I access both /home directories on separate HHDS? estatik Mandriva 1 12-08-2003 12:23 PM
Separate partions for /usr, /home,/root, and /swap hedburner Slackware 2 09-14-2003 11:55 AM


All times are GMT -5. The time now is 07:12 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