Topic: File System Tweaks
First off at the very, very minimum one needs to slice up their drives with -
/boot
/
/var/log
/home
Also I would recommend an additional slice for /tmp also, but that depends on how much drive space you have, 2-4 Gig is usually fine
Reason for the extra slices is boot really does need to be secure and root needs to be isolated from home and log. For those who just put everything on one slice just get a buggy daemon or something that fills up and corrupts your file system ![]()
Anyway for a basic set up I'd do this to squeak a bit of performance, with the following slicing scheme as -
/dev/sda1 ext2 /boot (around 256MB is fine)
/dev/sda2 ext4 / (depending on drive, I usually go for around 12 - 15 GB)
/dev/sda5 ext4 /var/log (around 256MB is fine)
/dev/sda4 swap (me, I usually only have about 1 GB)
/dev/sda6 ext4 /home (rest of the drive space)
For /var/log while booted into a boot disk or Live CD tweak /var/log with -
tune2fs -o journal_data_writeback /dev/sda5
tune2fs -O ^has_journal /dev/sda5
Then mount root to /mnt with
mount /dev/sda2 /mnt
cd /mnt/etc
Edit fstab with what ever tool you're comfortable with, vi or nano. I use vi so I would execute this
vi /mnt/etc/fstab
The options for the modified file systems are -
# / was on /dev/sda2 during installation
UUID=xxxxxxxxx / ext4 relatime,errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=xxxxxx /boot ext2 noatime,defaults 0 1
# /home was on /dev/sda6 during installation
UUID=xxxxxx /home ext4 relatime 0 2
# /var/log was on /dev/sda5 during installation
UUID=xxxxxxx /var/log ext4 noatime,data=writeback 0 1
What this does is increase read/writes to file systems where you don't need the precautions like that of journaling for example. There is a lot a activity with /var/log so this would tweak out a bit of performance. If you're on an old laptop also you may want to turn off journaling, then set noatime and writeback on all slices also if it's on a very sluggish system. But be aware though you loose the ability to recover from a crash. But on old hardware one has to do what one has to ![]()
http://www.rejecttheherd.net