LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-03-2005, 01:55 AM   #1
Michael Johnson
Member
 
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262

Rep: Reputation: 30
Create a /home partition.


Whenever I install a Linux distribution I create a separate /home partition. This gives me the advantage of installing any distribution and I still have all my own files and whatnots saved on this partion. I create the following structure
Partition 1 /boot 50 -100M depending on how many updates you expect for your kernel.
Partition 2 / my root partition usually about 20G for expansion etc. (10G is ok).
Partition 3 swap my swap space ( twice the size of your RAM)
Partition 4 /home this where all the home directories go and uses the rest of the drive.

There is a catch with the /home patition and changing distro's. Different distro's start the user ID's with different values ie. FC4 starts at 500, Slackware starts at 1000. To fix this you issue the following command as root after you have created the new user with the same name.
chown <username>:<usergroup> -R /home/<userdirectory>
This will change the uid and the gid for that directory and all the sub-directories and files
 
Old 07-03-2005, 03:09 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Why don't you just specify the UID when you create the user

Code:
man useradd
 
Old 07-05-2005, 09:37 PM   #3
une
Member
 
Registered: May 2004
Location: Australia
Distribution: Mandrake 10, Puppy Linux 2.13
Posts: 201

Rep: Reputation: 30
I like this thread, so I'm repyling so I can find it again.
 
Old 07-06-2005, 10:09 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by une
I like this thread, so I'm repyling so I can find it again.
And you do realize you can subscribe to threads without having to reply? Subscribe at the bottom of each post..
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using partition magic to create Linux partition then install EviLBoX Linux - General 5 09-12-2008 05:01 AM
create a music score for a home movie jackstoage Linux - General 6 06-12-2005 11:31 PM
Create a partition for /home FiveFlat Linux - Newbie 5 05-02-2005 05:40 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM

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

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