LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 12-24-2003, 08:11 PM   #1
blade00
LQ Newbie
 
Registered: Oct 2003
Location: Ontario, Canada
Distribution: Slackware 9.1
Posts: 11

Rep: Reputation: 0
Dual boot - Slack 9.1, WinXP Pro


I currently have a dual boot system setup, with two hard drives on the primary IDE channel. The master is the hard drive with Slackware 9.1 and the slave is the hard drive with windows xp pro.

The problem is that when i try to boot into windows, the system does nothing, it just sits there idle.

I am using lilo as a boot loader, and the config is setup as follows:

Quote:
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 150
change-rules
reset
#vga = 791
image = /boot/vmlinuz
root = /dev/hda2
label = Slackware9.1
read-only

other = /dev/hdc1
label = WinXP
table = /dev/hdc
although, lilo will boot into slackware perfectly fine.
lilo has been installed into the master boot record for the master drive.

if it matters, which i'm not sure if it does. windows was setup on the same machine, but it was connected as a master drive without the other harddrive connected to the computer. it wasn't until now that i decided i wanted a dual boot system (i did because some games wouldn't work with winex like they do on windows.)

Last edited by blade00; 12-24-2003 at 08:12 PM.
 
Old 12-24-2003, 10:07 PM   #2
RedHatMasta
Member
 
Registered: Nov 2003
Location: Central Kentucky
Distribution: Mandrake 10.0 Official
Posts: 77

Rep: Reputation: 15
Re: Dual boot - Slack 9.1, WinXP Pro

Quote:
Originally posted by blade00
I currently have a dual boot system setup, with two hard drives on the primary IDE channel. The master is the hard drive with Slackware 9.1 and the slave is the hard drive with windows xp pro.

The problem is that when i try to boot into windows, the system does nothing, it just sits there idle.

I am using lilo as a boot loader, and the config is setup as follows:



although, lilo will boot into slackware perfectly fine.
lilo has been installed into the master boot record for the master drive.

if it matters, which i'm not sure if it does. windows was setup on the same machine, but it was connected as a master drive without the other harddrive connected to the computer. it wasn't until now that i decided i wanted a dual boot system (i did because some games wouldn't work with winex like they do on windows.)
Don't believe you can have lilo, or grub, load xp. Plus, having it on the mbr is bad too. XP has to be first and throws fits if it isn't. If you can, move your lilo boot sector to the first sector on your linux partition, make xp your main loader (xp's is so boring though...grubs looks much prettier), and make a file in linux (dd if=/dev/hda2 of=/mnt/floppy/linux.bin bs=512 count=1). Take this file, put it in your c:\ partition, and in the boot.ini file add c:\linux.bin="Slackware 9.1". This should point it to lilo which will in turn boot linux. Hope it works out. If you reinstall xp, that might work (the recovery way, not starting out with a whole new parition). I've found it has a way of keeping all your personal files, so if you can boot into xp with the cd any possible way, back up your saves, etc.

Hope you can get that to work...
 
Old 12-24-2003, 11:41 PM   #3
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
Re: Re: Dual boot - Slack 9.1, WinXP Pro

Quote:
Originally posted by RedHatMasta
Don't believe you can have lilo, or grub, load xp. Plus, having it on the mbr is bad too.
Sure you can. I do it all the time.


Quote:
Originally posted by Blade00
if it matters, which i'm not sure if it does. windows was setup on the same machine, but it was connected as a master drive without the other harddrive connected to the computer. it wasn't until now that i decided i wanted a dual boot system (i did because some games wouldn't work with winex like they do on windows.)
I think that is why you're having problems.

Are you sure that Linux see's your "Windows" hard drive as hdc?

Also......you know you also then have a MBR on the Windows Hard drive?

Hmm....
 
Old 12-25-2003, 10:36 AM   #4
blade00
LQ Newbie
 
Registered: Oct 2003
Location: Ontario, Canada
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
yeah i know... i tried to load it that way instead of loading as hdb1 but lilo doesn't recognize it as a partition.... is there any way possible to fix this without reformatting anything?

and i tried to set the lilo config to hdb1, hdc1, hdd1, for the winxp partition .. but the only one that lilo found was hdb1 .. so i figured that i must have had it right the first time (never hurts to try though... even if it doesn't make sense lol)

Last edited by blade00; 12-25-2003 at 10:40 AM.
 
Old 12-25-2003, 03:52 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Have you tried re-installing LILO from an xterm with

/sbin/lilo

with say a slight modification here

other = /dev/hdb1
label = WinXP
table = /dev/hda

post the output of

fdisk -l
 
Old 12-25-2003, 05:45 PM   #6
blade00
LQ Newbie
 
Registered: Oct 2003
Location: Ontario, Canada
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
it added it fine, but the comp still stayed there when i tried to boot into it..

but yea, i know that lilo can boot winxp because my friend does it all the time.
 
Old 12-26-2003, 09:46 PM   #7
RedHatMasta
Member
 
Registered: Nov 2003
Location: Central Kentucky
Distribution: Mandrake 10.0 Official
Posts: 77

Rep: Reputation: 15
Can grub? If it can, can you show me your setup for it?

Does lilo look like grub/nicer/not as pretty? If it looks as nice then I'd like to switch. How?
 
Old 12-27-2003, 01:15 PM   #8
blade00
LQ Newbie
 
Registered: Oct 2003
Location: Ontario, Canada
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
umm, i dont know much about gru because i don't use it. i was told that lilo was a much better boot manager than grub, so i used lilo.

i posted my lilo.conf file above
 
Old 12-29-2003, 11:14 PM   #9
pele_smk
Member
 
Registered: Sep 2003
Location: the ugly southeast
Distribution: Slackware 9.1
Posts: 53

Rep: Reputation: 15
I do it on all my computers. When it boots, does it act like it's going to load win? then just stall on black screen or what? make sure windows is the hdc like he said above, you can do this using fdisk I believe. Also I think your windows XP partition has to be a primary partition. Run fdisk and first just type fdisk. It will give you a list of drives, To try. Choose the one your windows is on and fdisk /dev/hd?. Then m for help. Type p to print the partition table and look for the at which partitions are primary and ext'd logical. Hopefully that will get you a little further. Also try typing lilo at a command prompt and make sure it doesn't return any errors.
 
Old 12-30-2003, 08:37 PM   #10
blade00
LQ Newbie
 
Registered: Oct 2003
Location: Ontario, Canada
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
no, it just sits there, it doesnt do anything
 
Old 12-30-2003, 09:07 PM   #11
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I had W2K on /dev/hda and got a new drive so I switched it around to hdb and added the new one where it had been. I changed lilo.conf to read

other = /dev/hdb1
label = NT
table = /dev/hdb
master-boot

and the relevant line from fdisk -l is

/dev/hdb1 * 1 1659 13325886 7 HPFS/NTFS

I was kinda flailing around - like I just said on another thread, my setup's a mess, but it works. Also, I have no 'change-rules \ reset' lines in lilo.conf. And the systems don't seem to mind that hda1 and hdb1 are both bootable. LILO's installed via Slackware on hda. Maybe some of that will help - I think it being bootable and having the 'master-boot' line and, of course, specifying the right drive are the key elements but I kinda wing it.
 
  


Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Boot Slack and WinXP c31c Linux - Newbie 42 03-23-2004 01:51 PM
WinXP Pro / Mandrake 9.2 Dual Boot X PsychoTron X Linux - Newbie 17 12-18-2003 02:34 PM
RH9/WinXP Pro dual boot whisper8003 Red Hat 3 08-30-2003 09:08 PM
I need help with grub and trying to dual boot rh9 and winxp pro slicker Red Hat 2 08-30-2003 10:44 AM
Dual boot WinXP Pro and Linux mandrake 9.0 ShadoWolf Linux - Newbie 4 03-23-2003 03:55 AM


All times are GMT -5. The time now is 10:51 PM.

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