LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to add windows to lilo? (https://www.linuxquestions.org/questions/linux-software-2/how-to-add-windows-to-lilo-198051/)

mrgrieves 06-26-2004 03:44 PM

how to add windows to lilo?
 
Just installed knoppix to the hard drive, and I really like the look of lilo. But for some reason, it won't boot into windows?

I type lilo at the command line and it gives me this error:

"/dev/hdb1" doesn't contain a primary partition table at or above line 159 in file '/etc/lilo.conf'

What does that mean?

I modified /etc/lilo.conf to looks like this for windows:

other=/dev/hdb1
label="WinXP/2K(hdb1)"
table=/dev/hdb1

I added the table line because I'm pretty sure it should be there, and it doesn't work otherwise.

Any ideas?

-THANKS

mrgrieves 06-26-2004 03:55 PM

Also, when I choose windows without the table line in lilo.conf, the loader gives me this error:

Loading WinXP/2K(hdb1)
Error 0x07
boot: WinXP/XK(hdb1)


????? :confused:

doralsoral 06-26-2004 04:02 PM

try table=/dev/hdb instead of /dev/hdb1

mrgrieves 06-26-2004 04:10 PM

Just tried it. I get the same error on boot unfortunately :(

2damncommon 06-26-2004 05:55 PM

Did you install Windows to the primary slave? How did you boot it before the Knoppix install.

mrgrieves 06-26-2004 08:07 PM

yes. Well actually, it was the master originally, but I chose to make it slave because it had a defective MBR which wouldn't accept lilo. This was yesterday. Knoppix is now installed on the master drive

But just now I added the primary slave under the bios (duh, lol,) and it STILL doesn't work. Now it just hangs at 'Loading WindowsXP', though the error is gone so I guess thats a good sign. :)

I've tried both with the 'table' entry and without. Any ideas as to how I could get windows to load?

-Thanks a bunch

2damncommon 06-26-2004 08:16 PM

Quote:

Well actually, it was the master originally...
You will want to check "man lilo.conf" for the map-drive function.

Something like:
other=/dev/hdb1
label="WinXP"
table=/dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

Rerun "/sbin/lilo" as root, of course.

mrgrieves 06-26-2004 09:25 PM

THANKYOU!! :D

I put those exact lines in and it worked.

Just out of curiosity, are there any dangers associated with using those parameters, ie- does it affect how windows runs the whole time, or just how it starts up?

2damncommon 06-26-2004 09:44 PM

Quote:

...are there any dangers associated with using those parameters...
The map-drive option tells Windows that the Primary Slave is the Primary Master and Vise Verse.
When I used this with an XP preview version my only concern was making sure Windows did not automatically try to scan, fix or defrag my Linux partitions.
The map-drive option worked fine the whole 6 months I had it running.

You should notice that Windows thinks it is on C:

mrgrieves 06-27-2004 02:09 PM

sweet, thanks for that :)


All times are GMT -5. The time now is 12:41 AM.