[ILUG] Dual boot Win2k and RH7/7.1

From: David Crozier (davidcrozier at domain hotmail.com)
Date: Mon 01 Oct 2001 - 16:07:01 IST


Came across this and thought some may find it useful!! I have tried it on a
dual setup on a Toshiba Tecra 8000 and worked fine.

Dave

Dual-Boot Setup
Having got Red Hat 7.0 installed and bootable from a floppy, you can go on
to make the machine dual boot Windows 2000 or Linux without needing
floppies. Start in Linux with a blank floppy disk inserted (not the boot
floppy!) and run:

  mount -t vfat /dev/fd0 /mnt/floppy
  dd if=/dev/hda3 of=/mnt/floppy/bootsect.lnx bs=512 count=1
  umount /mnt/floppy

Then shutdown Linux and boot Windows, and from a Command Prompt run:

  C:
  cd \
  copy A:\bootsect.lnx BOOTSECT.LNX
  attrib -s -h boot.ini
  copy boot.ini boot.ini.orig
  notepad boot.ini

and edit boot.ini so that it reads e.g.
  [boot loader]
  timeout=10
  default=C:\bootsect.lnx
  [operating systems]
  C:\bootsect.lnx="Red Hat Linux 7.0"
  multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000
Professional" /fastdetect

then run:
  attrib +s +h boot.ini
  attrib +s +h bootsect.lnx

Next time you boot, after the Dell logo, you'll get a text screen saying:
  Please select the operating system to start:

  Red Hat Linux 7.0
  Microsoft Windows 2000 Professional

  Use ^ and v to move the highlight to your choice
  Press enter to choose.

Note: After any Linux kernel rebuild, you'll need to re-run LILO, make a new
Linux boot floppy, and re-copy the new Linux boot sector to Windows all over
again. Otherwise, you won't be able to boot Linux any more.

David Crozier
www.davidcrozier.co.uk



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:25 GMT