Installation in Depth

Introduction

Most users will be able to satisfactorily install OpenLinux with the instructions in Chapter Two. This chapter is meant to be consulted if:

In the first case there are several installation options available. Each is gone over in this chapter.

In the second case simple instructions are given to perform a customized installation with a user-selected set of programs.

Disk partitions are a subject that anyone running a dual-operating system machine should know a little about, and some will want to know a lot about. Partitioning a disk can have advantages. This third section goes over both theory and practice, and covers in detail the partitioning options available during installation.

Alternative Installation Methods

The default method of installing OpenLinux from Windows may not work in all cases. If it does not, then the preferred backup installation method is booting directly from the Install CD. In both methods, the user is presented with a list of options:

 

 

If for some reason the Standard mode does not work, four of the remaining five modes may be used as alternatives. A good plan is to start with Cautious mode, and if that fails to work, to proceed with Expert, then VESA, and finally the Non-Graphic mode. A brief description of all five installation options follows:

Cautious Install Mode

By default, the installation program (Lizard), automatically probes your computer's hardware in a fairly aggressive fashion--in an effort to make installation easier and more automatic. However, this aggressive probing--particularly of the graphics section--can sometimes disable the installation process. Cautious mode reduces the level of hardware probing. In particular, this mode will ask you to confirm Lizard's graphics card, monitor and video mode selection, and will make no attempt to configure your X server.

Expert Install Mode

A standard mode installation will hide certain hardware elements from the user if the Lizard has satisfied itself that the hardware has been correctly identified. Expert mode automatically probes all hardware, but then allows you to change all settings before actual installation.

Unattended Install Mode

This mode is not used for troubleshooting; rather it automates the process of installing OpenLinux from an Install Server. For more details, see Chapter Thirteen, Advanced System Administration.

VESA Install Mode

This forces Lizard to perform the installation in a very simple graphics mode--a screen resolution of 640x480, and a color depth of 16bpp--that should be compatible with almost any make of graphics adapter card. Using this mode, you will, as in the Cautious mode above, be asked to confirm the detected graphics card, monitor, and video mode.

Non-Graphic Install Mode

This last mode gives up completely on any form of graphics installation, and attempts to install OpenLinux using an older, text-only installation program called LISA.

Complete instructions for using this method are in the Installing From Boot Disks section, later in this chapter.

Additional Installation Screens

In the Cautious, Expert and VESA installation modes, the user may be presented with screens not normally seen in a Standard Lizard install. Examples of two of these screens are See The Select Video Card Screen and See Select Monitor Screen, below.

Select Video Card

This screen, See The Select Video Card Screen is used to configure your video card type, video RAM, and mode clocks. By pressing the Probe button, you can try to automatically confirm your hardware settings, but it can be safer to manually enter them yourself.

 

The Select Video Card Screen

If you decide to probe and the system hangs, simply reboot and try again, the second time entering the information manually. The card type and video RAM information can be found in your computer's documentation.

Select Monitor

