You cannot install Linux to a partition already in use. By viewing the partitions on your hard drive, you can determine which of the following two cases best describes your system:
Even if all of your partitions contain useful data, one or more partitions may be larger than required. In that case, you can reduce the size of each such partition and reorganize the drive to include contiguous unused space that you can use to hold Linux.
You can use the Windows Explorer to determine the amount of free disk space in a partition. Simply right click on the drive icon and click on Properties in the popup menu. The Properties dialog box that appears shows the amount of used and free disk space associated with the drive.
If you are able to find one or more partitions that have sufficient free space for a Linux installation, you can use a special utility to split the used and unused portions of a partition into separate partitions. The Linux CD-ROM includes the GPL fips utility, which can split FAT and FAT32 partitions. For information on using fips, see the next section.
WARNING: If you make a mistake while attempting to shrink a partition or if the software malfunctions, you may lose all data in one or more partitions. You should not attempt to shrink a partition until you've completely backed up your system and made sure that your backup is usable.
Many Linux users find PowerQuest's PartitionMagic utility helpful. Unlike fips, PartitionMagic is commercial software; however, it supports partition types and operations not supported by fips. For example, PartitionMagic can split NTFS, HPFS, and Linux ext2
partitions.
The fips utility lets you split a FAT partition into two partitions, one containing the data of the original partition and the other containing no data. Version 2 of the fips utility lets you split a FAT or FAT32 partition. Once you've run fips, you can use the fdisk program to delete the new empty partition, creating free space for installing Linux.
The fips utility will not split a partition unless there is at least about 10 MB of free space at the end of the drive. Moreover, fips requires a free entry in the disk's partition table; it will not work if your drive already contains four partitions.
This section describes the procedure for using fips. It assumes that you're running Microsoft Windows 9x. If you're running another operating system, consult the fips documentation for special instructions.
WARNING: In the words of its author, fips is "somewhat experimental." Neither the author of this book nor the publisher can accept responsibility or liability for damage resulting from your use or misuse of fips. You should not attempt to use fips until you've completely backed up your system and made sure that your backup is usable.
Also, your Microsoft operating system may assign different letters to drives after you use fips to split a partition. For example, your D: drive may become E:. The fips utility ensures that the C: drive remains C: so that you will generally be able to boot your system; however, you may not be able to properly access programs or files that reside on drives other than C:.
Before running fips, you should check the condition of your hard drive by running chkdsk, ScanDisk, Norton Disk Doctor, or a similar program. To launch the ScanDisk program, click Start Programs Accessories System Tools ScanDisk. If your program reports errors, you should not attempt to split the partition until you resolve them.
Next, you must defragment your hard drive. Defragmenting a drive moves all its data to the beginning of the drive, leaving all the free space at the end. You can defragment your drive by using the Microsoft defrag utility. Simply click Start Programs Accessories System Tools Disk Defragmenter. However, you can use another defragmentation program if you prefer; the Norton Speedisk program, PCTool's Compress program, and various shareware programs are suitable.
The Microsoft defrag program doesn't always defragment a drive as thoroughly as possible. It sometimes erroneously regards some disk blocks as bad or immovable, and thus can fail to clear space that another program would successfully reclaim. If you find the results of using defrag disappointing, you should consider using a different program.
Next, you should disable virtual memory. Launch the Control Panel by clicking Start Settings Control Panel. Then, double click on the System icon. The System Properties dialog box appears. Select the Performance tab and click on "Virtual Memory..." The Virtual Memory dialog box appears. Make a note of the current setting. Then, click on "Let me specify my own virtual memory settings" and then click on "Disable virtual memory." Click on OK to dismiss the Virtual Memory dialog box. Finally, click on OK to dismiss the System Properties dialog box.
Next, create a boot floppy, by using the Add/Remove Programs control panel applet. Double click on the Add/Remove Programs icon in the Control Panel. The Add/Remove Program Properties dialog box appears. Click on the Startup Disk tab and then click the Create Disk button. A progress bar appears on the Add/Remove Program Properties dialog box. When prompted by the program, insert your Windows 9x CD-ROM. After reading from the CD-ROM, the program will prompt you to insert a formatted floppy disk into your system's floppy drive. Label a floppy disk "FIPS" and insert it into the drive. As the boot disk is being written, the progress bar informs you of the task's status. After a few minutes, the progress bar will disappear, informing you that the boot disk has been created. Click on OK to dismiss the Add/Remove Program Properties dialog box.
Do not remove the diskette from the drive. Instead, copy the following files from the CD-ROM onto the floppy disk:
\dosutils\fips20\restorrb.exe
|
\dosutils\fips20\fips.exe
|
\dosutils\fips20\errors.txt
|
If you use IMAGE or MIRROR or if your config.sys or autoexec.bat file invokes programs that write to your hard disk, use the Windows Explorer to temporarily rename config.sys to config.fip and autoexec.bat to autoexec.fip. If you're unsure what programs your config.sys and autoexec.bat files invoke, play it safe by renaming both files.
Now, boot your system by using the floppy diskette you created. When the MS-DOS command prompt appears, type fips and press Enter to launch the fips utility. If you have more than one hard disk drive, fips asks which disk it should access. Respond by identifying the appropriate disk drive.
Next, fips gives you the opportunity to create a backup file on your A: drive. You should allow fips to create the file. Then, if something goes wrong in using fips, you can boot from your floppy diskette and run the restorrb program to return your hard drive to its original state.
The fips utility then displays the partitions found on your hard disk. You need pay attention to only the first and last columns of the display, which indicate the number and size of each partition.
The fips utility performs some analysis of your hard drive. Then, if your hard drive contains more than one partition, fips asks you which partition you wish to split. Type the number of the partition and press Enter.
After performing some further analysis, fips asks you to enter the number of the cylinder on which the new partition should begin. Use the left cursor key to decrease the number and the right cursor key to increase it. As you increase or decrease the cylinder number, fips displays the size of the two partitions it will create. After setting the proper cylinder number, press Enter.
You may find that the maximum size of the empty partition is much smaller than you expected. If so, this is probably due to the presence of a hidden file that your defragmentation program was unable to move.
To identify such files, open an MS-DOS Prompt window, type the command dir /a:h /s and press Enter. Ignore any files with names similar to ibmbio.com or ibmdos.com. Try to determine what program created any remaining hidden files. If you can identify the program, you may be able to create a larger empty partition by uninstalling the program, splitting the partition, and reinstalling the program.
The fips utility displays the new partition information. You can type Y to save your changes and exit, or type C to make additional changes.
After exiting fips, you should immediately boot Windows 9 x and run ScanDisk to verify that the partitions created by fips are valid. Do not write anything to the disk before rebooting; otherwise, you may destroy information on your hard drive.
Next, you should re-enable virtual memory. To do so, launch the Control Panel by clicking Start Settings Control Panel. Then, double click on the System icon. The System Properties dialog box appears. Select the Performance tab and click on Virtual Memory. Return the settings to the values you earlier noted, then click on OK to dismiss the Virtual Memory dialog box. Then, click on OK to dismiss the System Properties dialog box.
If you renamed your config.sys and autoexec.bat files, restore the original names by using Windows Explorer.
Finally, reboot your system so that the changes to your system's virtual memory settings become active. Now you're ready to install Linux to the new empty partition.