Change Boot Order & Disable Boot Disk Check on Ubuntu

Here’s a quick post.

I have a dual boot machine (Ubuntu 11.10 & XP SP3) .

How to change the default system which the machine boots on ?

When you’re on Ubuntu, Ctrl+Alt+T   (Open the Terminal)

Type the following:

sudo pico /etc/default/grub

You will be prompted for your password, enter it and hit Return.

You find a line called GRUB_DEFAULT=

And there’s a number after that. Change that number and you’ll change which system will boot.

For example, on the Grub boot manager, I have Ubuntu in the first position (0) and Windows XP on the 6th position (5) ..

In my case, this line is GRUB_DEFAULT=0 and Ubuntu boots up.

I don’t want the menu to be displayed for too long, so I have GRUB_TIMEOUT=1 .. This waits only 1 second before it boots.

After you change, you hit Ctrl+X to Exit.

It asks you if you want to save, press Y.

And then press Return/Enter.

Then this command:

sudo update-grub

You’re done.

Now for the disk check: This annoyed me, a lot .. So a little visit to fstab.

Look for a line like this

UUID=0de1480d-1b57-4dd3-9457-4cf899ef6817 / ext2 errors=remount-ro 0 0

The last 0 of the line means it won’t launch the disk check, this was set to 1 and I changed it to skip the test.

Do the same as for the grub (Ctrl+X, Y, Enter) and no need for updating it. On reboot, it won’t check your disk.

That’s it.


How To Share Your Internet Connection on VirtualBox: Ubuntu Guest on a Windows XP Host

This was very frustrating for me. Really frustrating. I searched on different fora but nothing worked.

First, you need to have some sort of benchmark. For me, it was being able to connect to the Speedtouch modem (Gateway). If you can’t even connect to the modem, there is a problem.

To know the IP address of your gateway on Windows, execute a “tracert” in the command prompt, and it will be the first IP on the list. Or “ipconfig /all” and search for it. Most likely

Here is the configuration which worked for me.

On the left panel of VirtualBox, click on “Settings”. Then “Network”.

You will find a drop box called “Attached to”, chose “Bridged Adapter”..

Just below, you will find “Name”. For me, it was “Intel(R) PRO/100 VE Network Connection”. Chose “Allow All” in “Promiscuous mode” and check “Cable connected”. And then OK.

It doesn’t matter if your guest box is running or not. If it’s not, launch it. If it is, go to the upper right corner of your screen, you will find two arrows.

Click on that icon, and then click on “Connection Information”.

Do it again and click on “Edit Connections”.

Click on whatever connection is offering itself to you, usually it is “Auto  Ethernet” or “Wired Connection 1” or “eth0”. Double-click on it, or click on it, and then click on “Edit”.

Click on the “IPv4 Settings” tab.

In “Method”, chose “Manual” instead of “Automatic (DHCP)”

In “Netmask”, enter “”. (Without the quotes)

In “Address”, chose an IP address. For example “” (Without the quotes).

In the “DNS servers” tab, you will enter a list of IP addresses separated by commas. For example, you can enter,  (Which are two of the OpenDNS IP addresses). You can add more if you wish. I added two others that are proper to my ISP. Don’t forget to separate IPs with commas.

You will have something like this

Click on “Save” and close the other window. Click on the two arrows and then click on the name of your connection. This should disconnect you and reconnect you.

You should be done. Open a browser and try If it doesn’t work, try your Gateway’s IP address. If this doesn’t work, you probably got it wrong or your cable is disconencted OR you can go to VirtualBox, click “File” then “Preferences”, “Network” and tinker with the parameters there.

If there’s still a problem, feel free to comment here and we can work things out.