Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-05-2004, 08:44 AM   #1
LQ Newbie
Registered: May 2004
Location: South Africa
Distribution: Suse 8.1
Posts: 1

Rep: Reputation: 0
Dual Booting Linux and Windows


I've got two hard drives, one with Windows Server 2003, and the other with Suse Linux 8.1.

When I installed both OSs I didn't have the other hard drive connected.
I want to know if there is a easy way to dual boot it? I've got the Windows hd as master, and the Linux as slave.

If there isn't a easy way, then what is the hard way?

bb_mat at told me to come and ask here.

He also replied me with this

There isn't really an easy way as such.

If your Windows drive is master - /dev/hda and your Suse is slave - /dev/hdb then this is what you could do :-

Find your SuSe boot disk or rescue disk - I think you'd have to use a rescue disk, as your SuSe boot disk would most likely be looking for linux on /dev/hda1

With the rescue disk, try and mount the harddrive with Suse on (/dev/hdb1 ?)

Then you'll have to edit lilo and add in entries for windows and the new location of your Suse and also tell lilo to write that data to the MBR of /dev/hda

Can anyone give me additional instructions?
Old 05-05-2004, 09:25 AM   #2
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
swap your drives

mkdir /mnt/windows (or whatever you want)
add to /etc/fstab a new line:
/mnt/windows /dev/hdb1 ntfs defaults 0 0
edit /etc/lilo.conf to include extra stanza
label="windows" #earlier versions of LILO go with no qoutes
boot-as=0x80 #those are zeros - fools Win to think its on the first BIOS drive
run /sbin/lilo

reboot. You should have linux and windows available and mountable under Linux. Good luck.
BTW, I have wrote on this a lot here (and I know little compared to most). If you want to know why I think this is best way, go through my older posts about it. I think it has the least impact (more scalable this way) on the system as a whole.

Last edited by vectordrake; 05-05-2004 at 09:27 AM.
Old 05-05-2004, 09:46 AM   #3
peter scott
LQ Newbie
Registered: May 2004
Location: Australia
Distribution: fedora
Posts: 2

Rep: Reputation: 0
its a easy,

I am assuming that when you installed linux the linux disk was the master i.e hda, and then you removed the linux disk or made it the secondary disk and intalled windows. If this is true then you have two separate bootable disks both which think they were the master disk.

what you need to do is install the linux disk so that is is as it was when you installed linux.
boot into linux and edit /etc/grub.conf

add an entry for windows. like thus:

title WINXP
rootnoverify (hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

I am going from memory here so sintax could be slightly wrong. some google searching should see you right though. What the above does is tells grub to swap the two harddrives when ever windows is loaded, this works because windows uses the bios to access the disk.

Actullay you can test if this is going to work by just swapping the disks (linux primary windows secondary) and the using the bios to boot from the second harddisk (windows) if that works the the grub fix will.

hope this helps
Old 05-05-2004, 10:41 AM   #4
Registered: Apr 2004
Location: Florida
Distribution: RedHat 9.0/Afterstep
Posts: 103

Rep: Reputation: 15
just an addition to peter's suggestion:
make sure that after you edit your
you run /sbin/grub-install
to install the boot loader. ive had to do this
a couple of times and it has always worked


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
dual booting Linux with Windows XP jimpalla Linux - Newbie 6 01-20-2005 12:00 PM
Dual booting windows + linux untwisted Linux - General 8 09-23-2004 02:26 PM
Dual booting Linux and Windows XP windozeman Linux - Newbie 2 03-24-2004 02:10 PM
dual booting linux and windows kevincadogan Linux - Software 3 02-01-2004 01:42 PM
dual booting windows with linux garorag Linux - General 1 01-19-2003 10:17 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration