PC Help: Change your boot-up order

How to make Windows XP start before Linux Ubuntu

Written by Tim Smith and Anthony Dhanendran, Computeract!ve

Q I have installed Ubuntu on my home computer. All is working fine but I would prefer the computer to start Windows XP rather than Ubuntu if I don’t get to the menu in time.

Mike Freeman

A For some reason there is no option for changing the boot order in the Ubuntu System menu. Instead a configuration file needs to be edited. Thankfully this is not too complicated and, although there is software available for this, it is easy to edit this file directly.

Advertisement

Before making this change, make a note of the number of options in the boot list when the computer starts. But be sure to count the number of lines rather than the number of options, including the line that marks the Windows section.

Continue to load Ubuntu as normal. Click on the Applications menu, Accessories and Terminal. A window with a command prompt will appear. Type the following exactly as written but without the quotation marks:

‘sudo gedit/boot/grub/menu.lst’

Press Enter and then enter your password when prompted. The file will appear in a text editor.
Before changing anything, we will turn on the line numbers to make the options easier to find. Click on the View edit and then preferences. In the view section click on the Display line numbers option so that a tick appears, and then click on Close.

Scroll down to line 14 for the option of which operating system to boot. The default is 0, which means the first option in the list. This is because programmers count from 0 rather than one. Replace this with the line number of Windows in the boot menu but deduct 1 from the number first. On our computer the Windows option was on line 7 so we entered 6.

It is also possible to change the length of time the menu waits before loading the default. This option is on line 19 and is measured in seconds.

Click on Save and then close the window.

Reader comments

More from Computeractive

News

The latest home computing news

Downloads

The best PC tools, applications and more

Reviews

Independent opinions on new hardware and software

Step-by-step guides

Easy-to-follow projects with pictures

PC Help

Solve PC problems with our Q&A

Videos

PC projects demonstrated and product reviews

Articles

An in-depth look at how to get the best from your PC

Magazine

What's coming up in Computeractive

Forums

Get help with your PC problems from our readers

Competitions

Your chance to win computing prizes

Shopping

Great deals on products, services and more

Computeractive CD Rom 10
All 26 issues of Computeractive from 2007 on one CD-Rom.

Ultimate Guide to PC Troubleshooting
Everything you need to know to solve your PC problems.

Create your own calendars softwareCreate your own Calendars
The fun and easy way to create your own calendars!

Computeractive - Issue 280Computeractive Back Issues
Missed an issue? Click here to find a back issue

Blogs

Windows Watch

Windows Watch

Keeping an eye on the latest XP and Vista news

Vista chess frustrations

03 Dec 2008I would have to admit that I'm no great chess player, but it seems that Vista makes up for any deficiencies in...

Download Junkie

Download Junkie

Your daily dose of download discussion

Optimise your computer for a particular task with PowerUp

03 Dec 2008Tweaking the performance of your Windows operating system may sound relatively easy, but if you don't really know what you're doing, it...

Advertisement

Free email newsletters

Techno babble demystified...

[Display all definitions]

Or type in any computer-related word and click "Go"

Advertisement

Computeractive is not reponsible for content of Google adverts

Primary Navigation

© Incisive Media Ltd. 2008. Incisive Media Limited, Haymarket House,
28-29 Haymarket, London SW1Y 4RX, is a company registered in the United Kingdom with company registration number 04038503

Search computeractive.co.uk