View previous topic :: View next topic |
Author |
Message |
Yinchie Apprentice
Joined: 05 Mar 2003 Posts: 179 Location: The Netherlands
|
Posted: Tue Apr 08, 2003 12:26 am Post subject: |
|
|
Xenarion wrote: | Err.. I dont get any image Its just black. |
I had a black screen too but it still booted.
The thing that was causing the black screen was that I had:
splashimage=(hd0,0) /boot/grub/splash.xpm.gz
instead of
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
note the space... |
|
Back to top |
|
|
rxn n00b
Joined: 08 Apr 2003 Posts: 23
|
Posted: Thu Apr 10, 2003 5:39 am Post subject: |
|
|
most excellent work on the dual booting problem. however, winxp seems to take longer to boot than normal, as does linux (at least linux mentions something about a readonly filesystem, and pauses there). any suggestions as to a fix for that, or is it just a price that is paid for the convenience of a dual-boot 'pooter? |
|
Back to top |
|
|
ScamIam n00b
Joined: 21 Mar 2003 Posts: 2 Location: Tennessee
|
Posted: Thu Apr 10, 2003 10:22 pm Post subject: |
|
|
Darth,
Well done man, I have been reading many areas on getting my dual boot to work. Funny how they seem to all be up to date but none worked. You should submit this to publishers in the next Linux Bible haha
ScamIam |
|
Back to top |
|
|
dstutz97 Tux's lil' helper
Joined: 14 Apr 2003 Posts: 80
|
Posted: Mon Apr 14, 2003 8:16 pm Post subject: |
|
|
You rock...this saved me and my roomate! Apparently I needed the map commands... |
|
Back to top |
|
|
gatekeeper n00b
Joined: 03 Jun 2003 Posts: 5 Location: Mississippi - USA
|
Posted: Tue Jun 17, 2003 4:45 am Post subject: |
|
|
Good work, your post helped me dual boot into Windows XP Pro and Gentoo Linux on two different drives... Many thanks... |
|
Back to top |
|
|
mwm2000 n00b
Joined: 20 Jun 2003 Posts: 26
|
Posted: Fri Jun 20, 2003 4:14 pm Post subject: LILO |
|
|
Just thought I would add the same can be achieved with lilo
here is an example :
image=/boot/bzImage
label="Gentoo"
read-only
append="hdc=ide-scsi"
root=/dev/sda8
image=/boot/Cluster
label="Cluster"
read-only
append="hdc=ide-scsi"
root=/dev/sda8
other=/dev/sda1
label="Windows 2000"
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80 _________________ Matt |
|
Back to top |
|
|
Darth_Daver n00b
Joined: 22 Sep 2002 Posts: 44
|
Posted: Mon Jun 30, 2003 9:54 pm Post subject: Re: LILO |
|
|
mwm2000 wrote: | Just thought I would add the same can be achieved with lilo
|
It does not appear that you are doing the same thing, although it is difficult to say without an explanation of what you posted. This thread started as an explanation of how to get Windows to boot from a slave IDE drive. In your example, you appear to be booting Windows from the first SCSI drive, although I'm guessing that the "hdc=ide-scsi" is making the IDE drive use SCSI emulation like CD-R/RW drives often do. I'm guessing that the "map-drive" and "to=" lines are then meant to make a slave drive appear to be a master to Windows. Is that correct? If so, I've never known anyone to use SCSI emulation on an IDE HD. Are there any other benefits or problems with doing that? |
|
Back to top |
|
|
mwm2000 n00b
Joined: 20 Jun 2003 Posts: 26
|
Posted: Mon Jun 30, 2003 10:52 pm Post subject: |
|
|
Although you are correct that it is a scsi drive that I am using, lilo is installed on /dev/hda my first harddisk (which is the drive which boots)and therefore windows must be fooled into thinking my computer booted from the scsi drive. I am fairly certain that the same would work to boot a copy of windows from an ide slave drive, just replace /dev/sda1 with /dev/hdb (or which ever is appropriate for your setup).
Also I am not using scsi emulation on an ide hard disk my setup is as follows:
/dev/hda = 120gb IDE HD (on which lilo is installed)
/dev/sda = 18gb SCSI HD (on which all of my OS are installed, Gentoo and windows 2000)
/dev/hdc = CD/RW (hence the hdc=ide-scsi)
/dev/hdd = DVD Drive
And finally yes your correct the "map-drive" and "to=" lines are to fool windows into thinking the computer booted from my scsi drive.
I hope this answers all your questions _________________ Matt |
|
Back to top |
|
|
Darth_Daver n00b
Joined: 22 Sep 2002 Posts: 44
|
Posted: Tue Jul 01, 2003 12:19 am Post subject: |
|
|
mwm2000 wrote: | I hope this answers all your questions |
Yes, that clears everything up.
Thanks... |
|
Back to top |
|
|
HolyCoitus n00b
Joined: 16 Jun 2003 Posts: 21 Location: Fort Wayne, Indiana
|
Posted: Tue Jul 01, 2003 1:10 pm Post subject: |
|
|
Very nice. I wish I'd found this a bit earlier when I actually still needed to boot into windows (problem with my burner, got a new one and it's since been fixed. Couldn't burn data cds but could burn audio... Interesting problem, eh?) but this finally resolves the problem of having my faster drive sitting as a useless fat32 storage bin! Thanks for the info, I'm definitely appreciative. _________________ Celebrate this chance to be alive and breathing! |
|
Back to top |
|
|
clumsyninja n00b
Joined: 27 Jun 2003 Posts: 61 Location: North Texas
|
Posted: Sat Jul 05, 2003 3:48 pm Post subject: |
|
|
cool. thanks for the tips.
grub is one of those programs i just took for granted and only had a surface knowledge of (i never ever considered a man grub...). _________________ katana root # cat /proc/sys/kernel/osrelease
2.4.20-gentoo-r7 |
|
Back to top |
|
|
bleatingherd n00b
Joined: 14 May 2003 Posts: 2
|
Posted: Sun Jul 20, 2003 2:21 am Post subject: |
|
|
Working beautifully. I love you.
This should definately be added to the installation faq. Was hard to find. |
|
Back to top |
|
|
rezza Guru
Joined: 09 Apr 2003 Posts: 434 Location: Edinburgh, UK
|
Posted: Thu Jul 31, 2003 11:03 pm Post subject: |
|
|
hmm... i thought this would work fine, but alas no. here's my grub.conf:
Code: | default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel (hd0,0)/bzImage root=/dev/hda3 hdc=ide-scsi vga=794
title=Windows server 2003
map (hd0)(hd1)
map (hd1)(hd0)
root (hd1,0)
rootnoverify (hd1,0)
makeactive
chainloader +1 |
any idea what's wrong here?
EDIT: oh crap, i forgot to post what error i got... lol.
when i select windows, i get the following error:
Code: | map (hd0)(hd1)
Error 11: unrecognised device string |
_________________ screenshots
blog |
|
Back to top |
|
|
rezza Guru
Joined: 09 Apr 2003 Posts: 434 Location: Edinburgh, UK
|
Posted: Thu Jul 31, 2003 11:09 pm Post subject: |
|
|
ok, i'm an idiot. i needed a space between the (hd0) and the (hd1) on the map lines. obviously.
*slaps forehead _________________ screenshots
blog |
|
Back to top |
|
|
Japheth n00b
Joined: 15 Jul 2003 Posts: 17 Location: Australia
|
Posted: Tue Aug 05, 2003 3:48 pm Post subject: So close... |
|
|
Ok, I thought this would work for sure... I wasn't quite right...
When I try and boot into Windows, I get either an Code: | NTLDR couldn't be found | message, or it says my Code: | <Windows Root>system32\hal.dll is corrupt |
Depending on whether I try booting to (hd2,0) or (hd1,0) respectively...
I have three drives and a CD drive.
Primary Master - hda1 - Gentoo
Primary SLave - CD drive
Secondary Master - hdc1 - Windows XP
Secondary Slave - NTFS Drive
What's my problem??
Here's my grub.conf file:
Code: |
timeout 30
default 0
fallback 2
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=<mybox'sname> (+fb +splash)
root=(hd0,0)
kernel=(hd0,0)/boot/bzImage root=/dev/hda2 video=vesa:ywrap,mtrr vga=0x31A
initrd=/boot/initrd-1280x1024
title=<myboxesname> (+fb -splash)
root=(hd0,0)
kernel(hd0,0)/boot/bzImage root=/dev/hda2 video=vesa:ywrap,mtrr vga=0x31A
title=<mybox'sname> (-fb -splash)
root=(hd0,0)
kernel=(hd0,0)/boot/bzImage root=/dev/hda2
title=<mybox'swindowsname> (Windows XP)
map (hd0) (hd2) # or map (hd0) (hd1)
map (hd2) (hd0) # or map (hd1) (hd0)
root=(hd2,0) # or root=(hd1,0)
rootnoverify=(hd2,0) # or (hd1,0)
makeactive
chainloader +1
|
Please help if you can! _________________ -- Japh |
|
Back to top |
|
|
rugball n00b
Joined: 04 Aug 2003 Posts: 14 Location: San Diego, CA USA
|
Posted: Tue Aug 05, 2003 10:02 pm Post subject: WinXp on /dev/hda1; Gentoo on hdb??? |
|
|
Glad to seee that this thread is still active. Greetings from a linux n00b.
Per the directions at the top of this thread and the install docs, Windows XP should be installed on hdb. I've gotten as far as the emerge grub phase of the install but now I'm confused. It says: Quote: | Code listing 23.3: GRUB not on the MBR
Alternatively, if you wanted to install the bootloader somewhere other than the MBR
grub> root (hd0,0) // Your boot partition
grub> setup (hd0,4) // Where the boot record is installed, here it is /dev/hda5
grub> quit |
It goes on to say: Quote: | ...
# Below needed only for people who dual-boot
title=Windows XP
root (hd0,5)
chainloader (hd0,5)+1 | I gathered that /dev/hda5 is another linux partition as is listed here: Quote: | Code listing 6.6: An example partition configuration
Device Boot Start End Blocks Id System
/dev/hda1 1 14 105808+ 83 Linux
/dev/hda2 15 49 264600 82 Linux swap
/dev/hda3 50 70 158760 83 Linux
/dev/hda4 71 2184 15981840 5 Extended
/dev/hda5 71 209 1050808+ 83 Linux | My problem is that I already have WinXP installed, but on /dev/hda1 (that is the only partition on that 40GB HDD). I have a second 80GB HDD, hdb, with linux partitions /dev/hdb1 (boot), hdb2 (swap) and hdb3 (root). hdb5 through 7 are additional partitions for Windows files.
Both drives are jumpered for cable select rather than the master/slave configuration. Do I need to change the jumpers on the HDD's and/or reverse their physical locations on the IDE cable for this "map (hd0) (hd1)" trick to work? Is there a way to dual boot with my existing setup? I just recently reinstalled WinXP (before I decided to install linux) and I'd rather not screw up the MBR or have to start either intallation over. |
|
Back to top |
|
|
mawst Tux's lil' helper
Joined: 23 Nov 2002 Posts: 101 Location: MN, USA
|
Posted: Tue Oct 07, 2003 10:13 am Post subject: |
|
|
Great guide! This helped me out a bunch. |
|
Back to top |
|
|
JonnieDago n00b
Joined: 25 Apr 2003 Posts: 11
|
Posted: Wed Oct 15, 2003 12:24 pm Post subject: |
|
|
This tip saved my ass.
Tanks dude!!!! |
|
Back to top |
|
|
Idiot_Circus_Boy n00b
Joined: 07 Oct 2003 Posts: 6
|
Posted: Thu Oct 16, 2003 7:29 pm Post subject: Ooooooo |
|
|
You da man. The only reason I haven't moved linux to my primary hardware was because I didn't want to re-partition my current windows configuration. (it's kinda a safety blanket for me)
Now I can just make that drive a slave and intall happy linux on a another HD. I love it. |
|
Back to top |
|
|
Wheatley n00b
Joined: 29 Jun 2003 Posts: 41
|
Posted: Wed Nov 12, 2003 4:38 am Post subject: Tried this and got an error |
|
|
Here is my grub.conf file. Can anyone see why I would be getting an error? I have gentoo on the Master and windows 2k on the slave drive. When I selected windows the screen went black and displayed an error message but it let me return to the grub menu.
default 0
timeout 10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title= Gentoo Linux
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3 hdc=ide-scsi
title=Windows 2000
map(hd0)(hd1)
map(hd1)(hd0)
root(hd1,0)
rootnoverify(hd1,0)
makeactive
chainloader +1
Thanks |
|
Back to top |
|
|
Wolven Guru
Joined: 05 Aug 2003 Posts: 325 Location: Norway
|
Posted: Wed Nov 12, 2003 7:05 pm Post subject: |
|
|
Hey Wheatley. I think I know what your error is.
Quote: |
title=Windows 2000
map(hd0)(hd1)
map(hd1)(hd0)
root(hd1,0)
rootnoverify(hd1,0)
makeactive
chainloader +1 |
You need a space between the (hd0) and (hd1) here Code: | map (hd0)[space here](hd1) |
And here Code: | map(hd1)[space here](hd0) |
Hope that helps you.
-Wolven |
|
Back to top |
|
|
Wheatley n00b
Joined: 29 Jun 2003 Posts: 41
|
Posted: Wed Nov 12, 2003 8:40 pm Post subject: |
|
|
Well I tried to add the space in between them and retry but I still get the same error. The error I get is something like: error 13 unrecognized executable then it lists these two line from the grub.conf file
makeactive
chainloader +1
it seems like something happens with the rootnoverify line I think.
Thanks for your help. |
|
Back to top |
|
|
Wolven Guru
Joined: 05 Aug 2003 Posts: 325 Location: Norway
|
Posted: Wed Nov 12, 2003 9:49 pm Post subject: |
|
|
Here is my grub.conf
Code: | default 0
timeout 8
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#title=Gentoo Linux (gentoo-2.4.20-r8)
#root (hd0,0)
#kernel (hd0,0)/boot/bzImage root=/dev/hda3
title=Gentoo Linux [kernel-2.6.0-beta9]
root (hd0,0)
kernel (hd0,0)/boot/bzImage-2.6 root=/dev/hda3
title=DOS/Windows98se
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
rootnoverify
makeactive
chainloader +1
|
Try removing the (hd1,0) after rootnoverify and add a space here: Code: | root [space here] (hd1,0) | I dunno. Mabye that helps... |
|
Back to top |
|
|
Squinky86 Retired Dev
Joined: 25 Mar 2003 Posts: 309 Location: Alabama, USA
|
Posted: Wed Nov 12, 2003 10:31 pm Post subject: |
|
|
I'm in a...special situation. My dad hates linux. I mean, he loathes *NIX because it's "so insecure." Don't ask.
Anyways, I use linux and he doesn't like it, but I have to keep it on the primary slave hd (hdb). I am not allowed to let it TOUCH the primary master in any way (hda, WinME <-- you can see why I switched a couple years ago). Whenever I get on, I have to go into the bios and set hdb as my boot device, then go back and change it to hda later. Grub is on the MBR of hdb, so hdb is (hd0,0) when it's booting. Is there any way to tell the MBR of hdb to boot hda? Remember I'm not allowed to touch hda. If there's no way, I may just make windows the primary slave and set linux as master so that grub can be used properly, but I'd prefer not to get in any trouble with my dad. _________________ Me |
|
Back to top |
|
|
Wheatley n00b
Joined: 29 Jun 2003 Posts: 41
|
Posted: Thu Nov 13, 2003 3:52 am Post subject: |
|
|
Thanks that seemed to work. I did both at the same time so I am not sure which one it was but, oh well it works now.
Thanks alot. |
|
Back to top |
|
|
|