Preamble:
Many new or potential Debian users are understandably nervous about possible disruption of their xp installation and data. Installing Debian on a physically separate hard drive, can greatly mitigate their anxiety, and provide a safe, simple way to restore the system to its prior, single-boot xp state.
Assumptions:
- The target system has xp installed on the master, or primary IDE hard disk. This disk will be referred to as the xp drive.
The target system has a slave, or secondary IDE hard disk intended for Debian. This disk will be referred to as the Debian drive.
The target BIOS is configured to boot from CD/DVD first, then fallback to hard disk if no bootable CD/DVD is found
The user is familiar with the system's basic hardware and BIOS settings, or has access to such information, and is familiar with the system's particular BIOS setup method
The user is familiar with SOP hardware safety protocols, including disconnecting from the mains power supply, and using proper anti-static grounding procedures.
The target system is in good working order, and has an adequate power supply capable of powering an additional hard drive
The user is familiar with, or has access to manuals or other information regarding all system peripherals, including graphics and network cards, audio adaptors, monitors, keyboards, mice etc. Note most cordless mice should be detected during installation, but cordless keyboards often pose difficulty. Use of a standard, ps/2 type wired keyboard during installation is recommended.
The user has set aside a sensible amount of time to perform the installation procedure, and has an adequate, well-lit working area, tools etc.
The user has downloaded and prepared Debian installation media, using a recent Etch/Stable release.
Debian installation has included installing the nano text editor
What is NOT included in this how to:
- This how to will NOT describe how to install Debian. For installation instructions, please visit the official Debian installation how to, or see other how tos on this forum
The GRUB bootloader will be installed to the hard drive containing Debian. This how to will NOT cover installation using the LILO bootloader
System preparation and hardware configuration:
Power off and disconnect the system from mains power.
Using standard protocols, including anti-static procedures, move or install the pin jumper on the xp drive to the 'slave' or secondary drive configuration
Similarly, move or install the pin jumper on the Debian drive to the 'master' or primary drive configuration.
On most modern systems, the 80 pin EIDE data cable has three terminals: The blue terminal connects to the IDE socket on the system board, the gray terminal to the 'slave' or secondary hard drive, and the black to the 'master' or primary hard drive.
Although many newer 'smart' hard drives can ignore cable terminal position, it is generally better to follow SOP, and connect the drives according to their designation.
Connect the Debian 'master'/primary drive to the black cable terminal
Connect the xp 'slave'/secondary drive to the gray cable terminal
Note: The paranoid may elect to leave the xp 'slave'/secondary drive disconnected until after Debian has been successfully installed.
Connect the appropriate power cable(s) to the drive(s)
Power up the system, enter the BIOS setup to ensure the system 'sees' the new hard drive as master.
Debian installation and GRUB bootloader modifications:
Load the installation media, and proceed with installation of Debian.
Once Debian is installed, with whatever windows manager you selected, you may now proceed to configure the GRUB bootloader to detect and load MS windows xp when selected at boot
If you have left the xp 'slave'/secondary hard drive disconnected, you may wish to power off the system and connect the xp drive, and restart the system before proceeding
Either from the command line, text interface (cli), or from a 'terminal' within the gui window manager, login as root by typing 'su', then your root password
The command prompt changes from a '$' to a '#'
Note in the following examples, the convention of indicating commands typed as 'root' are illustrated using the '#' symbol. Do not type the symbol, it is already there as part of the command prompt
First make a backup of the /boot/grub/menu.lst script:
Code: Select all
# cp /boot/grub/menu.lst /boot/grub/menu.backup_lst
Code: Select all
# nano /boot/grub/menu.lst
Save your changes by typing <ctrl> <o> <enter>title windows xp
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive
boot
Exit nano by typing <ctrl> <x>
On subsequent boots, you may now choose 'windows xp' from the GRUB menu
Explanation:
GRUB's mapping feature effectively swaps the 'master'/'slave' identification, allowing xp to act as if it were installed on the 'master' hard drive.
Note: New users may wish to familiarize themselves with the nano editor on non-critical text files prior to editing the /boot/grub/menu.lst script
*Machines with SATA drives are even easier to setup, since the boot order can be changed in BIOS. The procedure is the same, otherwise.