Dual boot with XP 64-bit Problem [Solved]

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Dual boot with XP 64-bit Problem [Solved]

Postby godv2 » Thu May 21, 2009 23:26

Hey guys,

a few days ago i downloaded Sabayon 4.1, the KDE one, and i've been very impressed with it so far :)

anyways, i tried to boot back into windows (XP 64-bit) for the first time since, and a problem came up:

i selected it at the GRUB menu, and it gave the following message:

root (hd1,0)
filesystem type unknown partition type 0x7
chainloader +1
savedefault


then it sits at that screen and doesn't respond to anything until i reboot and it does it again.

I have 2 hard drives, Windows and Sabayon are both on the first and the second is for storage.

any ideas how to get back into windows?

Cheers, TJ
Last edited by godv2 on Fri May 22, 2009 13:54, edited 1 time in total.
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: Dual boot with XP 64-bit Problem

Postby Fitzcarraldo » Fri May 22, 2009 0:03

The grub convention for drives and partitions is as follows:

(hd<d>,<p>)

Drive
sda => make <d> 0
sdb => make <d> 1
sdc => make <d> 2
etc.

Partition
1 => make <p> 0
2 => make <p> 1
3 => make <p> 2
etc.

Thus e.g. /dev/sda5 would be (hd0,4)

To configure grub, run it as root in a Terminal window:

a) If you have, or want, grub installed in the MBR then do the following:

# grub
grub> root (hd0,2) <-- specify partition where grub is to reside (sda3 in this example)
grub> setup (hd0,0) <-- install grub in MBR (sda1 in this example)
grub> quit


b) If you have, or want, grub installed in a Linux partition rather than the MBR then do the following:

# grub
grub> root (hd0,2) <-- specify where partition containing /boot resides (sda3 in this example)
grub> setup (hd0,2) <-- install grub in /boot (sda3 in this example)
grub> quit

My /boot/grub/grub.conf file corresponding the (b) above looks like this:

Code: Select all
# grub.conf generated by the Sabayon Linux Installer
#
# 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,2)
#          kernel /kernel-genkernel real_root=/dev/sda6
#          initrd /initramfs-genkernel
#boot=sda3
default=0
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
password --md5 $1$s0K6ZclI$MTvmWuyvIPrzYz2npKAix/

title=Sabayon Linux x86-64 (2.6.29-sabayon)
        root (hd0,2)
        kernel /kernel-genkernel-x86_64-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 elevator=as nopat resume=swap:/dev/sda7
        initrd /initramfs-genkernel-x86_64-2.6.29-sabayon

title Sabayon Linux x86-64 (2.6.29-sabayon) (safe mode)
        root (hd0,2)
        kernel /kernel-genkernel-x86_64-2.6.29-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 init=/linuxrc CONSOLE=/dev/tty1 resume=swap:/dev/sda7 nox acpi=off ide=nodma vga=normal
        initrd /initramfs-genkernel-x86_64-2.6.29-sabayon

title Sabayon Linux x86-64 (genkernel-x86_64-2.6.27-sabayon)
        root (hd0,2)
        kernel /kernel-genkernel-x86_64-2.6.27-sabayon root=/dev/ram0 ramdisk=8192 real_root=/dev/sda6 quiet init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 elevator=as nopat resume=swap:/dev/sda7
        initrd /initramfs-genkernel-x86_64-2.6.27-sabayon

title Microsoft Windows XP Professional
        rootnoverify (hd0,1)
        chainloader +1


Notice that the rootnoverify command for the Grub Windows XP menu entry is hd0,1 = sda2, i.e. my Windows XP partition to boot is sda2, which happens to be my Windows XP C: drive.

Maybe you just need to boot a LiveDVD/CD and edit your /boot/grub/grub.conf to point to the correct partition.

See also the post Re: Re-loaded/Updated packages and now no access to Sabayon
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Dual boot with XP 64-bit Problem

Postby godv2 » Fri May 22, 2009 0:14

Thanks! :D

I changed it to (hd0,0) and it worked straight away :)

Cheers, TJ
godv2
Baby Hen
 
Posts: 12
Joined: Thu May 21, 2009 23:15

Re: Dual boot with XP 64-bit Problem

Postby Fitzcarraldo » Fri May 22, 2009 0:44

You're welcome. Please don't forget to edit your first post and add "[Solved]" to the title. Thanks.
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7335
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest

cron