View previous topic :: View next topic |
Author |
Message |
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Wed Jan 14, 2004 10:06 am Post subject: Dualbooting XP on SATA and Gentoo on an ATA-disc - SOLVED! |
|
|
Hi!
I´m new to gentoo and linux and have a question regarding dualbooting. I´m aware of the many threads regarding this subject and i have read the majority of them but I just cant get it to work.
I have a master SATA-drive where winxp is installed.
I have a slave ATA-drive where I have installed gentoo.
When I want to boot into gentoo I change the boot order in the bios to the slave ATA because I put grub there. No problem here and gentoo works fine. boot partition on (hd0,0). (I noticed that grub thinks that my slave drive are the master disk at boot time but in fstab I have hdb1,2,3 for my respective partitions, it works fine!)
The problem is that I just cant get WinXp to boot. To get back into Xp i have to enter bios and change the boot order back, not the config I prefer to have!
I have tried (hd1,0),(hd2,0)...(hdn,0) in hope of grub finding the xp mbr and giving control to that bootloader, but no success...
Can someone please shed some more light on this subject?
I run 2.4.20 (or maybe 2.4.22). I am almost certain that grub.conf is ok, i followed the previous examples found on this board.
Is there any kerneloptions I should use but maybe forgotten?
Last edited by Dannemano on Fri Jan 16, 2004 3:06 pm; edited 1 time in total |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Wed Jan 14, 2004 10:17 am Post subject: |
|
|
Please post your grub.conf. I think you missed something there... |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Wed Jan 14, 2004 10:31 am Post subject: |
|
|
grub.conf:
Code: |
title linux
root (hd0,0)
kernel (hd0,0)/kernel[...] root=/dev/hdb3 vga=791
title XP
root (hd4,0) //i have tried other hdX.
rootnoverify (hd4,0)
makeactive
chainloader +1
|
|
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
Posted: Wed Jan 14, 2004 11:05 am Post subject: |
|
|
When you boot in linux, your SATA drive appears like hd... or sd...? You can check /dev for that. |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Wed Jan 14, 2004 11:12 am Post subject: |
|
|
I dont think it shows up at all.
I do a dmesg | grep hd, but the sata-drive is not visible, only the ATA, cdrom and dvd.
Is there any other way you can check the hardware installed or recognized in gentoo?
Edit:
It is not visible in /dev either. |
|
Back to top |
|
|
Cosmin Guru
Joined: 18 Dec 2003 Posts: 447 Location: Bucharest, Romania
|
|
Back to top |
|
|
dleifelohcs Apprentice
Joined: 10 Jul 2003 Posts: 160 Location: UNH
|
Posted: Wed Jan 14, 2004 5:39 pm Post subject: |
|
|
check your BIOS.
All depends on how the SATA controller was setup.
SATA can take the place of Master-channel IDE drives, or work alongside them.
Generally, my SATA box looked like:
SATA drive: hde
IDE drive: hda
CDROM: hdc
CDROM: hdd
CH1 MasterIDE
CH1 SecondIDE
CH2 MasterIDE
CH2 SecondIDE
CH1 SATA
CH2 SATA |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Wed Jan 14, 2004 5:41 pm Post subject: |
|
|
Thanks for the help so far!
Unfortunatly the SATA-drive isn´t even detected when booting with the liveCD. (the network is ok when installing but not after reboot so I cant download a newer kernel).
Maybe I should try to reinstall, I have tried a lot of different kerneloptions and i am starting to lose control over where i am |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Wed Jan 14, 2004 5:45 pm Post subject: |
|
|
dleifelohcs wrote: | check your BIOS.
All depends on how the SATA controller was setup.
SATA can take the place of Master-channel IDE drives, or work alongside them.
Generally, my SATA box looked like:
SATA drive: hde
IDE drive: hda
CDROM: hdc
CDROM: hdd
CH1 MasterIDE
CH1 SecondIDE
CH2 MasterIDE
CH2 SecondIDE
CH1 SATA
CH2 SATA |
My SATA is on CH1, i can see that during bootup. But what is the correct setting? Alongside or take the place of the master-ide?
I cant see a drive at hde which i should.. |
|
Back to top |
|
|
paranode l33t
Joined: 06 Mar 2003 Posts: 679 Location: Texas
|
Posted: Wed Jan 14, 2004 6:20 pm Post subject: |
|
|
Maybe you need to do a Code: | map (hd0) (hd1)
map (hd1) (hd0) |
in your grub.conf before the chainloader. I use that on my dual boot system where I boot to a controller (SCSI device in BIOS) and then boot to the mobo controller disk for Windows. _________________ Meh. |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Thu Jan 15, 2004 8:59 am Post subject: |
|
|
I will try that, but first I think I will upgrade to 2.6.1. The SATA-controller I have cant be found in menuconfig in kernel 2.4.20.
SCSI-controller: ST3WOLF
SATA-RAID: VIA-VT6420
The main problem is that gentoo cant find the disk. If gentoo regognized it i would be able to boot to it using grub. |
|
Back to top |
|
|
nE0 Tux's lil' helper
Joined: 08 Aug 2002 Posts: 146 Location: The Netherlands, Breda
|
Posted: Thu Jan 15, 2004 11:09 am Post subject: |
|
|
I have a simular problem, but I don't think you can solve it by running an other kernel.
grub has nothing to do with what you kernel supports.
grub must see a fysical HardDrive.
You can see wich HDD's grub sees by booting your system to grub, and instead of choosing Gentoo, pres the c
This will give you a commandline of grub.
Now enter
Code: |
grub> rootnoverify (hd <tab>
|
grub will give you the possibilities using tab-completion.
Your hd0 is your linux drive, so you don't need that.
What you need is the second harddisk And when I look at your system, it should be: hd1
then you should (however I'm not quite sure, for I got the same problem) be able to do:
Code: |
grub> chainload (hd1,0)+1
grub> boot
|
post the outcome of grub for the fun of it _________________ All things considerring! I'm considerring to...never mind! |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Thu Jan 15, 2004 1:49 pm Post subject: |
|
|
Hey! Grub finds hd1!
I do the following:
Code: |
rootnoverify (hd1,0)
chainloader +1
boot
|
I also tried your idea:
Code: |
chainloader (hd1,0)+1
|
after the command boot everything freezes though. Nothing happens.. |
|
Back to top |
|
|
floffe Guru
Joined: 24 Nov 2003 Posts: 414 Location: Linköping, Sweden
|
Posted: Thu Jan 15, 2004 2:57 pm Post subject: |
|
|
I had some problems getting gentoo to see my SATA drive as well. Since I don't have an IDE disk, I had to mess with the liveCD, to put another kernel with support for my controller there.
Viarena wrote: |
Since kernel 2.6 test5 there is basic support for the SATA RAID VT6420 chipset on the VT8327. |
at this link
The only official driver is for RedHat 7.2 (scroll down): http://www.viaarena.com/?PageID=297
I suggest you try the 8237 driver in any 2.6 stable kernel. |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Thu Jan 15, 2004 5:33 pm Post subject: |
|
|
I will try that and report back later...
Damn this is difficult, i just want grub to read the MBR of the SATA drive so winXP can boot... grrrrr!
Anyway, thanks for the tip! |
|
Back to top |
|
|
Dannemano n00b
Joined: 14 Jan 2004 Posts: 28 Location: Linkoping, Sweden
|
Posted: Fri Jan 16, 2004 3:06 pm Post subject: |
|
|
Everything is working fine now! Thanks all of you for the help!
This solved it:
The SATA drive (Windows XP) is connected as master, ATA (Gentoo) as slave on IDE1.
Gentoo boots fine with:
Code: | root (hd0,0)
kernel [...] //nothing special here
|
Windows XP now boots perfectly with the following:
Code: |
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
makeactive
chainloader +1
|
I really think the map-command is the critical one as i tried all combinations possible with rootnoverify, makeactive and all different syntaxes that comes with those commands.
Also note that I still boot (hd1,0), first i thought i should boot (hd0,0) for winXP as i mapped the two drives.
I hope this helps others with similar problems. |
|
Back to top |
|
|
|