-->
Previous | Table of Contents | Next |
Partitions are created, destroyed, and managed by a program usually called FDISK. Each operating system has its own version of FDISK, so be sure to use the correct one. If youre now using DOS or are planning to use DOS, you must first repartition the DOS drive by using DOSs FDISK. You later use the Linux version of fdisk to create the Linux partitions. If youre using OS/2, you also need to use the OS/2 version of FDISK to prepare the OS/2 partitions.
Partition Requirements
First, you should plan what partitions you need. DOS requires a primary partition; Linux and OS/2 can reside in other partitions. If youre using the OS/2 boot manager, which also works well with Linux, you must prepare for its use. You must also be aware that if youre shrinking a current DOS partition to make room for Linux, not all of your files can be restored to the new, smaller DOS partition.
NOTE: You can access DOS partitions from Linux, thus moving, saving, and editing DOS files under Linux. But you cant execute DOS programs under Linux.Two experimental components of Linux allow you to emulate DOS under Linux and also install Linux under DOS. Both systems are still in the implementation stage and are, thus, more suited for Linux hackers. Also, one of the methods, UMSDOS, is incompatible with Red Hat, so you cant use that method at all. You can find plenty of information on these topics in the Linux world.
See Running DOS Programs Under Linux, p. 127
Next, you should jot down the number of partitions you need and how much disk space to provide each with.
DOS Requirements
If you want to boot DOS, it must go in a primary partition. A bootable version of DOS doesnt require much spacejust enough for the system files, COMMAND.COM, CONFIG.SYS, and any driver files needed to start your system. For example, I provide a 5MB DOS partition on my first drive to boot DOS.
When DOS is loaded and running, you can access any of the other extended and logical drives on the system. Unfortunately, whereas Linux can access DOS files in a DOS partition, DOS cant access Linux files in a Linux partition.
OS/2 Requirements
OS/2 versions 2.0 and later dont need a primary partition. The OS/2 system can install and boot from an extended partition. Thus, you can install DOS on a primary partition and create an extended partition area for OS/2 and Linux. The space required for OS/2 is version- and feature-dependent; you should consult your OS/2 documentation for space requirements. You should also subtract 1MB from available space if you intend to use the OS/2 boot manager.
Linux Requirements
As explained earlier, Linux stores files on file systems, and these file systems can reside on different partitions, basically as safety precautions. Linux requires one partition for each file system. The next consideration is for a swap partition. Linux, like most operating systems that use disk space for memory (called a virtual memory configuration), needs a swap file or a swap partition to simulate physical memory using disk space. Linux typically uses a swap partition.
The size of the swap partition depends on the amount of physical RAM your system contains. A rule of thumb is to make your swap partition twice the size of your amount of RAM. Thus, if you have 8MB of RAM in your system, you should create a swap partition 16MB in size. If you have 4MB of RAM or less, you must activate a swap partition.
Linux swap partitions can be no more than 128MB in size, so if you need more space, you have to create multiple swap partitions. Thus, if you have a Linux system that needs two partitions for Linux (one for the system files and one for user files), plus a swap partition, you need to define two Linux partitions and one 32MB swap partition.
Previous | Table of Contents | Next |