Está en la página 1de 3

JANUARY TUTOR ■

DUAL BOOTING

BOOTING
Do you want to give Linux a try but don’t have a spare PC lying around? Dual booting
lets you share two operating systems on one PC. Although installing Windows and
Linux on a single machine is much easier than it used to be, it’s not quite a no-brainer
yet. In this PC Tutor here we show you how it’s done.

inux is hot. Very hot. And you, tools for doing everything from reparti- set up a dual booting system? For the most

L like most PC owners, probably


want to find out what all the fuss
is about. Of course, you have no
tioning your hard drive to finding the free
space for installing Linux alongside Win-
dows. If you want to try Linux, buy or down-
part, the Linux distribution will do it for
you. As long as you have a partition on
which to install Linux, the installation rou-
intention of getting rid of Windows just yet. load a recent distribution and set it up for tine will take over from there. In the vast
Windows runs all your hardware, all your dual booting so you can choose either oper- majority of cases, the Linux distribution
applications and all your games. And the ating system when you start your machine. will install a boot program called LILO
newest stuff comes out for Windows first, If your machine has sufficient resources, (short for LInux LOader), which will be
so naturally you want to keep it. That leaves the best way to add Linux (or another ver- the first program to run after your computer
you with two choices if you want to use sion of Windows, for that matter) may be by goes through its BIOS routines at boot
Linux: you can either buy a second com- using a product called V M Wa re. Wi t h time. From LILO, you can choose whether
puter or dual-boot Linux with Windows. VMWare, you don’t have to repartition your to start Linux or Windows. Many Linux
Not too many months ago, you might hard drive, and you can run one or more distributions ask whether you wish to
have been better off with the first choice, versions of Linux in virtual machines under install LILO and where you wish to install
because dual booting took an enormous the host operating system (which can be it. Some, such as the popular Corel Linux,
amount of effort. Happily, things are easi- Win 2000, Win NT 4.0 or Linux). For more install it without asking.
er today, with recent releases of the various information, check out www.vmware.com.
Linux distributions (Caldera, Corel, Man- Most of us, however, don’t have the FIRST STEPS
drake, Red Hat, Suse and so on) offering memory needed for VMWare. How then to To make your dual booting life easier, you

78 January 2001 www.DITnet.co.ae ■ www.PCmag-mideast.com


■ JANUARY TUTOR
DUAL BOOTING

Figure 1. Several Linux installations will offer you the choices shown here. Figure 2. Corel’s installation system is friendlier than some, but all let you select
Partitioning is easiest if you have free space on the drive, but if you don’t, the hard drive for the new partition. In Linux, the first IDE drive is called hd0, the
create the partitions yourself. second hd1, and so on, so make sure you choose the one you truly want.

should understand what it means to set up shareware boot managers are available, the option on installation to find free space
a system for multiple boot options. The including BootMagic, part of the popular and create partitions, but this hasn’t elimi-
main component to learn about here is the PartitionMagic suite from PowerQuest, Ter- nated the potential for disaster: the process
master boot record (MBR). The MBR is locat- abyte’s excellent BootIt and the venerable might render some existing partitions inac-
ed in the first cylinder on the system’s first System Commander 2000 from V Commu- cessible. This is especially true for drives that
hard drive and it contains the information nications. already have multiple partitions. You must
the operating system needs to boot. The back up your important data before begin-
MBR also gives the BIOS the information it THE PARTITIONING PROCESS ning such a process, and it would serve
needs about the hard drives in the system, The most frightening part of installing a you extremely well to have a disk utilities
including the number and size of partitions, new operating system is working with par- package, such as Norton Utilities, handy to
the types of partitions (primary or logical) titions. This is never easy, no matter what try to re-set the partitions in case some-
and which partition on the drive is bootable the OS’s packaging or Web site tells you. thing unexpected happens. Still, the auto-
(also called active). Armed with this infor- Increasingly, Linux distributions give you sensing feature of Linux installations can
mation, the BIOS looks in the MBR for the work very well, putting Linux into an area
master boot code, the small program that of free space on the hard drive and then
tells it how to proceed with launching the installing LILO so you can boot into either
OS. The OS then begins its start-up, and the Linux or Windows.
BIOS hands control of the computer over to The biggest problem with most Windows
the OS. PCs is that they come configured with one
Setting up a dual boot system means partition only. If that is the case, you either
installing a small program called a boot need to destroy your existing partition
manager in the MBR. The boot manager (which means wiping out Windows and
intercepts the BIOS’s search for the bootable everything else on the hard drive) and start
partition and the master boot code, and over, or, more practically, use a partition util-
then lists a set of choices on the screen. ity to make the existing partition smaller
When you make your choice, the boot man- and thus reclaim some free space where
ager makes the selected partition bootable. Linux can reside.
It then hands control back to the BIOS, All Linux distributions let you select the
which continues the boot process as if there partitions on which Linux will reside. Most
were only one OS. distributions ship with a partitioning utili-
LILO is just one boot manager available, ty called FIPS, and some include their own
although it is probably the one most com- utility. You can also use Linux’s version of
monly used for Windows/Linux dual boot FDISK to create the partitions. These meth-
environments. Other operating systems, ods all work but are best for those who
such as BeOS, offer their own boot man- understand partitioning. For most Win-
agers. Windows NT and 2000 each provide Figure 3. Here we see a root partition of almost dows users, third-party software, such as
a boot manager that appears after installing 2GB being created to hold Linux. The partition is PowerQuest’s PartitionMagic or V Com-
either OS on a system already containing technically referred to as ext2. After this, you’ll munications’ Partition Commander, tends
Win 9x (as long as you don’t simply replace need to create a Linux swap partition, but it can to be easier.
be much smaller.
Win 9x). In addition, several commercial or The partitioning process is complicated by