This screen, See Select Monitor Screen, allows you to manually select your monitor from a large database. If your particular model is not there, select one of the `Typical' entries, making sure that its specifications match your own.

 

Select Monitor Screen

 

Other Installation Methods

There may be hardware conflicts--increasingly infrequent--that keep the Windows installation routine from working properly. And it is not always possible to boot from the CD-ROM. Fortunately there are three alternative methods, virtually assuring a successful installation:

Installing OpenLinux From DOS

This is easily accomplished, but relies on your computer being able to read the CD-ROM from DOS. A DOS window running from within Windows is not enough: you must have booted directly to DOS, or have entered MS-DOS mode from Windows. In Windows 2000 and NT, entering MS-DOS mode requires a reboot.

Booting directly to DOS can be accomplished with a DOS boot disk--you can make one by clicking Start and following the path: Settings|Control Panel|Add/Remove Programs. Click the Startup Disk tab, and follow the instructions to create the boot disk. Alternatively, in Windows 95/98 you can boot directly to DOS by pressing the F8 key shortly after turning on your computer. In the second case, you will be presented with the Microsoft Windows Startup Menu. Use the down arrow key to choose item number 5, Command Prompt Only, and press the Enter key.

To reach MS-DOS mode from Windows, click the Start button, choose Shut Down, and then Restart the Computer in MS-DOS Mode (See Entering MS-DOS Mode From Windows.). Windows will close down and reopen in DOS.

At the DOS prompt, insert your OpenLinux Install CD, type the drive letter of your CD-ROM followed by a colon, and press the Enter key.

 

Entering MS-DOS Mode From Windows.

Then type:

cd \col\launch\dos

and press Enter. Next, type:

install

and press Enter again.

The Lizard installation routine will now start directly from your CD-ROM.

 

Installing From Boot Disks

A Boot/Install diskette comes with the OpenLinux eDesktop 2.4 product. Using this method is identical to a Lizard standard install--and is useful if you are unable to boot from Windows or a CD, and prefer not to deal with a DOS prompt.

Lizard Boot Disk Method

Insert the Install floppy, and reboot your computer. The Caldera Systems OpenLinux welcome screen will appear, followed by the first graphical installation screen--System Startup in Progress.

 

NOTE: Make sure to insert your OpenLinux Install CD at this point.

 

Presently the Select Language screen should appear, and installation proceed normally, as set out in Chapter Two.

LISA Boot Disk Method

If the Lizard boot disk fails to work, there is a fallback position: LISA. This is an older, text-based installation program, very manual, that is guaranteed to produce a successful OpenLinux installation.

LISA boot disks are not supplied--they must be created. In Windows insert the OpenLinux Install CD, and at the Welcome screen click the Create Boot Floppies button.

 

NOTE: You can create both LISA disks and Lizard disks. Note also that both installation methods may use two sets of diskettes: Install and Modules. The first is necessary for the method to work; the second may be necessary to support a peripheral device such as an Ethernet card.

 

LISA Floppy Method

You are most likely to need to use this method if the Lizard installation program is unable to correctly identify your graphics card or monitor.

At the screen shown in See Keyboard Selection in LISA, follow the directions to make the LISA Install and Module diskettes. When you are finished, insert the Install floppy and reboot your computer.

After some time the language selection screen will appear. Use the arrow keys to choose your language, then press Enter. Next, you are asked to choose a keyboard layout, according to language (See Keyboard Selection in LISA). Again, choose and press Enter.

 

Keyboard Selection in LISA

When asked if you want to use a previously saved configuration, make sure the No button is selected, and move on to the Change LISA Setup screen. In this setup menu you can switch certain automatic probes--for Plug and Play cards, for automatic network configuration--on or off. (Although unlikely, automatic probing may lock up your machine. If you are unable to get past this point of the installation, then it's a good idea to turn probing off).

Turn these features on or off by highlighting the feature, then pressing the Enter key. This brings up another menu, with a Yes or No button. In the case of the Netprobe utility, if you choose to turn it on, another screen is presented, asking you to select which network service the probe should scan for.

When you are finished setting up automatic probing, highlight `Use This Setup and Continue', and press the Enter key.

The next screen shows you the IDE and ATAPI hardware found on your computer--for most users, this will consist of their hard drive and CD-ROM drive. Continue on. The following screen (See Hardware Query Screen), asks if all major hardware--including network cards--has been recognized. If it has, tab to the Yes button and press Enter. If it has not, make sure the No button is highlighted, and continue.

 

Hardware Query Screen

If you answered No, then the next two screens ask you if you want to autoprobe your hardware, and caution you again that it may lock up your system (if it does, simply reboot and start the LISA installation again). When the autoprobing finishes, you are presented with a screen listing your hard drive, CD-ROM, and Ethernet card.

If all of your hardware was recognized, then in the next screen highlight the Yes button and go on. But if your network card, or SCSI drive or CD-ROM was not recognized, highlight the No button and press Enter.

If you chose `No', the Kernel Module Manager screen appears (See Kernel Module Manager).

 

NOTE: Modules are small parts of the kernel--often drivers--that can be loaded and unloaded by the kernel as they are needed. The advantage of modules is that they reduce the size of the kernel (not being present when not needed), therefore saving memory. The disadvantage is increased complexity.

 

 

Kernel Module Manager

Replace the Installation diskette in the floppy drive with the Modules diskette you made earlier. Now highlight the line, `Load Kernel Modules', and press Enter. At the next screen you are asked which kernel module should be loaded. Select the correct line for the type of driver you need: CD-ROM, SCSI or network card, and go on.

In the following screen (See Load Kernel Module Screen for Ethernet Cards is an example: the Load Kernel Module screen for Ethernet cards), you will be given a list of drivers for the type of hardware you selected, along with the choice of autoprobing again, or loading more drivers from the Modules diskette.

