D R A F T
A Newbie’s Guide to Debian Linux
T. R. ShemanskeMay 9, 2002
This document is really just a small supplement to very good installation guides forDebian Linux such as
http://www.debian.org/releases/woody/installmanualhttp://www.debian.org/doc/manuals/quick-reference/index.en.html
1 Partitioning your disk
There are many thoughts on the matter, and to some extent the decisions you make dependupon how many users will have accounts on your machine, and to what degree you wantthe rest of the world to have access to parts of your machine. You need at least a root(
/
) partition and a swap partition, though I would strongly recommend at least a separate
/home
partition. The reason for this is that in the event you need to reinstall the operatingsystem (meltdown, whim, whatever), you will no doubt reformat the root partition. With aseparate home partition, you will leave untouched all your personal files.
•
The swap partition is your “virtual memory”. If you have the space, make it twice thenumber of MB of RAM you have, but no more than 2048M is usually necessary. Youcan have multiple swap partitions if you do huge number crunching activities.
•
You need a root partition. If you are cavalier, this can be the only partition youcreate, though I would recommend against it. Other partitions that you might createare
/usr, /var, /home
. All of the public software you install goes into
/usr
. Itshould therefore be a sizeable partition with respect to the others (5G minimum). Oneadvantage to making
/usr
its own partition is that you may want to mount it read only(I don’t, but paranoid sysadmins do).
/var
holds things like print and mail spools,system logs, and TEX fonts created by Metafont as well as postscript fonts, and itis also the temporary repository for all Debian packages when downloading from theDebian mirror. Thus at times there is a large demand for space, while at other times itis underutilized. It needs read/write permissions in general. It should be at least 1G.Then comes
/home
which contains the home directories of all users who have accountson your machine. For most setups in which the Linux box is not going to have lots of users, the following might be reasonable.1
Add a Comment