Speed up your ext3 file system

tux.png

The following tweaks assume that you are using an ext3 filesystem for your Ubuntu OS and they will offer a noticeable performance boost! However, there is also a bad side of them… if you don’t have an UPS and your system will power off accidentally or because of a power loss, YOU WILL LOSE IMPORTANT DATA!



Open a terminal (Applications -> Accessories -> Terminal) and type:

CODE
sudo gedit /etc/fstab


WARNING: The following is just an example! Do NOT copy the lines into your /etc/fstab file! Just REPLACE the options marked with underline with the ones marked with bold!

From this:

# /dev/sda1
UUID=19f70288-7340-40c0-82d1-ee4b218fee1d / ext3 relatime,errors=remount-ro 0 1

To this:

# /dev/sda1
UUID=19f70288-7340-40c0-82d1-ee4b218fee1d / ext3 noatime,nodiratime,errors=remount-ro,data=writeback 0 1

Save and close. Now type the following command in the terminal:

CODE
sudo gedit /boot/grub/menu.lst


And add the following option…

rootflags=data=writeback

…to the end of the following lines:

# defoptions=quiet splash vga=795 (by default, Ubuntu doesn’t have the “vga=795″ option on this line. It appears if you did the second tweak from the first step (see above)).

# altoptions=(recovery mode) single

Save and close, and paste the following command in the terminal:

CODE
sudo update-grub


Type now the following command in order to manually change your filesystem “on-the-fly” into writeback.

CODE
sudo tune2fs -o journal_data_writeback /dev/sdb2


ATTENTION: Please note that /dev/sdb2 is MY root (/) partition. If you have the root (/) partition in another place (for example /dev/sda1 or /dev/sda2) change it accordingly. Please look in /etc/fstab for this!

That’s all, now reboot your system and when you get back, you should feel an increased speed in video, image or audio usage.

Related Posts

Leave a Reply

You must be logged in to post a comment.