Choose the driver you need. Next, you are prompted to set the module parameters (See Set Module Parameter Screen for Network Driver is an example: the Set Module Parameter screen for a network driver). You should only need to set these if your hardware settings are different from the default values. If you do choose to set them, you are generally given a list of possible parameter values. When you are satisfied with the module configuration, highlight the first line of the Set Module Parameter screen and press Enter.

One or more information boxes should appear, informing you that the module has been loaded and initialized successfully. Continue on until you are presented again with a list of hardware found and configured.

 

Load Kernel Module Screen for Ethernet Cards

When returned to the Kernel Module Manager, highlight the first line, `Finish Kernel Module Management' (as See Kernel Module Manager), and go on to the Change Partition Table screen.

 

Set Module Parameter Screen for Network Driver

Non-destructive partitioning cannot be done in LISA--only the fdisk partitioning program is offered. If you have an alternative operating system on your computer which you want to keep, make sure you have already partitioned your disk using OpenLinux's version of PartitionMagic--if you haven't yet, then back out of the installation program now by rebooting, and boot back into Windows.

If for some reason you cannot successfully run PartitionMagic, or the normal installation routine's disk partition program, then you will have to use Fdisk. This program is covered later in this chapter under a separate section, Partitions.

For now, assuming that your disk is correctly partitioned, press the No button at the Change Partition Table screen (See If You Have Already Partitioned Your Disk in Windows, Choose No).

 

If You Have Already Partitioned Your Disk in Windows, Choose No

The next screen is Configure Swap Space, See Highlight the Swap Partition. Make sure the swap partition is highlighted, and at the next screen choose which source you are installing from.

 

Highlight the Swap Partition

If you choose the hard disk, you will be prompted for a partition, if a network, you will be prompted for the hostname of your computer, and if a CD-ROM, you will be asked to choose a CD-ROM type and device. For most PCs, the default is the best choice: ATAPI-CD-ROM as /dev/hdc (See Typical CD-ROM Selection).

Make sure your OpenLinux Install CD-ROM is inserted, and go on to the next screen. Press Enter again, and at the Create Root Partition screen (See Select a Linux Native Partition at the Create Root Partition Screen), select a Linux Native partition.

 

Typical CD-ROM Selection

Answer Yes at the cautionary screen that follows, and No when prompted to check the disk for defective sectors--unless you are using an older hard drive.

 

Select a Linux Native Partition at the Create Root Partition Screen

 

At this point you are asked to choose which software package selection you prefer. The descriptions are self-explanatory. However, the choices on the next screen, Choose X11 Server, (See Selecting an X Server), are not. These files are the drivers, or servers, that display the X Windows System--and the KDE desktop.

The VGA16 server is always selected, in order to drive the X configuration programs. Most graphics cards will function well under the SVGA server, and most users will select it. If you have an accelerated graphics card, the description of which appears to match one of the other servers, choose that as well.

 

Selecting an X Server

At the next screen press Enter and wait for your OpenLinux system to load.

After package installation is complete, you are prompted to enter your computer's complete hostname. If you have a network card you will be prompted to enter the device name of the network interface. Typically this will be eth0 -- the first Ethernet card in your system. (If you have two, the second will be eth1).

 

Entering Your Computer's IP Address

Next enter your computer's IP address, using the `dotted quad' style. An example of such an address on an intranet could be: 192.168.0.2 (See Entering Your Computer's IP Address).

The next entry to make is your netmask--consult your system administrator, or, if you are setting up a home LAN, try 255.255.255.0. The broadcast address--the next window--will be filled in automatically. After this you are asked if you have a default router or gateway--a network device that connects your LAN to other networks or to the Internet. If you do, you will be prompted to enter the IP address--a likely address is filled in by default.

If your network uses a DNS Name Server, you will be prompted to enter up to three IP addresses, also in the `dotted quad' style. Finally, you are given the choice of setting up your machine as a Network Information Service (NIS) client and/or server.

Leaving network configuration options, you set the CMOS clock to either GMT or local time--the vast majority of PCs are set to local time. Next, choose your time zone (See Time Zone Selection). There are 137 entries, organized by country, region and by GMT.

 

Time Zone Selection

Next choose your mouse type, and in the screen after that choose your printer driver--if your exact printer isn't listed, then choose the closest example. When configuring your printer connection, remember that the vast majority of stand-alone PCs are connect to their printer through the first parallel port; LPT1 (See Configure Printer Connection). Set the printer resolution--a newer model will seldom be less than 600x600--and the default paper size. Most American users will choose `letter', users in the UK will probably choose `A4'.

Set the password for the root user (the system administrator: yourself), and then create your first non-root user account, by entering the user's (short) login name, user ID, and standard group (you can accept the default for both entries). The user's home directory is filled in for you. Unless you are an expert in shells, accept the default user shell: GNU bash.

Finally, enter the user's full name and password.

 

Configure Printer Connection

Press on past the Boot Setup Analysis screen to LILO Boot Manager Installation, See Installing LILO. The Linux Boot Loader (LILO) is generally installed either in the Linux root partition or in the Master Boot Record (MBR), of the first hard disk. On most PCs either location will work, but if you have more than one hard disk, it's safest to choose the first disk's MBR.

At the next screen, Defaults for LILO, (See LILO Defaults), you select which operating system should be started by default--you will be given a choice when you turn the computer on, but if you do nothing, the operating system selected here will start automatically. If you want your Windows system to be the default, highlight the line with the Win95 in it, otherwise highlight one of the Linux Kernel Image lines.

Accept the default Linux label, and then boot parameters if you need them.

 

Installing LILO

 

LILO Defaults

If you have more than one operating system, you should now add that to LILO, along with its own label. When you are finished, choose the first line of the LILO Entries screen, `No Further Entries to Add...' Accept installation of the boot loader as configured.

At the Configure Daemon /Server Autostart screen (See Configure Daemon/Server Screen), accept the defaults for now. You can always change these startup services later.

At the Choose X11 Server screen, select the most advanced server in the list, but at the next screen accept the default decision not to actually configure the server yet. Finally, elect to save your configuration to a diskette--it will save you a good deal of time later.

 

Configure Daemon/Server Screen

That's it! Remove your floppy and your CD, and boot into your new operating system.

Creating Custom Package Installations

When installing OpenLinux, most users will find one of the preselected packages of Linux programs--server, workstation, etc.--to be the most convenient installation method. However, Caldera Systems has provided a facility to allow you to create a customized set of programs for your installation.

Copy one of the preselected package lists from the OpenLinux kernel installation CD to a specific directory on a floppy disk. You can do this either from Linux or from Windows. The file must be both copied and renamed.

  1. First, make the /etc directory on the DOS floppy.
  2. Next, copy the pkgs-standard.generic file from:

/auto/cdrom/col/data/

on the CD, to the /etc directory on the floppy.

Then rename the file to pkgs.sel

Use any Windows or Linux text editor (such as KEdit in KDE or vi at a console), to open the file on the diskette. You will see that it is simply a long list of program titles. Use the editor to add to or subtract from this list, until you have the customized package list you desire.

When you next install OpenLinux, perform the following actions when you arrive at the Select Software screen:

  1. Select Custom selection (floppy) from the screen.
  2. As instructed, insert the floppy diskette containing the pkgs.sel file and click OK.
  3. Select Next.

 

Partitions

Partitions are what make a dual-operating system PC possible--they can also be an interesting complication, or a complex headache. They are necessary on a dual system because of the very different file systems and formatting required by different operating systems, such as Windows and Linux. They can also be a system asset--creative use of partitions can result in more refined organization and enhanced security.

A Partition Primer

This sections covers disk partitions in a pure Windows environment first, and then partitions in a mixed Linux-Windows environment.

There are certain rules regarding the number and type of partitions on a PC. To begin with, there are two fundamental types of partition. They are:

  • Primary Partitions.
  • Extended Partitions.

A PC's hard drive is traditionally formatted into just one, large primary partition which encompasses the entire disk. This was and still is how most PCs are sold today. However, the facility for creating multiple partitions is supported by allowing up to four primary partitions on the same hard drive--although in DOS/Windows, only one primary partition is ever `active', or visible, to the computer at a time.

The extended partition is a way of getting around both the four partition limit, and the limit on having only one partition visible at a time. Basically, a PC's hard drive can have, as mentioned before, up to four primary partitions--or, up to three primary partitions, and one extended partition. Three primary and one extended still sums to four--so where do the additional partitions come from?

The additional partitions appear in the form of `logical drives' within the extended partition. There can be as many of these as anyone would want, and a logical drive behaves in many ways like a primary partition. As a result, you could have, for instance, three primary partitions, and an extended partition with two logical drives--giving you a total of five partitions.

Although both primary partitions and logical drives behave, in many ways, the same, there are important differences.

  • The Windows and DOS operating systems can read data from any of the logical drives on an extended partition, but the operating system itself must be loaded and must run from a primary partition.
  • Only one primary partition can be `active' at a time--will be visible to the other disk partitions. The logical drives of an extended partition on the other hand are always visible to the rest of the system.

As an example, on the hypothetical Windows system above, with three primary partitions, and an extended partition with two logical drives, you would still have only three hard disk drive letters: C, D and E. The reason is that all of the primary partitions are `C'--only one can be visible at any one time. The diagrams below, See One Primary Partition, and an Extended Partition with Two Logical Drives and See Two Primaries Partitions, But Still Only One `C' Drive: Only One Primary Can be Active at a Time, should make this clearer.

 

One Primary Partition, and an Extended Partition with Two Logical Drives

 

Two Primaries Partitions, But Still Only One `C' Drive: Only One Primary Can be Active at a Time

Advantages of Multiple Partitions

The advantages are those of organization and safety. Keeping data of different types on different partitions is a separation one step clearer than different directories. And this administrative separation also enhances data security. The format command does not extend beyond the partition barrier--it is unlikely that the user will accidentally wipe-out more than one partition at a time.

A typical security-driven partition scenario might be the Windows operating system on a primary partition, and user-created data on a logical drive within an Extended partition. Slightly more elaborate would be a system of two logical drives, one to hold application programs, and one for data. More elaborate still would be logical drives created solely for data archiving.

Partitions in a Mixed Operating System Environment

Linux is a different operating system from Windows, and uses a completely different filesystem. For the purpose of configuring your disk, the three main differences are:

  • Linux can be installed and will operate from either a Linux-formatted primary partition, or a Linux-formatted logical drive within an extended partition.
  • Linux always needs a separate `swap' partition for its swap file.
  • A Linux-formatted partition or drive is invisible to a DOS/Windows formatted partition or drive. In other words, your Windows partitions cannot `see' the Linux partitions. This is a permanent blind spot. However, a Linux partition can be configured to recognize active DOS/Windows partitions, and DOS/Windows logical drives.

Two Partitioning Scenarios

The most obvious partitioning scenario is reconfiguring a Windows PC using one large primary partition, to a dual operating system, Linux-Windows machine. During a normal OpenLinux installation, PartitionMagic does the job for you.

First, it rewrites the data on your current partition, so that instead of spreading out in clusters across your entire hard disk, the data is concentrated toward one area. This produces enough contiguous free space for the Linux partitions (See The First Step in Creating a Linux Partition: Freeing Space).

 

NOTE: This operation is called non-destructive partitioning, because it re-partitions your disk without destroying your current data. Most partitioning programs--including Lizard's and LISA's, destroy all data in a partition they manipulate. It is difficult for the data retrieval expert, and virtually impossible for the average user, to retrieve data from a hard disk that has been destructively partitioned.

 

 

The First Step in Creating a Linux Partition: Freeing Space

Next PartitionMagic creates the two new Linux partitions in the free space--one for the operating system, and one for the swap file (See Creation of Two Primary Linux Partitions).

 

Creation of Two Primary Linux Partitions

In this scenario--probably the most common--Windows would be completely oblivious of the Linux partitions, but OpenLinux could be easily configured to read from and write to the Windows partition, thus ensuring data exchange capability.

A second common scenario might be a PC already with an extended partition and a logical drive--'D'--currently holding user data. In this case, PartitionMagic would, as before, non-destructively make room for the OpenLinux installation by reducing the size of the primary partition, and then creating two more primary partitions in the space made available--one for the Linux operating system, and one for the swap file.

In this scenario, when running Windows nothing would appear to have changed--except of course that free disk space on C would have been reduced. Within Linux, it would be possible to read from and write to both C and D partitions.

PartitionMagic Caldera Edition--Strengths and Limitations

Caldera OpenLinux is the only Linux distributor to bundle a graphical partitioning program that will automatically repartition a Windows PC. And a great deal of the functionality of the complete program has been included--it will, for instance, operate on a system with two hard drives. However, the Caldera edition is designed to operate mainly in the most common scenarios. This brings certain limitations. For instance, the program will only deal with primary partitions. It will not read, manipulate or create Extended partitions.

Thus, if you already have three primary partitions on your hard drive, PartitionMagic will fail to create a satisfactory solution, since there are a limit of four primary partitions, and Linux needs two partitions of its own.

Manual Partitioning

PartitionMagic does an excellent job of shielding the user from having to manually repartition their computer. However, manual repartitioning is necessary if you want to customize your partition plan beyond PartitionMagic's capabilities. In this case, you have the choice of two programs to use:

This section will first go over the custom procedure used by Lizard, and then the fdisk program, used by LISA.

Lizard

During the normal installation routine you come to the Select Target screen (See Select Target Screen), which gives you four choices of where to install OpenLinux:

  • Entire Hard Disk
  • Free Disk Space
  • Prepared Partitions
  • Custom (Expert Only)

 

Select Target Screen

Scenario One

In the scenario below, the user owns a computer with a 6GB hard drive, of which about 4.4 is devoted to the Windows partition. Using PartitionMagic, the user has already prepared their system for an OpenLinux installation, setting aside 1.6GB for the main Linux partition and 109MB for the swap partition. This setup is shown in See A Typical Dual Operating System Partition Solution.

However, the user wants to customize this installation, setting aside a small amount of disk space for a boot partition.

 

NOTE: Although OpenLinux does not do it by default, it is a common practice to give /boot --the directory which holds the Linux kernel, its own partition.

 

 

A Typical Dual Operating System Partition Solution

The boot partition seldom needs to be more than a few megabytes in size, so the user has decided to limit it to 10MB. Where will the space come from? It cannot come from the Windows partition--resizing it would result in the loss of all its data. That leaves the swap and the main Linux partition. 109MB is a very generous swap partition for a home use PC, so the user decides to take the space from there.

There are three steps to this procedure:

  • Delete the current swap partition.
  • Create a small boot partition.
  • Recreate a swap partition.
  • First, highlight the /dev/hda2 partition--the one with the word, Swap, in the System column (See A Typical Dual Operating System Partition Solution).
  • Click the Delete button at the upper right.
  • Click the Edit button. The Edit screen appears. In the End box, in this example, you would enter 772. The size label to the right would now be 15MB. That is the closest to 10MB you could get.
  • In the Mount Point box, click the down arrow and choose /boot from the drop-down menu. Now click the OK button.

 

The user now has a boot partition, but must recreate a swap partition. Notice that there are four `devices' available-- /dev/hda1 to /dev/hda4--but only three of them are used. These Linux device names correspond to the four possible primary partitions. The user can put the swap partition on the unused partition: /dev/hda4.

 

  1. Highlight the /dev/hda4 partition, and click the Edit button.
  2. The maximum swap partition size in this example is 94MB. In the System Type box, click the down arrow and choose Swap from the drop-down menu. Click the OK button.

 

The Select Partition screen should now look like See Reconfigured, with a Boot Partition Created From the Former Swap.

 

Reconfigured, with a Boot Partition Created From the Former Swap

Scenario Two

In this scenario, the user wants to reserve two Windows primary partitions--perhaps for data, or for other operating systems that require them--and wants to install OpenLinux completely on logical drives within an extended partition.

There are four steps to this procedure:

  • Delete all Linux partitions.
  • Create an extended partition on the fourth primary partition device.
  • Create logical Linux partitions within the extended partition.
  • Create the primary partitions.
  • First, select /dev/hda2 and /dev/hda3, and press the Delete button for each (See Decks Cleared: Three Primary Partitions Eliminated).
  • Next, select /dev/hda4, and click the Edit button. The Edit screen appears. It is necessary to determine the required size of the extended partition. 1600MB for the main Linux, 15MB for the boot, and 130MB for the swap would do. In this case, entering 562 in the Start box results in an extended partition of 1749MB, leaving plenty of room for the two primaries. In the System Type box, click the down arrow and choose Extended from the drop-down menu. Now, click the OK button.

 

Decks Cleared: Three Primary Partitions Eliminated

The result would look similar to See An Extended Partition Created on /dev/hda4.

 

An Extended Partition Created on /dev/hda4

 

