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.
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:
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.
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.
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.
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.
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.
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.
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.
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.
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:
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.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
on the CD, to the /etc directory on the floppy.
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:
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.
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:
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.
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.
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.
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:
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.
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).
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.
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.
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.
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:
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.
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:
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.
The Select Partition screen should now look like See Reconfigured, with a Boot Partition Created From the Former Swap.
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:
The result would look similar to See 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.
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.
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.
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.
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:
The rest of this section will cover the procedures to use in fdisk, when faced with the same two scenarios covered above in Lizard.
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:
First, confirm you partition setup by pressing the p key and then the Enter key. A screen somewhat like Table 3-2 should appear.
Now check your work with the p command. The output would resemble Table 3-3.
Now for the last section: recreating the swap partition.
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'.
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:
Now check your work. On the hypothetical system described above, the output of the p command would look like table 3-5.
The first two steps are completed. Now, for the third, creating logical Linux partitions within the extended partition.