www.DITnet.co.ae ■ www.PCmag-mideast.com January 2001 79


JANUARY TUTOR ■
DUAL BOOTING

Figure 4. Utilities like PartitionMagic let you easily create, delete or resize partitions. Here, a Windows-based FAT32 partition is being resized. If you have no
room to create Linux partitions, you can use a utility like this to shrink the existing FAT, FAT32 or NTFS partitions to make room for Linux’s ext2 and swap parti-
tions. Figure 6. The Linux window manager KDE has a graphical version of LILO called KLILO. Using this, you can set the default OS, add new ones,and more.

the fact that a Linux installation needs more nically true), this means that if you install 9x, for whatever reason. Doing this wipes
than one partition. At the very least, you’ll Linux to a drive larger than 8GB, be sure to out LILO, because the installation process
need a main partition and a swap partition. put Linux within the first 8GB. If, for exam- re-builds the MBR. In such a case, you won’t
The utility will let you create both at the ple, you have a 12GB hard drive and Win be able to boot your Linux installation unless
same time. 98 takes up the first 9GB, you may create a you created a Linux boot floppy disk. If
It’s crucial to keep in mind how Linux separate partition for Linux past that point. you did, boot with that floppy disk, and
refers to your hard drives. The first hard LILO won’t be able to find it, though. In such then type /sbin/lilo at the root prompt. For
drive in your system is drive 0 (zero) and the a case, you’ll have to use a partition utility most Linux systems, this should restore
second is drive 1. Don’t make the mistake to re-size the Win 98 partition to, say, 6GB, LILO. Third-party boot utilities can often
of telling Linux to install on drive 0 if you and then install Linux right after it. Some- help with this type of problem. If all else
really mean drive 1. This is especially impor- times the only way to resolve this is through fails, you may have to re-install Linux.
tant if you’re already running two OSs, such trial and error.
as Windows 98 and Windows NT 4.0. It’s LILO appears as either a graphical list of REMOVING LILO
easy to unintentionally delete a partition operating system choices or as a simple If you want to remove LILO, either because
that contains an operating system, or worse text prompt. The former is obviously more you deleted your Linux installation (by
yet, your important data files. Fortunately, intuitive to use, but the text prompt usual- removing the Linux partitions), or because
partitioning utilities tend to be forgiving in ly reveals a menu if you simply press the you no longer want to use it as a boot man-
one sense: the changes don’t actually hap- Tab key. ager, you can do so from within Linux by
pen until you specifically direct the soft- If you are already using a system that lets typing /sbin/lilo –u , or just lilo –u, at the root
ware to make them. This gives you time to you choose between Win 9x and Wi n p rompt. If that doesn’t work, specify
double- and triple-check your work. NT/2000 at boot time, LILO won’t affect removal from the MBR with the command
Once the partitions are in place, the instal- your ability to access these operating sys- lilo –u/dev/hda . If none of these commands
lation can continue; it will end, typically, tems. You simply choose your Win 9x sys- work for your particular system, call up the
with the installation of the LILO boot man- tem from the LILO menu, and the Windows LILO documentation or visit any number of
ager. As noted, most distributions of Linux dual boot menu will appear. In other words, Linux information sites on the Web.
will install LILO automatically. Many, such LILO installs itself between the BIOS and the A som ewh at mo re ra di ca l me thod
as Mandrake Linux and Suse Linux, will Windows dual boot menu. involves restoring the MBR to its pre-boot
give you the choice of installing it or not, A problem can arise if you re-install Win manager state. To do this, boot Win 9x to a
and just as important, whether to install command prompt and type fdisk /mbr . This
LILO on a floppy disk only (Corel Linux command removes LILO from the MBR. It
doesn’t provide the latter option). Yo u also, unfortunately, removes the Windows
should definitely opt for a LILOinstallation dual boot menu, if you had one. According
– unless you’re already experienced with to Microsoft (http://support.micro s o f t
Linux and LILO and can install it manually, .com/support/kb/articles/Q171/6/11.asp),
or unless you are already working with a you must not use this method on a drive that
third-party boot manager. The boot manager is part of an NT fault tolerance set.
will detect the Linux boot partition and let Dual booting Windows and Linux is
you add it to your start-up boot menu. becoming easier, as Linux developers recog-
Note one thing: LILO works only for oper- Figure 5. Most Linux distributions (Red Hat is nise the need to make the process accessi-
ating systems installed within the first 1,024 shown here) let you select where LILO resides. ble to a growing number of Windows users.
Selecting Master Boot Record installs LILO so you
cylinders of your hard drive. Practically can choose the OS to boot on start-up.
But, as we’ve noted here, the process still
speaking (and a good guideline if not tech- has its share of concerns and issues.

80 January 2001 www.DITnet.co.ae ■ www.PCmag-mideast.com

También podría gustarte