LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2007, 02:15 PM   #1
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Rep: Reputation: 15
Dual boot problem w/ Sabayon


Here's the problem: I have sda, which has Windows XP on it and sdb, which has Sabayon installed on it. I installed GRUB to the MBR on sdb and switched the driver order in the BIOS. I've never had a problem making this work before, but I can't seem to boot to Windows now. Here's the menu.lst that Sabayon generated at installation time:

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /kernel-genkernel real_root=UUID=f5cba4d6-54bb-42a6-b341-6bf64fc9b4dd
#          initrd /initramfs-genkernel
#boot=sdb
default=0
timeout=6
splashimage=(hd0,0)/grub/splash.xpm.gz
title Sabayon Linux x86-64 3.4 Mini Edition
        root (hd0,0)
        kernel /kernel-genkernel-x86_64-2.6.22-sabayon  dolvm2 root=/dev/ram0 ramdisk=8192 real_root=UUID=f5cba4d6-54bb-42a6-b341-6bf64fc9b4dd  quiet  init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 pci=nomsi
        initrd /initramfs-genkernel-x86_64-2.6.22-sabayon
title Windows x86_64
        rootnoverify (hd1,4)
        chainloader +1
One thing I don't understand is that GRUB refers to my Linux drive as hd0. I thought GRUB always referred to drives in the same order, irrespective of their order in the BIOS. Any help would be appreciated.
 
Old 10-13-2007, 02:20 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
title windows
rootnoverify (hdx,x)
map (hd1) (hd0) <----------- vital!
map (hd0) (hd1) <----------- vital!
chainloader +1
 
Old 10-13-2007, 02:33 PM   #3
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Tried that... All I get is:

Code:
Booting... 'Windows x86_64'

rootnoverify (hd1,4)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
It doesn't even go back to the GRUB menu, I have to reboot.
 
Old 10-13-2007, 03:01 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
OK, then use

title windows
rootnoverify (hd1,4)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
 
Old 10-13-2007, 04:32 PM   #5
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Code:
Error 12: Invalid Device.
I've switching the 'map' lines and putting 'makeactive' both above and below the 'map' lines, in all four combinations, with no luck. I'm totally stumped here.
 
Old 10-13-2007, 06:23 PM   #6
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
That is a weird layout you have. Is your windows really on the fifth partition of the second drive. If so, it shouldn't be too difficult to see why it fails to boot:
- either XP is not on that fifth partition and you need to adjust GRUB to reflect its actual location
- or it really is in the fifth partition, which by definition is not a primary but a logical partition - and windows needs to be on a primary partition if it is to boot at all. Solution: move XP to a primary partition.

I don't know what happened. Did you edit the root statements for both operating systems?
 
Old 10-14-2007, 11:10 PM   #7
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
For some stupid reason, XP decided to create an extended partition at the beginning of the drive. I don't know what the deal is with that. I've done this before using 'map', but it doesn't want to work now. Perhaps, I will try to (ughhh) reinstall Windows.
 
Old 10-15-2007, 04:30 AM   #8
sohny
Member
 
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
hey Y do u want to re-install windows

just change drive order..

& then change GRUB to be in the MBR of hda or sda in ur case..
 
Old 10-15-2007, 04:53 PM   #9
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
The reason I switched the drive order is because Windows can overwrite the MBR on the drive. I know I could just reinstall GRUB in that case, but I also know that I've made it work with my current configuration before.
 
Old 10-15-2007, 05:41 PM   #10
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Are you sure that you left a space between the (hd) parts of the map statemenets? I remember one occasion where I didn't and XP wouldn't boot either. Little things like these are easily overlooked but they can have some nasty consequences.
 
Old 10-18-2007, 07:10 PM   #11
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Yeah, I've actually had that problem in the past too, so I don't make that mistake any more.
 
Old 10-18-2007, 08:36 PM   #12
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
So could this be an issue with the Sabayon bootloader? Have you tried booting windows from a livecd?
 
Old 10-23-2007, 09:48 PM   #13
JediDrunk
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
It worked fine with Gentoo, but I haven't tried with a LiveCD.
 
Old 10-28-2007, 03:34 AM   #14
sailjockey
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Knoppix rescue to avoid reinstall on Windows XP

I had the same problem with Sabayon with the same configuration on the hard drives finally rebooted with Knoppix 5.1.1 which often seems to work as a rescue disc. Let me know if you come up with another solution to mounting the Sabayon.
 
  


Reply



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
linux boot problem on dual boot mac mini dla-nor Linux - General 2 06-13-2007 06:02 AM
dual boot dual drive XP and FC6 problem arjay Fedora 2 05-20-2007 11:38 AM
Desktop Acceleration works Livedvd, First boot, Stop after that Sabayon 3.3 Beryl jmilcher Linux - Software 1 05-17-2007 01:24 PM
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 03:13 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration