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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-13-2007, 02:15 PM
|
#1
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Rep:
|
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.
|
|
|
10-13-2007, 02:20 PM
|
#2
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
title windows
rootnoverify (hdx,x)
map (hd1) (hd0) <----------- vital!
map (hd0) (hd1) <----------- vital!
chainloader +1
|
|
|
10-13-2007, 02:33 PM
|
#3
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
10-13-2007, 03:01 PM
|
#4
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
OK, then use
title windows
rootnoverify (hd1,4)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
|
|
|
10-13-2007, 04:32 PM
|
#5
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
10-13-2007, 06:23 PM
|
#6
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
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?
|
|
|
10-14-2007, 11:10 PM
|
#7
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
10-15-2007, 04:30 AM
|
#8
|
Member
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64
Rep:
|
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..
|
|
|
10-15-2007, 04:53 PM
|
#9
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Original Poster
Rep:
|
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.
|
|
|
10-15-2007, 05:41 PM
|
#10
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
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.
|
|
|
10-18-2007, 07:10 PM
|
#11
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Original Poster
Rep:
|
Yeah, I've actually had that problem in the past too, so I don't make that mistake any more.
|
|
|
10-18-2007, 08:36 PM
|
#12
|
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep:
|
So could this be an issue with the Sabayon bootloader? Have you tried booting windows from a livecd?
|
|
|
10-23-2007, 09:48 PM
|
#13
|
LQ Newbie
Registered: Aug 2003
Posts: 29
Original Poster
Rep:
|
It worked fine with Gentoo, but I haven't tried with a LiveCD.
|
|
|
10-28-2007, 03:34 AM
|
#14
|
LQ Newbie
Registered: Oct 2007
Posts: 1
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 07:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|