LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-22-2008, 05:42 PM   #1
MacUser
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware 11.0 and Ubuntu 8.04
Posts: 20

Rep: Reputation: 0
GRUB Dual boot Slackware 11.0/Windows 98 not working


I am running Slackware 11.0 on a Toshiba Libretto 70CT on a 20GB drive. Slackware works fine, and has been working for a few months. Lately, I have been needing a Windows program to run on this computer. GRUB version 0.97. I took an image of the original 1.6GB hard drive (with Windows 98) and restored it to a partition of the same size on the new drive (the partition is /dev/hda2). I've kept the Windows partition inside the 8.4GB cap that the BIOS sets (I can work around this by putting /home on a separate partition outside the cap, which can be accessed once the kernel loads). I believe I have my /etc/menu.lst configured properly, because GRUB doesn't give me any errors at boot time (and because most of it was configured by grubconfig). Here's the Windows part of /etc/menu.lst, since the rest is working fine.
Code:
# Windows bootable partition config begins
  title Windows 98
  map (hd0,0) (hd0,1)
  map (hd0,1) (hd0,0)
  rootnoverify (hd0,1)
  makeactive
  chainloader +1
# Windows bootable partition config ends
All that happens when I select the Windows boot item is this:
Code:
  Booting 'Windows 98'

map (hd0,0) (hd0,1)
map (hd0,1) (hd0,0)
rootnoverify (hd0,1)
makeactive
chainloader +1
Then it just hangs there, with a little blinking cursor underneath. If I try to type anything at this point it just beeps at me. I think the problem is with the chainloader +1 command, that it is not pointing to the right sector or something, but I'm not sure what to put there instead.
 
Old 09-22-2008, 06:45 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
Quote:
rootnoverify (hd0,1)
Are you sure it is not: rootnoverify (hd0,0)
My logic tells me that as you maped hda1 to hda2 ( map (hd0,0) (hd0,1) ) and then maped hda2 to hda1 ( map (hd0,1) (hd0,0) ); then you have to select the false hda1 (hd0,0) as root partition for windows, no ?

Last edited by keefaz; 09-22-2008 at 06:46 PM.
 
Old 09-22-2008, 07:02 PM   #3
MacUser
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware 11.0 and Ubuntu 8.04
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by keefaz View Post
Are you sure it is not: rootnoverify (hd0,0)
My logic tells me that as you maped hda1 to hda2 ( map (hd0,0) (hd0,1) ) and then maped hda2 to hda1 ( map (hd0,1) (hd0,0) ); then you have to select the false hda1 (hd0,0) as root partition for windows, no ?
No, according to GRUB the syntax of map is

Code:
map TO_DRIVE FROM_DRIVE
so I mapped hda2 to hda1 and then hda1 to hda2. I'm not even sure why I need that section of code, it doesn't make much sense and the results are the same without it (it doesn't work).
I've tried it the other way also and it doesn't work (it says GRUB Loading stage2............... then reboots the computer instead).
 
Old 09-22-2008, 07:14 PM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
Yes I was not saying about the map lines, but the rootnoverify line
I mean did you try the same config but with this line: rootnoverify (hd0,0)

Also maybe wrong syntax for map lines, should be:
Code:
map (hd0) (hd1)
map (hd1) (hd0)
According to info grub

Last edited by keefaz; 09-22-2008 at 07:21 PM.
 
Old 09-22-2008, 07:41 PM   #5
MacUser
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware 11.0 and Ubuntu 8.04
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by keefaz View Post
Yes I was not saying about the map lines, but the rootnoverify line
I mean did you try the same config but with this line: rootnoverify (hd0,0)

Also maybe wrong syntax for map lines, should be:
Code:
map (hd0) (hd1)
map (hd1) (hd0)
According to info grub
I was talking about the rootnoverify line too. Yes I tried it with the other syntax

Also, the map lines you gave don't work (I get an I/O error: replace disk and try again). They don't make sense anyway because I want to map the partitions, not the entire drive. Drive (hd1) does not exist on my machine, but partition (hd0,1) does.
 
Old 09-22-2008, 08:11 PM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
Ah I guess that's where the confusion come from,
the grub map command seems to work only from drive to drive, not from partition to partition
 
Old 09-22-2008, 08:19 PM   #7
MacUser
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware 11.0 and Ubuntu 8.04
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by keefaz View Post
the grub map command seems to work only from drive to drive, not from partition to partition
That's odd because grubconfig set it up mapping between partitions, and in the grub help file (/boot/grub/grub.txt) it also showed the same way. But you would think that the book would work without mapping anything, since all those two map lines do is essentially nothing. But the result is the same regardless.
 
Old 09-23-2008, 03:46 AM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Windows is picky and wants to be in the first bootable partition. If it is not you need to hide what is and let windows think it is. Here is a tutorial that explains chainloading in detail.

http://www.justlinux.com/forum/showt...hreadid=147959

Now this is overkill but does explain how and why he had to hide the partitions and map the drives. Windows also needs to be in a primary partition.

Last edited by Larry Webb; 09-23-2008 at 03:49 AM.
 
Old 09-28-2008, 08:24 AM   #9
MacUser
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware 11.0 and Ubuntu 8.04
Posts: 20

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb View Post
Windows is picky and wants to be in the first bootable partition. If it is not you need to hide what is and let windows think it is.
OK well I tried LILO because hiding the partition permanently messed up GRUB and that didn't work and now I think my MBR is corrupted and a whole bunch of partitions are screwed up so I think I'll just restore from the complete HD image I took before and try again. If you think of anything else that might work, please let me know.
 
Old 09-28-2008, 08:54 AM   #10
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Install windows first and then the rest. If you are installing two distros install linux second and let the default setup your partitions and grub automatically.
 
Old 10-24-2008, 05:25 PM   #11
MacUser
LQ Newbie
 
Registered: Dec 2005
Distribution: Slackware 11.0 and Ubuntu 8.04
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks for the advice.
 
  


Reply

Tags
boot, dual, grub, slackware


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 boot - Grub won't boot Windows on /windows/D partition biosol Suse/Novell 9 04-09-2006 08:14 PM
Grub/Dual boot - Windows partition restored via dd won't boot pazzport Ubuntu 1 01-06-2006 01:29 PM
configure grub to dual boot - not working. John5788 Linux - General 8 04-12-2005 01:23 PM
SuSE not working out for me. How to remove it and grub? (dual boot w/98) thejmfc Linux - Newbie 10 07-07-2004 12:26 PM
grub/dual boot not working? pcdebb Fedora 6 12-03-2003 11:17 AM


All times are GMT -5. The time now is 02:22 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