Search for "dual boot"
You need to install a bootloader to choose your operating system on boot.
Since you're running Slackware, you have LILO installed by default. Before
you start you need to know what your drive letters are, and where your
root partition on Slack is located. The IDE devices are determined like this:
/dev/hda - primary controller, master drive - IDE0 master
/dev/hdb - primary controller, slave drive - IDE 0 slave
/dev/hdc - secondary controller, master drive - IDE1 master
/dev/hdd - secondary controller, slave drive - IDE1 slave
And you'll also need to know which is your / (root) partition in Slack.
Before starting just issue "fdisk -l" (lower case L) as root and it will
tell you your drive(s) partitions.
Now here's a little LILO tutorial for Slack.
If you're just moving the IDE cable from drive to drive, and leaving
it on IDE0 on the motherboard, then set the Windoze drive jumper to
master, and the Linux one to slave. Then put the cable on IDE0, and
put both drives on the cable. For your particular situation, put both
IDE cables on the drives. Next boot and go into your BIOS and tell it
to boot the drive with Slackware first. Then when Slack boots, login
as root and don't issue startx. Just setup LILO and then you can
reboot and set the BIOS again, this time to boot the Windoze drive.
You will have installed LILO to the MBR and this will allow you to boot
either OS because your computer will give you the LILO boot screen.
Quote:
NB: At any time during the liloconfig process, tabbing to Cancel
and pressing Enter will cancel and not make any changes to your system.
So, should you "hit a brick wall," don't panic, just cancel and get the info
you need and then start over.
Login as root and issue
# liloconfig
And it's a simple little gui app...
Choose expert - Use expert lilo.conf setup menu
Choose Begin - Start LILO configuration with a new LILO header
Optional LILO append="<kernel parameters>" line
(If you have a CD-RW or DVD+/-RW you add it here.
/dev/hda = master drive on primary controller
/dev/hdb = slave drive on primary controller
/dev/hdc = master drive on secondary controller
/dev/hdd = slave drive on secondary controller
If you don't have one, just enter)
Configure LILO to use frame buffer console
(usually best to kept default - I use 1024x768x256)
Select LILO target location - MBR
Confirm location to install LILO - /dev/hda
(almost always with a dual boot and Windoze installed first,
if not, you'll know where and why you put Windoze elsewhere)
Choose LILO timeout - 5 seconds
(personal preference - easily changed later via lilo.conf timeout)
Back at the Expert LILO Installation screen
Linux - Add a Linux partition to the LILO config
(below that is DOS - the first one you add will be the default -
if you want Windoze to default first, choose it first here)
Select Linux partition
(this is your Linux / partition - if you don't know issue
# /sbin/fdisk -l
from a console - lower case L)
Select Partition Name
(this is what you will call each one you boot - mine are
named for the different kernels, i.e.
Slack-2.4.22
Slack-2.4.26
Windoze
and this first one will be your default choice,
which helps if you just want to boot while you're
fixing coffee and return to the machine)
Back at the Expert LILO Installation screen
DOS - Add a DOS/Windoze FAT partition to the LILO config
(NB: this doc is very old - FAT32 and NTFS probably weren't
out when it was written, but they will boot also)
Select DOS/Windoze Partition
(the bootable Windoze part will have an * under boot,
just in case you don't know which one to choose)
Select Partition Name
(I'm partial to Windoze, WinDOHs, or anything else
that helps me remember what it actually is - even WinXP)
Back at the Expert LILO Installation screen
Install - Install LILO
Installing the Linux Loader...
and before you realize it, against the blue background
you should notice your shell prompt show up, so type
# /sbin/lilo
and you will see something like
bash-2.05b# /sbin/lilo
Added Slackware *
Added Windoze
bash-2.05b#
|
Then reboot your computer and you're "good to go!" No
more taking the side off the case just to move a ribbon cable.