Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Dualbooting with XP on an extended partition

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Nordhav
n00b
n00b
User avatar
Posts: 11
Joined: Thu Aug 24, 2006 9:08 am

Dualbooting with XP on an extended partition

  • Quote

Post by Nordhav » Tue Sep 19, 2006 4:52 pm

Hey, I installed a gentoo-system awhile ago on my laptop and no problems there. Since I had a copy of windows laying around, I figured I'd install it.
Here is my hdd-layout: (1x100gb)

Code: Select all

Name                Flags            Part type      FS type             [Label]                  Size (MB)
--------------------------------------------------------------------------------------------------------
hda1                 boot              Primary        ext2                                           131.61

hda2                                   Primary        swap                                           509.97

hda3                                   Primary      ext3                                            20480.95

hda5                                   Logical        ext3                                            53686.41

hda6                                   Logical          ntfs                  [^B]                    25210.49
hda1 = boot, hda2 = swap, hda3 = root, hda5 = /home, hda6 = winxp

GRUB.conf:

Code: Select all

default 0
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz

title = Gentoo Linux-2.6.17-r7
  root (hd0,0)
  kernel /kernel-genkernel-x86_64-2.6.17-gentoo-r7 init=/linuxrc ramdisk=8192   rea$initrd /initramfs-genkernel-x86_64-2.6.17-gentoo-r7

title = Windows XP Pro SP2
  rootnoverify (hd0,5)
  makeactive
  chainloader +1
Gentoo works fine ofc, but I can't boot into my winxp part. I read through the manual for GRUB and "makeactive" apparently doesn't work when booting from an extended part. If I remove it, there's no errors but still it won't boot.

I googled around but found no solution. Should I just redo my partitions or could someone enlightenment me?
Acer Aspire 5024 - AMD Turion 64 (2.8/3.4MT)
Top
Cybersorcerer
Apprentice
Apprentice
User avatar
Posts: 193
Joined: Tue Mar 30, 2004 3:14 pm
Location: somewhere over the rainbow

  • Quote

Post by Cybersorcerer » Tue Sep 19, 2006 5:39 pm

Hi,

it looks like the boot flag is missing on /dev/hda6
greetings

Cybersorcerer
--
Too old to die young

Dell Precision M90, Intel Centrino Duo T2700 @ 2.33GHz running Jackass! 2006.2
Top
Nordhav
n00b
n00b
User avatar
Posts: 11
Joined: Thu Aug 24, 2006 9:08 am

  • Quote

Post by Nordhav » Tue Sep 19, 2006 6:40 pm

Does that really matter? I use GRUB in the MBR to boot both OSes from hda1 anyway, right? (or at least it should :))
Tried it out anyway, doesn't change anything.

Thanks for your reply btw!
Acer Aspire 5024 - AMD Turion 64 (2.8/3.4MT)
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

Re: Dualbooting with XP on an extended partition

  • Quote

Post by cyrillic » Wed Sep 20, 2006 5:46 pm

Nordhav wrote:

Code: Select all

title = Windows XP Pro SP2
  rootnoverify (hd0,5)
  makeactive
  chainloader +1
Gentoo works fine ofc, but I can't boot into my winxp part. I read through the manual for GRUB and "makeactive" apparently doesn't work when booting from an extended part.
GRUB doesn't have any problem with extended partitions. It is NTLDR (the Windows bootloader) that can only be installed into a primary partition.

Trying to chainload Windows from an extended partition (hd0,5) simply won't work because NTLDR isn't there.
Top
Tin
Guru
Guru
Posts: 305
Joined: Thu Dec 22, 2005 10:10 am
Location: Namur, Belgium
Contact:
Contact Tin
Website

  • Quote

Post by Tin » Wed Sep 20, 2006 7:27 pm

cyrilic, you are right. It is the windows loader that WANT to be on the first partition
BUT
There is a way to make it believe that it is on the first one.

My brother used this configuration and it worked for him.
Adapt it to your configuration if needed, but the "map" commands do the trick ;-)

Code: Select all

title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1
boot
Tin, the gentoobie
Top
cyrillic
Watchman
Watchman
User avatar
Posts: 7311
Joined: Wed Feb 19, 2003 3:05 am
Location: Groton, Massachusetts USA

  • Quote

Post by cyrillic » Wed Sep 20, 2006 8:07 pm

Tin wrote:cyrilic, you are right. It is the windows loader that WANT to be on the first partition
BUT
There is a way to make it believe that it is on the first one.
The map commands allow you to boot Windows from the second (or third, etc.) harddrive. NTLDR still needs to be in a primary partition on that harddrive.
Top
Tin
Guru
Guru
Posts: 305
Joined: Thu Dec 22, 2005 10:10 am
Location: Namur, Belgium
Contact:
Contact Tin
Website

  • Quote

Post by Tin » Wed Sep 20, 2006 8:20 pm

Oups :oops:
You are right...
Tin, the gentoobie
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic