Simple clear advice in plain English

Hands on: Putting the boot in

Linux partitions explained, and find out how to dual-boot with Windows

For most people new to Linux, their biggest concern will undoubtedly be how to install it alongside Windows. Most people will understandably want to dip their toes in before wiping out what they’re accustomed to, and many may still need to use specific Windows applications even if they do decide to switch to Linux full time.

Thanks to what began with the Knoppix distribution, many Linux distributions can boot directly from CD or DVD, allowing users to try things out before committing in any way. These work entirely from CD and don’t need to modify the hard drive at all.

Although things are considerably easier than they were a few years ago, when it comes to Linux installation it’s a good idea to understand a few concepts about dual-booting if you want to go down that route. Installation programs are generally good enough, but a basic understanding is helpful to ensure you know what you are doing.

If you don’t need to dual-boot with Windows and are happy to wipe the hard drive clean, then you’ll find that a Linux installation is no more difficult than a Windows one. If anything it’s actually easier, especially as driver downloads are generally not needed at all.

Partition basics
On a PC, the hard drive needs to be split up into partitions before it can be used. A partition acts, to all intents and purposes, as a separate hard drive. Each partition can have its own file system, or indeed its own operating system. Linux does, in fact, allow you to use an entire hard drive for data without any partitions, and it even allows you to use other partitioning schemes (such as those used by Macs), but here we will concentrate on a traditional PC setup.

A hard drive can be split into four bootable partitions. These are known as primary partitions. Initially, back in the days of MS-Dos, this was the upper limit. In order to allow for more partitions, it was made possible for one of those primary partitions to be marked as an extended partition.

This itself could then be split up into any number of logical partitions. As a result, a hard drive can have one-to-four primary partitions. Alternatively, it can have one-to-three primary partitions and a number of extra logical partitions. Primary and logical partitions behave the same.

The information about partitions is stored on the master boot record, commonly referred to as the MBR. This is 512 bytes of data, stored in the first sector of the hard drive, outside of any partitions.

The MBR also holds executable code, since the PC must use this to start an operating system. If you install a copy of Windows, the traditional Dos MBR is installed. This is a simple piece of code: it checks each primary partition and whichever is marked as active is then booted.

Every partition can have executable code installed in its first sector, and this code is run on whichever partition is active. One limitation of the Dos MBR is that it can only boot primary partitions.

Reader Comments

   

Add your comment

All fields must be completed. Your email address will not be displayed or used to send marketing messages.

All messages will be checked by moderators before appearing on the site.

See our Privacy Policy for more information.

Related articles

Hands on: It’s all write now

You can use tools to support NTFS well beyond read-only access

Vista 'over-hyped' says Linux creator

Too fat for many PCs, says Torvalds

windows-7-logo

Microsoft reveals more details about the new Windows 8

Further details are revealed at the BUILD developer conference about what to expect with the next Windows operating system release

Question & Answer

Q.How do I store musician and other information about...

> Read the answer

Q.Why can't my browser find the website address I typed...

> Read the answer

Q.All updates have been downloaded, so why won't Windows...

> Read the answer

Best deals on the web

img

THREE E585 Mi-Fi Take it Away Mobile Broadband - 5GB allowance

£44.97- Buy it now

img

T-MOBILE 3G Pay As You Go iPad Micro SIM

£0.10- Buy it now

img

THREE Huawei E353u Take It Away Mobile Broadband - One Month Rolling Contract

£4.99- Buy it now

Great benefits for subscribers!

Poll

Which is your preferred web browser

Jargon Buster

Computing terms explained in plain English

GIF

Grahics Interchange Format. A type of image file often used on the web, but now largely superseded by...

Great shopping deals from Computeractive