image: gparted screenshot
A hard drive's partitions managed by Gparted
R E L A T E D   C O N T E N T
ADVERTISEMENT

Hands on: Putting the boot in

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

Barry Shilliday, Personal Computer World 09 Feb 2007
ADVERTISEMENT

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.

See also:

Linus TorvaldsToo fat for many PCs, says Torvalds  22 Jan 2007
image: linux NTFS fstab screenshotYou can use tools to support NTFS well beyond read-only access  13 Dec 2006

All PC Operating Systems
Tags: Linux and Unix

Like this story? Spread the news by clicking below:

Post this to Delicious del.icio.us    Post this to Digg Digg this    Post this to reddit reddit!

Permalink for this story
R E A D E R   C O M M E N T S
M A R K E T P L A C E
Get your free demo of Numara Track-It! 8 - the leading help desk solution for IT related issues.
Make presentations, review documents & share your entire desktop. 30-day free trial! (cc required).
Discover how remote support can fuel your IT business in ways you've never thought of before.
Apply ITIL best practices at your service desk while eliminating integration cost. Learn more here.
WAN based, automated, daily vulnerability assessments. Click here to try and request our whitepapers.
Have your product or service listed here >   
Sponsored links
F E A T U R E D   J O B S
Solihull, United Kingdom | Enzen Global Limited
Business Consultant - £35,000 - £40,000 - Solihull We are in need of a Business Consultant with strong analytical skills and a penchant for learning the domain knowledge of the Utilities sector (Gas industry in ... more >
Welwyn Garden City, Hertfordshire, United Kingdom | Tesco.com
Affiliate & Media marketing manager - Welwyn Garden CityWho's behind the world's most successful online retailer? Just over 10 years ago we started Tesco.com (aka Dotcom). Today, we've an incredible 750,000 active customers and sales ... more >
Welwyn Garden City, Hertfordshire, United Kingdom | Tesco.com
Infrastructure Delivery Project Manager - Welwyn Garden City Who's behind the world's most successful online retailer? Just over 10 years ago we started Tesco.com (aka Dotcom). Today, we've an incredible 750,000 active customers and sales ... more >
Cardiff, United Kingdom | University of Wales
Projects Officer - £26,665 - £30,912 - Cardiff The Projects Officer will work on specific projects under the direction of the Head of Information Services. It is expected that these will concentrate on the redevelopment ... more >
More job opportunities