The first two steps are completed. Now, for the third, creating logical Linux partitions within the extended partition.

  1. With /dev/hda4 highlighted, click the Add Logical button.
  2. Strictly speaking, there are only two Linux partitions to add, but we may as well add three: a small boot partition; a larger swap partition; and of course the main Linux partition. Add the boot partition--the Linux logical drive--first. In this example, the start sector is 562, so entering 563 into the End box would result in a size of 15MB
  3. Make sure the mount point box is set to /boot, and the bootable box is checked. Then click the OK button.
  4. With /dev/hda4 still highlighted, click the Add Logical button again to create the swap partition. Since in this example the start sector is 564, entering 580 into the End box would produce a swap partition of 133MB.
  5. Click on the down arrow in the System Type box, and choose Swap. Click the OK button.
  6. Finally, create the main Linux partition. Click the Add Logical button one more time.
  7. In the Edit screen, the entire remaining area on disk is selected by default--and in this example come to exactly 1600MB. Make sure that Linux is selected in the System Type box, and in the mount point box, select `/'. Click the OK button.

The Select Partition screen would now resemble See Three Logical Linux Partitions Within the Extended Partition.. The last step is to create the two primary partitions.

 

Three Logical Linux Partitions Within the Extended Partition.
  1. Select /dev/hda2 and click the Edit button. Two divide the remain disk space of 3020MB into two partitions, you would enter, in this example, 368 in the End box to produce a partition of 1506MB. Under System Type, choose DOS/Windows. It is not necessary at this time to create a mount point. Click the OK button.
  2. Do the same for /dev/hda3, using the total remaining disk space.

The final Select Partition screen would look something like See A Windows Installation, Two Spare Primaries, and an OpenLinux Installation Within an Extended Partition. The last step is to click the Write button.

 

A Windows Installation, Two Spare Primaries, and an OpenLinux Installation Within an Extended Partition

LISA

Customizing a partition with LISA means having to use the fdisk program. For many years this was the main disk partitioning tool available, and it is still used today.

During a LISA installation, when you are prompted to change an existing disk partition, select the Yes button (See Prompt for Manual Partitioning in LISA). This brings you to the Hard Disk Selection screen. Select the hard disk you want to repartition, and press the Enter key.

 

Prompt for Manual Partitioning in LISA

The next screen warns you--very accurately--that you should use fdisk only if you are already familiar with its use and how it works. This is a destructive disk partitioning program, and it takes very little to completely erase your hard disk. If you want to proceed, highlight the Yes button and press Enter.

You are immediately taken to the fdisk command prompt. Many of the program's commands are printed at the top of the screen; the most useful are:

 

 

Command

Result

p

Displays the partition table on the screen.

d

Delete a partition.

n

Create a new partition.

t

Toggle a partition's system ID--it's type.

q

Exit the program without writing any changes.

w

Write partition changes and exit the program.

The rest of this section will cover the procedures to use in fdisk, when faced with the same two scenarios covered above in Lizard.

Scenario One

The user has already prepared their system for an OpenLinux installation, setting aside 1.6GB for the main Linux partition and 109MB for the swap partition. However, the user wants to cutomize this installation, setting aside a small amount of disk space for a boot partition.

There are three steps to this procedure:

  • Delete the current swap partition.
  • Create a small boot partition.
  • Recreate a swap partition

First, confirm you partition setup by pressing the p key and then the Enter key. A screen somewhat like Table 3-2 should appear.

 

 

 

 

Device

Boot

Start

End

Blocks

Id

System

/dev/hda1

*

1

561

4506201

b

Win95 FAT32

/dev/hda2

 

771

784

112455

82

Linux swap

/dev/hda3

 

562

770

1678792

83

Linux native

 

  1. Delete the current swap partition by typing d and Enter. When asked which partition to delete, Enter 2, and press the Enter key.
  2. Check your work with the p command again. The output should be identical to the table above, with the exception of line two: the /dev/hda2 line should have disappeared.
  3. Now, create a small boot partition by typing n and Enter. You are asked whether you want to create an extended partition or a primary partition. Type p to indicate primary.
  4. When prompted for a partition number, select 2.
  5. When prompted for the first cylinder number, select the first on offer, in this case 771.
  6. When asked for the last cylinder (your answer can be in cylinder number, kilobytes, or megabytes), type 772 and press Enter.

 

Now check your work with the p command. The output would resemble Table 3-3.

 

 

Device

Boot

Start

End

Blocks

Id

System

/dev/hda1

*

1

561

4506201

b

Win95 FAT32

/dev/hda2

 

771

772

16065

83

Linux native

/dev/hda3

 

562

770

1678792

83

Linux native

Now for the last section: recreating the swap partition.

Type n and Enter, and when you are asked to choose either an extended or primary partition, choose primary by entering p.
  1. When prompted for a partition number, choose 4--it is the only free partition number left.
  2. Accept the first number given for the first cylinder and the last number given for the last cylinder.
  3. Once again, check you work with the p command. It would look similar to Table 3-4.

 

 

Device

Boot

Start

End

Blocks

Id

System

/dev/hda1

*

1

561

4506201

b

Win95 FAT32

/dev/hda2

 

771

772

16065

83

Linux native

/dev/hda3

 

562

770

1678792

83

Linux native

/dev/hda4

 

773

784

96390

83

Linux native

 

With four partitions to your credit, it would appear that the reconfiguration is successful. However, one more step is needed. A Linux swap partition has a different filesystem from a regular Linux partition. A glance at the table above shows that we have three Linux partitions, all of the same type. The swap partition--/dev/hda4--needs to be `toggled'.

