Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dualbooting Gentoo & XP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Tue Jun 16, 2009 1:47 pm    Post subject: Dualbooting Gentoo & XP Reply with quote

I would like to start dualbooting to xp (just for games & such)

Im using GRUB right now, which is installed in /dev/hda1
the partition i made ready for xp is /dev/sdb2 (unallocated space)
When trying to install XP the problem is that it wants to write to the mbr of /dev/hda1 , which partition scheme it cannot read and thus will not install.

What would be the best fix around this? I've looked around and googled but almost all of the guides are about installing linux after xp was installed.
Back to top
View user's profile Send private message
MaximeG
l33t
l33t


Joined: 15 Apr 2008
Posts: 722
Location: Belgium

PostPosted: Tue Jun 16, 2009 1:53 pm    Post subject: Reply with quote

Hi,

Installing XP after Linuw isn't a problem : XP will overwrite grub in the mbr, then you'll jsut have to reinstall grub in this MBR and you'll be fine.

But you're speaking of hda, sdb ... have you sata drives and other that are not sata ?
What's your disk configuration by the way ?

Thanks,
Maxime
_________________
Future is wide open.
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Tue Jun 16, 2009 1:57 pm    Post subject: Reply with quote

hda = IDE drive 1
hda1 = /boot (ext2)
hda2 = swap
hda3 = root (/) (ext3)
hdb = IDE drive 2
hdb1 = data (reiserfs)
sda = SATA drive 1
sda1 = data (reiserfs)
sdb = SATA drive 2
sdb1 = data (reiserfs)
sdb2 = new partition for XP
sdc = SATA drive 3
sdc1 = data (reiserfs)

To let XP overwrite the mbr do i have to delete hda1 then? cause XP does not want to overwrite it cause it says it cant read that partition (or partition table)
Or should i just change the fs of hda1 to fat32


Last edited by khorio on Tue Jun 16, 2009 2:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
honp
Guru
Guru


Joined: 25 Sep 2006
Posts: 355
Location: Good old Prague, Czech rep.

PostPosted: Tue Jun 16, 2009 2:39 pm    Post subject: Reply with quote

XP wants install their loader to first booting device, because when PC starts, BIOS tries to read first sector on boot disk and there is needed loader. If it is windows loader or grub or lilo is not important:)
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Tue Jun 16, 2009 3:20 pm    Post subject: Reply with quote

honp wrote:
XP wants install their loader to first booting device, because when PC starts, BIOS tries to read first sector on boot disk and there is needed loader. If it is windows loader or grub or lilo is not important:)


yes but windows setup does not want to write there
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Tue Jun 16, 2009 7:41 pm    Post subject: Reply with quote

anyone has got an idea how to do this? cause win install doesn't/can't write to that partition, do i have to change the boot partition to fat32 and then rewrite grub after the install?
Back to top
View user's profile Send private message
dastergon
Developer
Developer


Joined: 22 May 2009
Posts: 12

PostPosted: Tue Jun 16, 2009 8:57 pm    Post subject: Reply with quote

No I don't think you should change partition . Try Super Grub maybe it will help you.
Back to top
View user's profile Send private message
honp
Guru
Guru


Joined: 25 Sep 2006
Posts: 355
Location: Good old Prague, Czech rep.

PostPosted: Tue Jun 16, 2009 9:15 pm    Post subject: Reply with quote

Do whatever windows wants to install and then repair it with grub.
Back to top
View user's profile Send private message
luqas
Guru
Guru


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Tue Jun 16, 2009 9:23 pm    Post subject: Reply with quote

honp wrote:
Do whatever windows wants to install and then repair it with grub.


This. Install XP let it overwrite the boot sector then boot of of your livecd and follow the grub instructions to set it back. Kind of convoluted but works none the less.
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Wed Jun 17, 2009 5:22 am    Post subject: Reply with quote

Well, I'm stuck, XP wont let me install until i change my partitions at /dev/hda to something it understands.
It's not a problem about fixing grub afterwards, XP just does not want to install in the first place.
Back to top
View user's profile Send private message
MaximeG
l33t
l33t


Joined: 15 Apr 2008
Posts: 722
Location: Belgium

PostPosted: Wed Jun 17, 2009 9:18 am    Post subject: Reply with quote

