Debian This forum is for the discussion of Debian Linux.
|
 |
11-11-2004, 04:18 PM
|
#1
|
|
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.
|
|
|
|
11-11-2004, 04:40 PM
|
#2
|
|
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.
|
|
|
|
11-11-2004, 04:51 PM
|
#3
|
|
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
|
|
|
|
11-11-2004, 11:23 PM
|
#4
|
|
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.
|
|
|
|
11-11-2004, 11:57 PM
|
#5
|
|
Member
Registered: Mar 2003
Location: Oregon
Distribution: Slackware ?-10.2
Posts: 997
|
/boot = 100mb
/swap = 2xRAM
/ = rest of the drive
|
|
|
|
11-12-2004, 01:26 PM
|
#6
|
|
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.
|
|
|
|
11-13-2004, 03:28 PM
|
#7
|
|
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 ?
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:04 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
LQ Podcast
LQ Radio
|
|