LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-26-2004, 03:44 PM   #1
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Rep: Reputation: 15
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
 
Old 06-26-2004, 03:55 PM   #2
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Original Poster
Rep: Reputation: 15
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)


?????
 
Old 06-26-2004, 04:02 PM   #3
doralsoral
Member
 
Registered: Aug 2003
Location: raleigh
Distribution: Gentoo 2005.1 x86_64
Posts: 931

Rep: Reputation: 31
try table=/dev/hdb instead of /dev/hdb1
 
Old 06-26-2004, 04:10 PM   #4
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Original Poster
Rep: Reputation: 15
Just tried it. I get the same error on boot unfortunately
 
Old 06-26-2004, 05:55 PM   #5
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
Did you install Windows to the primary slave? How did you boot it before the Knoppix install.
 
Old 06-26-2004, 08:07 PM   #6
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Original Poster
Rep: Reputation: 15
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
 
Old 06-26-2004, 08:16 PM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
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.
 
Old 06-26-2004, 09:25 PM   #8
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Original Poster
Rep: Reputation: 15
THANKYOU!!

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?
 
Old 06-26-2004, 09:44 PM   #9
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
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:

Last edited by 2damncommon; 06-26-2004 at 09:46 PM.
 
Old 06-27-2004, 02:09 PM   #10
mrgrieves
Member
 
Registered: Apr 2004
Location: north of 52, south of 54
Distribution: slackware 10.0
Posts: 108

Original Poster
Rep: Reputation: 15
sweet, thanks for that
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I add a new background to lilo? LinuxSeeker Mandriva 1 07-26-2005 10:37 AM
how to add the line 'compact' to /etc/lilo.conf. kuertensun Linux - Newbie 6 06-23-2005 10:02 PM
How to add LILO to existing Linux? Freederick Linux - Newbie 9 03-28-2004 05:05 PM
How to add entry for Windows in lilo Wynd Linux - General 2 09-04-2003 04:58 PM
want to add lilo option to ntloader onlyhuman9 Linux - Software 1 09-21-2001 02:49 AM


All times are GMT -5. The time now is 07:25 AM.

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