Hi,

I don't think it's because hda1 is a linux partition, Windows XP will not detect it and won't give a fuck anyway.

Windows XP easily complains on how your hardware stuff is arranged. I might even be because you have both IDE and SATA drives and you're trying to install it on the "3rd" drive. I had some and such strange behaviors.

Can't you install Windows Vista instead ? I know it's crap, but at least it's a bit more modern and detects way better the "fancy" hardware stuff.
Or at least, trying to install it, just to check whether your bios is configured properly for Microsoft.

Regards,
Maxime
_________________
Future is wide open.
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Wed Jun 17, 2009 9:43 am    Post subject: Reply with quote

thanks, will try that, but XP used to install fine before i had any linux partitions, but then again i always installed to the first hd.
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Wed Jun 17, 2009 10:48 am    Post subject: Reply with quote

How about temporarily unplugging the other drives to install XP? So I don't know whether XP needs to be on (hd0,0) or if this is just a limitation of the installer.
Back to top
View user's profile Send private message
hoacker
Guru
Guru


Joined: 04 Aug 2007
Posts: 505
Location: Bürstadt, Germany

PostPosted: Wed Jun 17, 2009 11:14 am    Post subject: Reply with quote

sera wrote:
I don't know whether XP needs to be on (hd0,0) or if this is just a limitation of the installer.

I'm not quite sure about XP but Vista and 7 can be installed to other partitions, as long as it's a partition on the first harddisk. You can instruct GRUB to map harddisks and change the disk order that is seen by windows. As well, grub can hide/unhide partitions.

However, for the installation I'm not sure how you can map the harddisk order as grub is skipped when you boot from CD/DVD. So, it may be a good idea to unplug (or disable in the BIOS) all other drives except the desired harddisk for windows.
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Wed Jun 17, 2009 12:31 pm    Post subject: Reply with quote

Well, apparently changing boot order to /dev/sdb firsy was enough to get vista to install, HOWEVER..

for reasons unknown to me, and without asking, vista hijacked /dev/hdb1 in the progress of installing to install just the bootloader, thus formatting the disk and installing vista to /dev/sdb2...

this was just a data disk, and the whole bunch is gone.
ofcourse i have a backup (not).

Now i remember why i always rejected dualbooting with windows...

Is there any way to recover the data?
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Wed Jun 17, 2009 1:17 pm    Post subject: Reply with quote

OK, fixed this

Quote:

reiserfsck --rebuild-tree -S -l /root/recovery.log /dev/hdb1


recovered most of my files in lost+found on the disk after remounting it, including ~50% of the filenames.

im going to expand /dev/sdb1, move everything recovered from /dev/hdb1 to that disk, physically unplug my harddrives except for /dev/hdb and install windows there again, while stabbing myself with a fork in the eyeball during the installation.
Back to top
View user's profile Send private message
xtz
Apprentice
Apprentice


Joined: 29 Oct 2007
Posts: 181
Location: Singapore

PostPosted: Thu Jun 18, 2009 8:01 am    Post subject: Reply with quote

I would definately not recommend changing the way that BIOS recognizes the hard drives. FreeBSD's way of recognizing hard drives may be a bit confusing at first time, but its a waaaaaay better, cause it does not care about how the BIOS recognized them.

Not sure about Vista/7, but u just cannot peacefully install XP on other than the first partition on the hard disk (well, of course you can select it to install on another partition, but it will anyway write data to the first partition of your hard-drive. IMO, the best practice is to physically unplug all your drives, except the one you want to install on, install Windows on it and then plug your other drives back and reinstall and reconfigure GRUB or LILO. I recommend you to install Windows on the first patition of the hard drive, cause it will write stuff to it anyway, even if you select another one.
Back to top
View user's profile Send private message
khorio
n00b
n00b


Joined: 29 Oct 2003
Posts: 43

PostPosted: Thu Jun 18, 2009 8:35 am    Post subject: Reply with quote

Yeah thats how i did it now, after recovering everything from the overwritten partition, amazingly i lost nothing actually, even though it was reformatted and the pagefile and hiberfil was written over it.

And yes, since i installed i was welcomed with a BSOD i had to fix already:P

good old windows...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum