Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux - dual boot

Status
Not open for further replies.

COIS2004

MIS
Apr 7, 2004
8
GB
hi just want some advice thinking of installing Linux on a PC, but i want to be able to still use Windows 98 that is already installed on the PC. can anyone tell me how i can acheive dual boot?
 
Create a boot.ini file within your C:/

The file content should look something like

[boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
rem default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 98" /fastdetect
c:\linux.bin="Linux"

next..

On the linux side you will need to extract the first 512 bytes of your linux partition.

You can do this on the CLI (Command Line Interface) with

% dd if=/dev/hda of=linux.bin bs=512 count=1

You will have to copy the output linux.bin to the root of C:/

Now you should be able to boot into either Windows or Linux successfully using the boot.ini

Using this example you can also add many other OS's easily.

I am currently running on my laptop- Win2000, RedHat, FreeBSD, and OpenBSD. No floppies necessary to boot.


M. Brooks
X Concepts LLC
 
cheers for the advice ill give that a go... ill probably come back to you when i get stuck!!!!!!!!!!
 
Oops..

You will want ot change this:

multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 98" /fastdetect

to

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows 98" /fastdetect

M. Brooks
X Concepts LLC
 
if you install all the things from new, then i would just use grub as the bootloader or some else, that comes with linux. Just remember that windows always should be on the first partition of the harddisk...
Partition example:

1. FAT: Windows 98
2. ext2: /boot Linux
3. swap: swap Linux
4. ext3: / Linux
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top