LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2007, 06:29 PM   #1
OverrRyde
Member
 
Registered: May 2004
Posts: 51

Rep: Reputation: 15
How-To partition?


Hello guys! long time no come here, but im still a newb!

Anyhow, i remember seeing here a how-to setup a linux
system to be used as webserver, but i cant find it no more! what im looking for specificaly is how to partition correctly a hdd most than anything, i think i can pretty much figure out the rest y myself (hopefully!)

let me know if you have a link to that how to, or if anyone can help me with the partition, i remember on my old system i was using something like 4 partitions but i do not remember exactly what they were, i think they were; /var, /home, /usr, /etc but im not sure what it was exactly, only thing i remember is the /home beeing the biggest of the partition!

thanks for your help guys!
 
Old 01-29-2007, 06:34 PM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
If you want life simple just use a single partition for one Linux. Swap is always on its own.

For a single partition /home, /var, /usr, /boot, /etc and all the rest are just subdirectories to "/" which is mounted on the single partition provided.
 
Old 01-29-2007, 07:16 PM   #3
OverrRyde
Member
 
Registered: May 2004
Posts: 51

Original Poster
Rep: Reputation: 15
understoof saikee!

so i will primarly be using the machine to host webpages, on a 80g drive. so i read a little more and i think im going with, correct me if you feel im wrong pls!

/boot - actual OS
/swap - well, swap!
/home - were my buddies will be putting there files
/usr - were system program goes
/var - dont know!

does this look right and correct?
 
Old 01-29-2007, 07:25 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
/var is where things like log files, web pages can be stored for a web server. Same for email under /var/spool/mail. Some create a partition just for /var/spool/mail and then use quotas to control a users mailbox size. Of course this can be done virtually as well.

Brian
 
Old 01-29-2007, 07:25 PM   #5
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Your scheme looks okay, but what you have labeled as going in there is a bit off. It should read something more like this.

/boot - the kernel, and Grub/Lilo
/swap - well, swap!
/home - were my buddies will be putting there files
/usr - were system program goes
/var - generally for log files

Thats at least is closer. Saikee is the partitioning king. He gives out good advice. You'll do good to listen to him.
 
Old 01-29-2007, 07:44 PM   #6
OverrRyde
Member
 
Registered: May 2004
Posts: 51

Original Poster
Rep: Reputation: 15
thanks guys great help! i just wish i hadnt forgotten all i learned a while back!

this will help tonight when i get back home to install! btw, if im not mistaken, user in /home a locked into theyre folder am i correct? example /home/me locked in /me right?

thanks again!
 
Old 01-29-2007, 09:07 PM   #7
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 32
Usually a user can write to /tmp also. (and possibly /var?)

Also, they can't write to, but they can Read many other places on the filesystem. (but this can be stopped with some help from chmod)
 
Old 01-29-2007, 10:34 PM   #8
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by OverrRyde
btw, if im not mistaken, user in /home a locked into theyre folder am i correct? example /home/me locked in /me right?
I'm not real sure what you mean by that...
 
Old 01-29-2007, 10:42 PM   #9
OverrRyde
Member
 
Registered: May 2004
Posts: 51

Original Poster
Rep: Reputation: 15
oh i basicly meant that they can go beyond /home/me, kinda hard to explain i guess! hehe

ok so lets say user "me" is at /home/me, he can go to user's me2 /home/me2

Last edited by OverrRyde; 01-29-2007 at 10:43 PM.
 
Old 01-29-2007, 10:55 PM   #10
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
He might be able to "goto it" but that doesn't really mean anything other than he can see whats there. Again, it all depends on what permissions the root user has setup for each individual user.
 
Old 01-30-2007, 09:33 PM   #11
OverrRyde
Member
 
Registered: May 2004
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Penguin of Wonder
He might be able to "goto it" but that doesn't really mean anything other than he can see whats there. Again, it all depends on what permissions the root user has setup for each individual user.

I see!

So what does this setup look like, just want to make sure its right,

/ - 1g
/root - 1g
/swap - 513mb
/home - 67g
/usr - 3g
/var - 1.5g

all this on a 80g drive. does it look right?

thanks!
 
Old 01-30-2007, 09:42 PM   #12
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
No /boot ~= 30-50mb?
 
Old 01-30-2007, 09:44 PM   #13
OverrRyde
Member
 
Registered: May 2004
Posts: 51

Original Poster
Rep: Reputation: 15
right! good thing ur there Penguin!
 
Old 01-30-2007, 10:34 PM   #14
bdox
Member
 
Registered: Feb 2005
Location: SoL iii
Distribution: Mandriva 2007
Posts: 110

Rep: Reputation: 15
Exclamation

Quote:
Originally Posted by OverrRyde
I see!

So what does this setup look like, just want to make sure its right,

/ - 1g
/root - 1g
/swap - 513mb
/home - 67g
/usr - 3g
/var - 1.5g

all this on a 80g drive. does it look right?

thanks!

I think it's a good idea to make the system a little be more spacy:

/ - 2g
/root - 1g
/swap - 513mb
/home - 53g
/usr - 7g
/var - 3g

it's better then later suffer because you don't have free space left ins usr or var...(specially if it's a server!!)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition Problems: Bad primary partition 1: logical partitions overlap rovitotv Slackware 6 01-08-2006 07:55 PM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 08:30 AM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 02:31 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


All times are GMT -5. The time now is 10:22 PM.

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