Linux-1U.net Partition Preferences - May-18-01
|
|
| General Overal Installation Info
|
Swap Comments ( virtual memory )
- Swap space should be about 2x your physical memory in your system
- Swap space should be used sparingly... ( mostly free most of the time )
- If you have 64Mb of swap space being constantly used...
- you should add "that much" more memory to your server
|
Disk Partition Comments
Perso.ch fdisk.txt
infocom.cqu.edu.au Fdisk info
|
Partition Tools
|
Partition Schemes
PCGuide.com Data Transfer Rate
PCGuide.com Zone Bit Recording ( ZBR )
- UNCONDITONALLY -- Track 0 == outermost track == partition 1
tldp.org Securing-Optimizing-Linux-RH
|
Linux-1U.net Partition Preferences
- / should be small as possible to minimize system corruption
- /bin /boot /dev /etc /lib /root /sbin == typically referred to as root-fs, or "/"
- you want to be able to boot into single user mode to restore your server,
which requires / to be "intact" and functioning properly
- /boot partition
- /boot partition is required for booting on systems that does not boot from disks > 504MB
- /boot should be completely within the first 500MB of the disk
- /boot directory
- /boot directory is NOT required if you are booting off cdrom, network boot or compactflash
- /boot should be large enough to hold the ( 1MB-2MB ) kernels you wish to boot ( 50MB is plenty )
- /var are used to log and some status info
- /var/log/http should be large for web servers
- /var/spool/mail and /var/spool/mqueue should be large for email servers
- /var/log should be large for loghost servers
- /tmp, /usr/tmp and /var/tmp should be small as reasonable and have its t-bit set
- chmod 1777 /tmp /usr/tmp /var/tmp
- /usr are for your system as installed by your linux distributions
- /usr/local are any additional changes you installed on your server
- /usr/local should be local to the server and NOT nfs mounted across the network
- root should NOT have references to /usr/local in its path
- /opt is the rest of your disk
- anything that a user modifies belongs "here" in user area
- move /home to /opt/home
- move /usr/local to /opt/local
- move /var/www to /opt/www
- for dual boot machines, hda1 should be the WinNT partitions ( C: )
Preferred Disk Partition
- Example Linux Partitions
hda1.../........128Mb
hda2.../tmp.....128Mb
hda3.../var.....256Mb
hda5.../usr....1024Mb
hda6...swap....2x Physical memory
hda7.../opt....rest-of-disk... sometimes /home
- For Dual Boot Machines...
hda1.../Win2000....2048Mb... ( Windoze likes to install into C: )
hda2.../............128Mb
hda3.../tmp.........128Mb
hda5.../var.........256Mb
hda6.../usr........1024Mb
hda7...swap........2x Physical memory
hda8.../opt........rest-of-disk... sometimes /home
|