Use more than 3GB RAM on 32-bit Ubuntu 8.04

I am using 32-bit Ubuntu 8.04 LTS SE. I have 4 GB RAM and want to use it all. How to do this? I will show you how.

sudo apt-get install linux-restricted-modules-server
sudo apt-get install linux-ubuntu-modules-2.6.24-18-server
sudo apt-get install linux-image-2.6.24-18-server
sudo apt-get install linux-headers-server
sudo apt-get install linux-image-server linux-server

That’s it.

I even can use the nvidia-glx-new driver with no problem.

Happy Ubuntuing!!!

HOWTO : Performance tuning

Ubuntu is fast out of the box. However, we can make it more faster.

Step 1 :
Add the following lines to /etc/sysctl.conf if you have 512MB RAM or more :

kernel.sem = 250 32000 100 128
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# If you have more than 512MB RAM, use this setting (uncomment it and comment the setting just below)
#fs.file-max = 256000
# If you have 512MB RAM or less, use this setting
fs.file-max = 65535
vm.swappiness = 1
vm.vfs_cache_pressure = 50

Step 2 :

net.core.rmem_default = 16777216
net.core.rmem_max = 16777216
net.core.wmem_default = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 10240 87380 16777216
net.ipv4.tcp_wmem = 10240 87380 16777216
net.ipv4.tcp_no_metrics_save = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_sack = 1
net.core.netdev_max_backlog = 5000

Then make the setting effective :

sudo /sbin/sysctl -p

Step 3 :
Tuning for the large hard drive :
sudo nano /etc/rc.local

Add the following lines before “exit 0“.
echo 1024 > /sys/block/sda/queue/read_ahead_kb
echo 256 > /sys/block/sda/queue/nr_requests

Reboot your system.

Step 4 (Optional) :
If you are using ext3 as your filesystem, you may consider to add “noatime” to the /etc/fstab for every entry of partitions or hard drives before “relatime“. However, you should pay more attention to this hacking as it is danger. You may not boot up you computer then.

UUID=0e57987f-...... / ext3 noatime,relatime,errors=remount-ro 0 1

After saved the file, you can execute the following command to make sure all entries are okay. If there is any error, go to /etc/fstab to make correction until no error to show up. If there is no error, you can boot your computer if you want.

sudo mount -a

Lightening Ubuntu!!!!

GRUB : Error 18

The /boot and / is set to 8GB CF card on RAIDON CF card enclosure which acts as a SATA hard drive. Meanwhile, /home, /tmp, /var and swap is set to a 320GB SATA hard drive. It boots fast and stable.

Today, I encountered GRUB Error 18 when booting my desktop computer up. I searched the Google and they said it is caused by “Selected cylinder exceeds maximum supported by BIOS”. What’s going on? It is very stable and fast before.

After thinking for a while and checking the BIOS setting, I decided to change the little battery on the motherboard with a brand new one. Believe it or not, the computer is flying again.

Sometimes, we should not fully believe with the error message that given. This is the example.

Updated on 2008-June-13 :

I think it is because of the CF card overheat.

Big Buck Bunny – Open Movie

Open movie website :

How to install Ubuntu 8.04

Install Ubuntu is very easy, let’s see …..

Read these :

Traditional Chinese

Or, you can try Wubi to install Ubuntu on Windows system.

Join us!!!

Want a speedy Ubuntu 8.04?

Do you want your Ubuntu 8.04 running faster or even booting faster?

Read this :
How to set up Hardy for speed


Virtualbox 1.6.0 with Ubuntu 8.04 2.6.24-17-generic kernel

When you do update your Ubuntu 8.04 recently, the kernel will be updated to 2.6.24-17 and Virtualbox refuses to run.

How to fix this problem? Just issue the following commands to fix it.

sudo apt-get install build-essential
sudo apt-get install linux-headers-`uname -r`
sudo /etc/init.d/vboxdrv setup

Your Virtualbox works again!