LinuxQuestions.org
Help answer threads with 0 replies.

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have access to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Are you new to LinuxQuestions.org? Visit the following links:
Site Howto | Site FAQ | Sitemap | Register Now

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Reply
 
Thread Tools
Old 11-11-2004, 04:18 PM   #1
Jaster
Member
 
Registered: Jun 2004
Posts: 105
Partition Scheme


[Log in to get rid of this advertisement]
So, I was reading a guide and I have seen this partition scheme suggested many times and I have some questions:
/
/swap
/home
/usr
/var
/tmp

With 40 gigs of linux space how much should be allocated to each? In general, what types of things should go in each? Is this a good scheme? I'm going to be installing debian tomorrow so I'm just trying to get some ideas.
Jaster is offline     Reply With Quote
Old 11-11-2004, 04:40 PM   #2
powadha
Member
 
Registered: Nov 2003
Distribution: Debian SID
Posts: 623
It totally depends on how you are going to use your system. Like desktop or server......
Personally I use a /boot aswell. /tmp can be very handy but again it depends on what you are planning to do.
With 40 gigs I would at least make quite some room in /home and /usr/. /home is where stuff like your documents and downloads are gonna go so you don't want to run out of space there. /usr is where you software will mainly be so if you plan on installing quite some programs make enough room. /swap used to be set to about 2 times your ram, but I read that going over 1 gig is useless. /var can be left out if not a server.
For a first install don't worry too much. Just google a bit, there is loads of info on this.
powadha is offline     Reply With Quote
Old 11-11-2004, 04:51 PM   #3
Finlay
Member
 
Registered: Mar 2003
Location: Oregon
Distribution: Slackware ?-10.2
Posts: 997
here is my suggestion.

/boot = 100mb
/swap = 2xRAM
/ = 6-10gb (depends on the distro and how many apps you plan to install)
/home = rest of drive

Things to remember:
normally under /var = websites, email inbox
under /usr = i have 2.5gb (i have slackware 10)

So it really depends on what you are going to use the server for, if you are going to have huge websites, or a lot of email accounts then you should probably make a seperate partition, or better yet, a seperate drive array for /var
Finlay is offline     Reply With Quote
Old 11-11-2004, 11:23 PM   #4
Jaster
Member
 
Registered: Jun 2004
Posts: 105
Yes, I'm going to be using the computer as my main computer, i.e. work, play, etc, and not as a server.
Jaster is offline     Reply With Quote
Old 11-11-2004, 11:57 PM   #5
Finlay
Member
 
Registered: Mar 2003
Location: Oregon
Distribution: Slackware ?-10.2
Posts: 997
/boot = 100mb
/swap = 2xRAM
/ = rest of the drive
Finlay is offline     Reply With Quote
Old 11-12-2004, 01:26 PM   #6
Optimistic
Member
 
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing) & Slackware 10.2
Posts: 268
Here is my suggestion (with a little rational behind the setup):

/boot --100MB. Having /boot on a seperate drive helps in system recovery situations.

/swap --2X RAM or 500MB whichever is smaller, i.e., there is no reason to have a lot of swap space unless you really use your system in relatively extreme ways. The old 2X RAM rule is just that--an old rule. Now that most modern machines have plenty of RAM, you don't need swap very often at all. You certainly don't need GBs of it as some like to do--that is just a waste of hard drive space.

/tmp --700MB I like to have /tmp on a separate partition so that I can set it to noexec in the fstab. /tmp has universal rw permissions by default, so for security reasons I like to take away the exec permissions. You'll need exec permissions to do some stuff (like instal Nvidia drivers), but it is easy to set it back after a system-wide change. But keeping /tmp set to no exec in fstab prevent malicious code from being written and then executed (although it can still be written).

/ --7-10GB How much software do you play with?

/home --rest of drive. Having /home on a seperate partition allows you to reinstall the OS or even switch distros without too much trouble--very nice.

I don't usually set /var and /usr to seperate partitions for desktops.
Optimistic is offline     Reply With Quote
Old 11-13-2004, 03:28 PM   #7
equus
Member
 
Registered: Nov 2003
Location: France
Distribution: Gentoo
Posts: 37
/tmp partition

Hi,

I just bought a new hard disk and among the new partitions I wanted to dedicate one to /tmp, so I initialized it and set it up in /etc/fstab.

When I rebooted the computer, it kept switching back and forth between the X-windows and the text modes.

I was able to comment the line in fstab thanks to the linux rescue option of the distribution DVD.

What is the trick to move /tmp to a new, separate partition ?
equus is offline     Reply With Quote

Reply

Submit thread to Digg | Submit thread to del.icio.us | Submit to LQ Bookmarks

« Back to Top »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition Scheme Randall Slack Slackware 17 11-08-2005 08:49 AM
Partition scheme AlexCPU Linux - Newbie 2 11-19-2004 05:17 PM
partition scheme leeman_s Slackware 2 05-23-2004 11:41 AM
partition scheme -- why does it this way ??? Bluesuperman Slackware 2 10-31-2003 07:09 PM
Partition Scheme Stephanie Linux - General 9 08-16-2001 11:19 PM



Add LQ To Your Yahoo Add LQ To Your Google Add LQ To Your MSN Add LQ To Your Blog
All times are GMT -5. The time now is 03:04 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
RSS2  LQ Podcast
RSS2  LQ Radio
Open Source Consulting | Domain Registration