Type t at the command line, and press Enter.
  1. Type 4, for partition number four, and press Enter.
  2. At the Hex Code prompt, enter L to list the various codes for the different filesystem types. In the third column of the four column list, you will see Linux Swap as code 82. Type that number in, and press the Enter key.
  3. Check your work once more. It should be identical to table 3-4, except that the cell at the far lower-right should now read Linux Swap. As a last step, type in w for write--to write the new partition table to disk, and then follow the instructions to reboot.

Scenario Two

In this scenario, the user wants to reserve two Windows primary partitions--perhaps for data, or for other operating systems that require them--and wants to install OpenLinux completely on logical drives within an extended partition.

There are four steps to this procedure:

  • Delete all Linux partitions.
  • Create an extended partition on the fourth primary partition device.
  • Create logical Linux partitions within the extended partition.
  • Create the primary partitions.
  • Using the d key, delete partitions 2 and 3 in turn, leaving 1--the Windows partition--intact.
  • Create an extended partition by typing n, then choosing e for extended, and the number 4--thus leaving aside partition numbers 2 and 3 for future primary partitions.
  • The system prompts you for the first and last cylinder number. To make an extended partition of about 1750MB, enter 562 for the first number and 784 for the second.

 

Now check your work. On the hypothetical system described above, the output of the p command would look like table 3-5.

 

 

Device

Boot

Start

End

Blocks

Id

System

/dev/hda1

*

1

177

4506201

b

Win95 FAT32

/dev/hda4

 

562

784

1791247

5

Extended

 

The first two steps are completed. Now, for the third, creating logical Linux partitions within the extended partition.

 

Type n for new partition, and when prompted for logical or primary, enter l for logical.
  1. Create the boot partition first. Enter 562 as the first cylinder, and 563 as the second.
  2. Check your work with the p command. You should now have one small Linux partition on (logical) partition number 5.
  3. Create a second logical partition of approximately 62MB using the same technique, by entering the cylinder numbers 564 to 580.
  4. Create the main Linux partition in the same way, using cylinders 581 to the disk's end: 784.
  5. Once again, you have to use the t command to toggle the system ID for the swap partition--number 6.
  6. The next step is to create the two primary partitions. This time choose p for primary, and partition number 2. In this example, you would use 178 for the last cylinder of partition number 2, to make 2 and 3 approximately the same length.
  7. Finally, toggle the two new partitions, to change them to the same partition type and code as /dev/hda1--in this case, code `b'. The finished fdisk screen would look something like Table 3-6.
  8. Write the new partition table, and follow the instructions to reboot the computer.

 

 

Device

Boot

Start

End

Blocks

Id

System

/dev/hda1

*

1

177

1421721

b

Win95 FAT32

/dev/hda2

 

178

368

1534207+

b

Win95 FAT32

/dev/hda3

 

369

561

1550272+

b

Win95 FAT32

/dev/hda4

 

562

784

1791247+

5

Extended

/dev/hda5

 

562

563

16033+

83

Linux

/dev/hda6

 

564

580

136521

82

Linux Swap

/dev/hda7

 

581

784

1638598+

83

Linux

 

 

When the installation routine comes around again, asking if you want to repartition your disk, select No.

The installation program will automatically find the swap partition you created, and prompt you to format. The rest of the LISA installation routine continues as usual.