Linux purists may cry foul, but many of us still need to dual-boot between Windows and Linux. And while the latest Linux distributions are adept at putting themselves on a PC that runs Windows, the resulting configuration may make it difficult for you to share files between operating systems.
This month I'll be looking at how to make your documents easily accessible no matter which OS you're using by putting them in their own partition. I'll also show you how to address another issue that dual-booters sometimes face: what to do if a new or upgraded Windows installation takes over the boot-loading process, thereby wiping out your dual-boot ability.
To install Linux on a Windows PC, you need to create two partitions to make room for it. If you have a factory-installed version of Windows on your PC, chances are it uses the whole hard disk as a single partition; this means that on a PC with a 40GB hard disk, the C:\ drive is roughly 40GB in size.
Most recent Linux distributions take this fact in their stride, and allow you to shrink the Windows partition during installation to make room for Linux's main file system and swap (virtual memory) partitions. A typical Linux desktop installation requires somewhere between 2GB and 3GB of disk space these days, but can take up even more room if you select lots of the optional programs on the install discs. You can make life easier for yourself by deleting any unwanted programs and files on the Windows partition, and defragmenting it - thereby increasing the amount of free space that is available for Linux - see Figure 1.
Getting to your docs
But before you install Linux, here's an important thing to consider. The default file system in Windows XP and Windows 2000 is NTFS, a system Linux knows how to read, but cannot write to. And no version of Windows can read or write to the Linux file system partitions. All this means that there's no easy way to work on documents in one OS, then boot to the other OS and continue working on the same files.
Fortunately, NTFS isn't the only Windows file system. Windows XP also supports the older FAT32 system, a holdover from Windows 98 and Windows Me that lacks NTFS's security features and is therefore readable and writable from Linux.
One simple way to make your documents fully accessible from either Windows or Linux is to put them on a separate FAT32 partition created just for that purpose. Setting up such a partition is easy if your hard disk already contains free space that isn't part of an existing partition: you can create your new FAT32 partition using the Disk Management portion of Windows XP's Computer Management console, located in Control Panel's Administrative Tools folder - see Figure 2 - just right click on My Computer and select Manage then Disk Management.
If your Windows partition takes up the whole disk, though, it won't be quite that easy. Although the Disk Management tool lets you create and delete partitions, it doesn't allow you to resize them. You can use a commercial partitioning utility like Symantec's excellent $120 Partition Magic 8.0 (or $110 to download from www.symantec.com.au) to resize partitions without affecting partition contents - it's always a good idea to back up the contents first.
If you don't want to spend that much to be able to resize partitions once in a blue moon, you can use Andy McLaughlin's free Partition Logic utility. This is a downloadable boot disk image that you burn to CD, and then use to boot the PC and create or resize disk partitions - see Figure 3. It's on the Cover Disc of June 2006 PC World, if you're tempted, or you can download it from http://partitionlogic.org.uk/download.html
Linux pros may opt instead to boot the PC with a Linux install disc and use the GNU partition editor utility called Parted in rescue mode to resize and create partitions. The fastest way to become an expert at using the Parted tool is by reading the online documentation at www.gnu.org/software/parted/manual
Also, if all you need to do is read files on your Linux partition from within Windows NT/2000/XP, you can skip the repartitioning altogether and simply install the Ext2 Installable File System for Windows. Note, however, that this won't let you read the contents of an NTFS partition from Linux.