Linux Penguin

Installing
Red Hat Linux ver 7.2
and
Windows XP Professional
on a PC

Windows XP Logo

Dual Boot with GRUB

This project was completed by Wick Gankanda on November 3, 2001

Table of Contents

Know Your Hardware

SYSTEM INFO:

PC taking notes! CPU: Intel Pentium III 450 MHz
System RAM: 384 MB PC100
MainBoard: ASUS P2B-F, Intel chipset
Disk Drives HDD: 2 IDE drives

IBM DESKSTAR 20 GB &
WESTERN DIGITAL 8 GB
BIOS RECOGNIZED, LBA
CD-ROM: Acer ATAPI/IDE 56X
NIC: 3COM 3C 905C - TX - M 10/100, hardware address: 00-01-02-59-EA-59
Video: ATI Rage Fury MAXX 64 MB AGP
Monitor: Sony 100sf
Audio: Creative SB PCI 128 [s3100/s3300]
Modem: US Robotics Internal 56k PnP

Networking:

Hostname: P3
DHCP ?
Subnet mask: ?
Default Gateway: ?
DNS: ?
Domain: WICK

Install Windows XP Professional FIRST

Hard Disk Drive Disk Partitioning:
Set IBM DESKSTAR 20 GB HDD as

Partition: 1, set to ACTIVE

Floppy disk Download utility makeboot.exe from Microsoft web site

Make Boot disks [need 6 floppy disks] using utility makeboot.exe

Insert XP CD into CD-ROM

Start PC with XP boot disk #1

Select HDD: IBM DESKSTAR

Delete existing DOS partitions

Create NTFS file system [using entire drive, 19611 MB]

Install Windows XP Professional

Install Red Hat Linux ver 7.2

Red Hat Linux OS Purchase disks from Red Hat OR
Download the Linux CD image files (iso) and burn them onto CDs.
Note: you'll need at least two CDs

Make a Linux boot floppy using rawrite utility:
Insert the Red Hat Linux ver 7.2 Disk 1 into the CD-ROM drive
Open a DOS window (to use DOS) and type the following (in bold)
Comments are in italics, do not type them at command line
d: (to change current drive to CD-ROM drive, if d is the CD-ROM drive letter)
cd dosutils (to change the current directory to dosutils)
rawrite (to run the rawrite utility)
..\images\boot.img (to specify boot image)
a: (to specify target floppy disk drive)
...follow instructions

REBOOT with PC to install Linux with the boot floppy
Insert Red Hat Linux ver 7.2 Disk 1 into the CD-ROM drive of this PC

To install linux in graphical mode: enter

Runs Red Hat from cd

Select language

Keyboard: generic 105-key kb

Mouse: 3-button ps/2

Welcome to Red Hat Linux - system installer > next

Install type: Custom system

Hard Disk Drive HDD TO USE: WDC AC28-400R [GEOM1027/255/63] - /dev/hdb
Automatic partition > edit

Disk Druid Partition Display - as shown on Red Hat Installation Guide

Disk Druid

Disk Druid Partition Display - for this particular installation

Device Start End Size Type Mount Point Format
/dev/hda            
  /dev/hda1 1 2500 19611 NTFS/HPFS   No
  Free 2501 2501 8 Free Space    
/devvhdb            
   /dev/hdb1 1 19 149 ext3 /boot Yes
   /dev/hdb2 20 672 5122 ext3 /usr Yes
   /dev/hdb3 673 802 1020 ext3 / Yes
   /dev/hdb4 803 1027 1765 Extended    
     /dev/hdb5 803 930 1004 ext3 /home Yes
     /dev/hdb6 931 979 384 swap    
     /dev/hdb7 980 1011 251 ext3 /tmp Yes
     /dev/hdb8 1012 1027 125 ext3 /var Yes

Boot Loader Installation

Select GRUB (GRand Unified Bootloader)
Install Boot Loader record on: /dev/hda Master Boot Record (MBR)
Check: Force use of LBA32
Select Red Hat Linux Boot label as Default boot image
Listed below the Linux Boot label is the Windows XP boot label

Boot Loader Display - as shown on Red Hat Installation Guide

Boot Loader

Graphical Interface (X) Configuration

Rage Fury Maxx Video Card Selected > ATI Rage 128
Video card RAM: 68 MB

Formatting /var, /tmp, ... , file system
Transferring install image to hard drive...

Preparing to install...
Total of 1105 packages / 2879 MB

Create Boot Disk

Select monitor, color Depth [True Color (24bit)] and Screen Resolution [800x600] Test Setting > OK

Choose Default Desktop Environment: GNOME

Choose login type: Graphical

Remove disks and REBOOT

GRUB Dual Boot Menu:
Red Hat Linux (2.4.7-10)
win_xp

Boot Linux > configuring hardware > detected serial modem > configure ? > yes ....

Desktop > login >

GENOME Desktop

Linux Penguin   Windows XP Desktop

Enjoy!

Basic Configurations in Windows XP Professional

Setting Environment Variables

Windows XP Start Button to Control Panel Click on the start button > Settings > Control Panel > Scroll down and select System > Advanced tab > Environment Variables
Notice two windows:

Select the path entry in the appropriate window and click on the Edit button
This will allow you to edit the variable
After editing the variable > OK > OK > OK > ...back to the Control Panel
Restart PC
A simple example: batch files on this PC are located at C:\PATH. To run them from the DOS Window, the following was added to the path variable in the System variables window: "C:\PATH"

Basic Configurations in Linux

GRUB (GRand Unified Bootloader) - Configuration File Structure
(from Red Hat Linux Reference Guide for ver 7.2)

Edit the configuration file using gedit application by following this path /boot/grub/ to grub.conf
foot > Programs > Applications > gedit
Open > /boot/grub/ > grub.conf
Note the following entries:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb3
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=12
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.7-10) on P3 Server
root (hd1,0)
kernel /vmlinuz-2.4.7-10 ro root=/dev/hdb3
initrd /initrd-2.4.7-10.img
title Windows XP Professional on P3 Server
rootnoverify (hd0,0)
chainloader +1

To get HELP on GRUB:
Run Nautilus > Help tab > lower left window > Documents by Subject >
Manual > System Administration > select grub (man)

Configuring Samba
(from Red Hat Linux Customization Guide for ver 7.2)

For a network with both Windows and Linux machines allowing files and printers to be shared by all systems

Edit the configuration file using gedit by following this path /etc/samba to smb.conf
foot > Programs > Applications > gedit
Open > /etc/samba/ > smb.conf

How to mount and unmount a floppy disk or a CD

Insert the disk into the drive
Click on the right mouse button
Select disks > Floppy or CD-ROM
Linux will mount the disk and an icon representing the drive will appear on the desktop To unmount, just right-click on the disk and select unmount volume > disk icon dissapears from desktop

References