Dual Booting Revisited

In Chapter 3, I mentioned dual booting, a means by which you can run both Linux and Windows on one machine. At boot time, a menu lets you start one or the other. Let's pretend for a moment that you still want to run Windows from time to time. Perhaps you want the comfort of knowing that you can go back to your old operating system to do certain things. This is where dual-booting comes into play. There are a couple of ways to do this and I will get to those in a moment. Please note, however, that doing this will require a little more up-front work.

One dual-boot scenario involves a completely separate disk that you can dedicate to a Linux installation. Although this is an ideal situation, most people will have a single disk with Windows already loaded. If you have a large disk, chances are good that there are already two partitions. One will be a C: drive and the other a D: drive. What you want to do is erase the D: drive and use it for Linux. If you are going to follow this route, make sure you back up any documents or copy them into folders on your C: drive.

Unfortunately, Windows is just as likely to be taking up the entire partition table. The trick is to shrink the existing Windows partition, thereby creating some space on which to install Linux. To do this, you must defragment your disk in Windows before going ahead and resizing your partitions. You do this by clicking the Start button and then selecting Programs | Accessories | System Tools | Disk Defragmenter.

Resizing the partition is your next step. Once again, there are two ways of doing this. Some recent distributions, such as Mandrake and SuSE, will automatically detect a Windows-only disk and offer to shrink the partition for you. Alternatively, you can do this with a little DOS program called FIPS, which you can find on your Linux distribution CD. On Debian, check the tools directory. On Red Hat or SuSE, check the dosutils directory.

In most cases, there will probably be a directory called FIPS or FIPS20 with a number of files inside, including the FIPS.EXE program itself.

A Sample FIPS Session


When doing anything this drastic with your drives, always make a backup. In fact, no matter what you do with your system, always make regular backups.

Let's pretend you've already run your defragmenter and that you have plenty of space on your hard drive. Start by creating a DOS/Windows boot diskette. This is generally done by typing the following command from the DOS/Windows command prompt (after inserting a blank diskette into the diskette drive):


The "/S" tells DOS/Windows to transfer the system to the boot diskette. You will also want to have a second boot diskette handy, so do this a second time. You'll need it to back up your boot sector. I'll explain why in a moment.

Next, copy the FIPS.EXE utility and its associated files from the CD-ROM drive to the first diskette:


Remember that the path to the FIPS20 directory may vary, depending on your distribution CD.

Now shut down Windows and boot from the FIPS diskette. When the boot completes, you should be at a DOS prompt. This is where the split occurs. Now run the FIPS command:


FIPS will display a partition table showing you how the disk space has been allocated. FIPS will ask which partition you want to split. No doubt, we are taking these steps because there is only one partition, and that makes it easy to answer the query. Enter the partition number and press <Enter>. As a precaution, FIPS will ask whether you want to make a copy of your boot sector on the remote chance that disaster strikes. You probably want to answer Y (yes). This will require a second, preformatted diskette. Put in your second diskette and answer Y to the next question: "Do you have a bootable floppy disk in drive A: as described in the documentation (y/n)?" Since you have just inserted the diskette, press <Enter>.

Now the fun begins. FIPS will display your partition table. Using the left and right cursor (arrow) keys, change the size of the partition (you'll see the numbers changing each time you press the keys). When you are happy with your changes, press <Enter>. FIPS will ask you to confirm the changes. You can still change your mind at this time. If everything looks good, press <c> to continue; then type y when asked "Ready to write the new partition scheme to disk?"

When FIPS completes, you will reboot your system. You might want to reboot into Windows first, just to make sure that things are working properly. If everything looks as you want it to, pop in your Linux installation CD, shut down Windows, and reboot the system.

Moving to Linux(c) Kiss the Blue Screen of Death Goodbye!
Moving to Linux: Kiss the Blue Screen of Death Goodbye!
ISBN: 0321159985
EAN: 2147483647
Year: 2003
Pages: 247

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net