View previous topic :: View next topic |
Author |
Message |
darkangael Tux's lil' helper
Joined: 04 Jul 2003 Posts: 132
|
Posted: Sun Oct 17, 2004 2:35 am Post subject: |
|
|
If you try and it fails it won't hurt your computer, but that sounds like a good idea (I never got mine working with that setup but i never tried that idea either) |
|
Back to top |
|
|
acidlog n00b
Joined: 13 Oct 2004 Posts: 45 Location: Germany
|
Posted: Fri Dec 03, 2004 11:19 pm Post subject: |
|
|
After houres of painfull thinking an shouting at each others for my and my friend heare, we finaly found this thread.
Darth_Daver, you are our Hero
|
|
Back to top |
|
|
deanpence Apprentice
Joined: 08 Nov 2004 Posts: 158 Location: Earth
|
Posted: Fri Dec 24, 2004 3:03 pm Post subject: Doesn't work with my Win2K Pro install |
|
|
Update: I "fixed" this situation on my own by completely avoiding the circumstances that led to the problem in the first place. Namely, I backed up gentoo, repartitioned the master HDD, installed Windows on the first partition, restored gentoo, and installed grub on the MBR. Works like a charm like that. I still have no idea why the two-disk setup didn't work.
Original Post:
Thanks for the tip, Darth_Daver, but this doesn't work with my configuration. I get this error message from NT's boot loader:
Code: | Windows 2000 could not start because the following file is missing or corrupt:
<windows 2000 root>\system32\ntoskrnl.exe.
Please reinstall a copy of the above file. |
I've got Gentoo on the master HDD and Windows 2K Pro (SP4) on the slave HDD. Here's my grub.conf:
Code: | # grub.conf
# Use the most recent Linux kernel by default.
default 0
# Fall back to the next most recent Linux kernel.
fallback 2
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
################################
# the most recent Linux kernel #
################################
title=Gentoo Linux (current)
root (hd0,0)
kernel /kernel ro root=/dev/hda9 video=vesafb:1024x768-24@80
###########
# Windows #
###########
title Windows 2000
rootnoverify (hd1,0)
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
################################
# explicitly versioned kernels #
################################
# 2.6.9-gentoo-r9-2
title=Gentoo Linux 2.6.9-gentoo-r9-2
root (hd0,0)
kernel /kernel-2.6.9-gentoo-r9-2 ro root=/dev/hda9 video=vesafb:1024x768-24@80
# etc. |
I even tried adding a second entry to Windows' boot.ini to try:
Code: | [boot loader]
timeout=10
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Win2K Pro" /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\WINNT="Win2K Pro (2nd disk)" /fastdetect |
But I get the same error message (above) with either OS option. (Interestingly, the first option gives me the usual ASCII progress bar and then the error message underneath; the second option just gives the error message at the top of the screen.)
I would try some other things like swapping the HDDs and installing grub in the MBR of the new master HDD, but, unfortunately, I cannot get my BIOS to recognize both disks in that configuration, so I'm stuck with Gentoo on master and Windows on slave.
Just in case, here's a look at my partitions:
Code: | # Gentoo disk:
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 16 128488+ 93 Amoeba # /boot
/dev/hda2 17 140 996030 92 Unknown # [swap]
/dev/hda3 141 4870 37993725 5 Extended
/dev/hda5 141 513 2996091 93 Amoeba # /tmp
/dev/hda6 514 1260 6000246 93 Amoeba # /var
/dev/hda7 1261 2380 8996368+ 93 Amoeba # /usr
/dev/hda8 2381 2878 4000153+ 93 Amoeba # /opt
/dev/hda9 2879 3127 2000061 93 Amoeba # /
/dev/hda10 3128 4123 8000338+ 93 Amoeba # /var/tmp
/dev/hda11 4124 4870 6000246 93 Amoeba # /home/backup |
Code: | # Windows disk:
Disk /dev/hdb: 8455 MB, 8455200768 bytes
255 heads, 63 sectors/track, 1027 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1026 8241313+ 7 HPFS/NTFS |
Edit: Windows boots fine when the disk is set up as master (and only, due to the above problem). |
|
Back to top |
|
|
tlyons n00b
Joined: 05 Jan 2005 Posts: 2 Location: Ottawa, ON
|
Posted: Wed Jan 05, 2005 12:53 am Post subject: OK, I'm stuck |
|
|
The answer may already be on this board, but I don't see it. After spending the last few days installing Gentoo in my spare minutes, I'm pretty burned out.
Here's the scoop:
-Two drives: hda (WinXP Pro) and hdg (Gentoo) connected to a SIIG UltraATA/133 card (Silicon Image 0680 ver. 3)
-GRUB boots into WinXP just fine
-Gentoo says the video mode number is undefined, despite the fact that it's specified in my grub.conf
-I used genkernel
-Loads modules: ehci-hcd, uhci, usb-ohci, hid, usb-storage, uhci-hcd, ochi-hcd, ieee1394, ochi1394, and sbp2
-Mounts filesystems
Then:
>>Determining root device...
>>Block device /dev/hdg3 is not a valid root device
>>The root block device is unspecified or not detected [etc]
Then I get the boot() :: prompt
Excerpt from grub.conf:
Code: |
root (hd1,0)
kernel /boot/kernel-2.6.9-gentoo-r1 root=/dev/ram0 init=/linuxrc real_root=/dev/hdg3 vga=788
initrd /boot/kernel-2.6.9-gentoo-r1
|
Any help is appreciated. I'm too close to the finish line to dump Gentoo now. Besides, it's been rewarding getting this far alone.
- T. |
|
Back to top |
|
|
Hobbit_HK n00b
Joined: 11 Nov 2004 Posts: 54 Location: Israel
|
Posted: Wed Jan 05, 2005 12:39 pm Post subject: |
|
|
I don't know about your root problem (but I'm curious.. How did you go from hda to hdg?), but I think your video-mode needs to be in the new vesafb-tng way... But I don't remember what it is.. Check the docs in the kernel sources dir... _________________ - Hobbit HK
Don't use stage1\2 tarballs
Do a stage1 install from a stage3 tarball |
|
Back to top |
|
|
tlyons n00b
Joined: 05 Jan 2005 Posts: 2 Location: Ottawa, ON
|
Posted: Thu Jan 06, 2005 12:14 am Post subject: Drive letter |
|
|
The lettering scheme is odd, I'll admit. I'm not sure how it got to be hdg, but I have 2 fixed hard drives, 1 CD-ROM, 1 CD-RW, 1 removable 1.5GB drive (SyQuest SyJet), and a card reader (for memory sticks, etc) that shows up as a USB mass-storage device.
If the Linux drive was hdg when I made the linux partitions, is it still hdg now?
- T. |
|
Back to top |
|
|
Hobbit_HK n00b
Joined: 11 Nov 2004 Posts: 54 Location: Israel
|
|
Back to top |
|
|
[mX] n00b
Joined: 15 Jul 2004 Posts: 3
|
Posted: Wed Mar 09, 2005 6:23 am Post subject: |
|
|
Weird problem, I have Linux on hda and Windows on hdc. So I ran grub again, rebuilt the device list and saw them labeled as hd0 and hd1. So I used the same setup as above and I can start the computer, run Linux then reboot and switch to Windows fine. However, when I then reboot again and switch back to Linux my keyboard is locked.. Linux boots up fine, I watch dmesg scroll by, but the num lock key is stuck on and I get absolutely no response from the keyboard.. anyone seen anything like this? |
|
Back to top |
|
|
mantheorem Tux's lil' helper
Joined: 14 Mar 2005 Posts: 83 Location: (hd0) Boot Sector
|
Posted: Tue Mar 15, 2005 10:54 pm Post subject: Quick Question |
|
|
I followed Darth Daver's method of dual booting using two seperate hard drives. Is it possible to see my linux hard drive (my primary hard drive, hd0) when I am within windows xp, and access the files that are on it?
Thanks. _________________ Peace. Love. Gentoo. |
|
Back to top |
|
|
Garak128 Tux's lil' helper
Joined: 12 Mar 2004 Posts: 93
|
Posted: Thu Mar 17, 2005 10:40 pm Post subject: |
|
|
I've a similar problem.
I have 2 drives, but there on different controllers.
Gentoo on my Primary Master IDE controller drive, by itself. It shows up as controller 0 in bios.
Windows on my Primary Master Sata controller drive, by itself. It shows up as controller 2 in bios
I got:
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
Also set my devices.map to (not sure if this is correct):
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda
Entering that just displays,, well that text on the screen and nothing else happens, no getting back to grub, gota reboot..
Will this work then?:
title Windows XP
map (hd0) (hd1) # Tell the first hard drive to pretend to be the second
map (hd1) (hd0) # Tell the second hard drive to pretend to be the first
root (hd1,0) # Tell GRUB Windows is on /dev/hdb1 (No pretending here)
rootnoverify (hd1,0) # GRUB won't attempt to mount the Windows drive
makeactive # Sets the partition to active
chainloader +1 # Tells GRUB to load the Windows bootloader when done
PS: mantheorem, to access ext2/3 filesystems on windows : http://uranus.it.swin.edu.au/~jn/linux/ext2ifs.htm
That is a good driver, no write support tho.
Paragon Ext2fs anywhere is a commercial app that provides write support is another one, but I couldn't get that to work lately.
There's a few others, but ext2ifs works best for me. |
|
Back to top |
|
|
madikken n00b
Joined: 29 Aug 2004 Posts: 30
|
Posted: Sat Mar 26, 2005 3:46 pm Post subject: |
|
|
and it worked for me tooo....
goodi goddi
happy and smiling... _________________ -------------------------------------
!!! (no error message) |
|
Back to top |
|
|
mantheorem Tux's lil' helper
Joined: 14 Mar 2005 Posts: 83 Location: (hd0) Boot Sector
|
Posted: Sat Mar 26, 2005 4:20 pm Post subject: |
|
|
Garak128 wrote: |
PS: mantheorem, to access ext2/3 filesystems on windows : http://uranus.it.swin.edu.au/~jn/linux/ext2ifs.htm
That is a good driver, no write support tho.
Paragon Ext2fs anywhere is a commercial app that provides write support is another one, but I couldn't get that to work lately.
There's a few others, but ext2ifs works best for me. |
Thanks! _________________ Peace. Love. Gentoo. |
|
Back to top |
|
|
mantheorem Tux's lil' helper
Joined: 14 Mar 2005 Posts: 83 Location: (hd0) Boot Sector
|
Posted: Sat Mar 26, 2005 4:23 pm Post subject: |
|
|
Garak128 wrote: | I've a similar problem.
I have 2 drives, but there on different controllers.
Gentoo on my Primary Master IDE controller drive, by itself. It shows up as controller 0 in bios.
Windows on my Primary Master Sata controller drive, by itself. It shows up as controller 2 in bios
I got:
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
Also set my devices.map to (not sure if this is correct):
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/sda
Entering that just displays,, well that text on the screen and nothing else happens, no getting back to grub, gota reboot..
Will this work then?:
title Windows XP
map (hd0) (hd1) # Tell the first hard drive to pretend to be the second
map (hd1) (hd0) # Tell the second hard drive to pretend to be the first
root (hd1,0) # Tell GRUB Windows is on /dev/hdb1 (No pretending here)
rootnoverify (hd1,0) # GRUB won't attempt to mount the Windows drive
makeactive # Sets the partition to active
chainloader +1 # Tells GRUB to load the Windows bootloader when done
|
At the moment, I don't see anything that will prevent that setup from working. Also, it depends on what kernel you are using. _________________ Peace. Love. Gentoo. |
|
Back to top |
|
|
Bonxa n00b
Joined: 13 Apr 2005 Posts: 1 Location: Gothenburg, Sweden
|
Posted: Wed Apr 13, 2005 10:11 pm Post subject: |
|
|
Thanks a bunch for this guide. I now got a very good setup on two drives with both WinXP and Gentoo. Should be a breeze to reinstall Windows as well. |
|
Back to top |
|
|
UndercoverParrothead n00b
Joined: 12 Aug 2004 Posts: 15 Location: Stafford, VA
|
Posted: Sun Jul 10, 2005 1:24 am Post subject: Re: Doesn't work with my Win2K Pro install |
|
|
deanpence wrote: | Update: I "fixed" this situation on my own by completely avoiding the circumstances that led to the problem in the first place. Namely, I backed up gentoo, repartitioned the master HDD, installed Windows on the first partition, restored gentoo, and installed grub on the MBR. Works like a charm like that. I still have no idea why the two-disk setup didn't work.
Original Post:
Thanks for the tip, Darth_Daver, but this doesn't work with my configuration. I get this error message from NT's boot loader:
Code: | Windows 2000 could not start because the following file is missing or corrupt:
<windows 2000 root>\system32\ntoskrnl.exe.
Please reinstall a copy of the above file. |
I've got Gentoo on the master HDD and Windows 2K Pro (SP4) on the slave HDD. |
I've got the exact same issue, with the exact same setup. /dev/hda is a 160GB Linux Drive, /dev/hdb is my 8GB Win2k drive. If I disconnect /dev/hda and boot using /dev/hdb as the primary, Windows boots fine. Trying to boot via Grub, however, leads to the same error message as the OP.
I really don't want to go back and repartition things again. Any thoughts? |
|
Back to top |
|
|
darcon n00b
Joined: 26 Jun 2004 Posts: 46
|
Posted: Sun Jul 10, 2005 3:12 am Post subject: Re: Doesn't work with my Win2K Pro install |
|
|
UndercoverParrothead wrote: | deanpence wrote: | Update: I "fixed" this situation on my own by completely avoiding the circumstances that led to the problem in the first place. Namely, I backed up gentoo, repartitioned the master HDD, installed Windows on the first partition, restored gentoo, and installed grub on the MBR. Works like a charm like that. I still have no idea why the two-disk setup didn't work.
Original Post:
Thanks for the tip, Darth_Daver, but this doesn't work with my configuration. I get this error message from NT's boot loader:
Code: | Windows 2000 could not start because the following file is missing or corrupt:
<windows 2000 root>\system32\ntoskrnl.exe.
Please reinstall a copy of the above file. |
I've got Gentoo on the master HDD and Windows 2K Pro (SP4) on the slave HDD. |
I've got the exact same issue, with the exact same setup. /dev/hda is a 160GB Linux Drive, /dev/hdb is my 8GB Win2k drive. If I disconnect /dev/hda and boot using /dev/hdb as the primary, Windows boots fine. Trying to boot via Grub, however, leads to the same error message as the OP.
I really don't want to go back and repartition things again. Any thoughts? |
This is just a guess but maybe you have your harddrvies both set on cableselect? So when only the win2k HD is plugged in it's hda(master), but when you plug in the linux drive(hda) the win2k drive becomes hdb(slave). So windows boot code is looking on hda when your windows install is actually on hdb now. The only way to fix this without repartioning that I can think of is to make the win2k drive hda and then install grub on it.
Another solution you can look into is running recovery console from win2k install disc and using the fixmbr command while win2k is hdb. I've never tried this tho so I'm not sure if it will work. Hopefully it's smart enough to write the mbr to hdb instead of overwritting grub on hda. |
|
Back to top |
|
|
UndercoverParrothead n00b
Joined: 12 Aug 2004 Posts: 15 Location: Stafford, VA
|
Posted: Sun Jul 10, 2005 3:56 am Post subject: Re: Doesn't work with my Win2K Pro install |
|
|
darcon wrote: |
This is just a guess but maybe you have your harddrvies both set on cableselect? So when only the win2k HD is plugged in it's hda(master), but when you plug in the linux drive(hda) the win2k drive becomes hdb(slave) but when you plug in the linux drive(hda) the win2k drive becomes hdb(slave). |
Actually...regardless, my Windows HDD shows up as the Primary Slave, which is what it should be, regardless of whether or not I have the Primary Master drive connected. This also holds true for when I have the cable positions switched - my linux HDD still shows up as the master, and the Windows drive as the slave. That Windows drive has always been funky when it comes to jumpering though - perhaps it bears looking at.
darcon wrote: | So windows boot code is looking on hda when your windows install is actually on hdb now. The only way to fix this without repartioning that I can think of is to make the win2k drive hda and then install grub on it.
Another solution you can look into is running recovery console from win2k install disc and using the fixmbr command while win2k is hdb. I've never tried this tho so I'm not sure if it will work. Hopefully it's smart enough to write the mbr to hdb instead of overwritting grub on hda. |
Hmm, that second option is a possibility. I'll give it a shot. |
|
Back to top |
|
|
wesw02 Apprentice
Joined: 10 Nov 2004 Posts: 213 Location: Dayton, Ohio, USA
|
Posted: Thu Oct 20, 2005 6:05 am Post subject: |
|
|
i have to get my thank you in, so thanks alot man |
|
Back to top |
|
|
nkmcc n00b
Joined: 22 Nov 2005 Posts: 13
|
Posted: Fri Nov 25, 2005 9:36 am Post subject: Thanks |
|
|
Thanks a bunch - that disk swapping trick is great.
-Neal |
|
Back to top |
|
|
Sakkath Apprentice
Joined: 06 Nov 2005 Posts: 198 Location: Pawtucket, RI
|
Posted: Thu Feb 16, 2006 10:11 pm Post subject: |
|
|
Thanks a bunch; this appeared to help many people, including me!!! This was a perfect topic, a first google result for "gentoo windows dualboot" .
I'm just a little worried, for my situation is a little different. At the moment I have windows on a master IDE drive. I got a new SATA drive I want to put Gentoo on, and of course, make that the master. I'm wondering how it would work out with one SATA and one IDE. I never used a SATA drive before. I want Windows to think it's a master IDE drive so I don't encounter problems, for it is the master at the moment. Would I put it on the slave cable, and the SATA on the first SATA port? I'm not sure how to set up master & slave, and quite how to boot.
Any help would really be appreciated! |
|
Back to top |
|
|
Sakkath Apprentice
Joined: 06 Nov 2005 Posts: 198 Location: Pawtucket, RI
|
Posted: Thu Feb 16, 2006 10:34 pm Post subject: |
|
|
Sorry, I figured it out. I'd have a master IDE and a master SATA. I wouldn't have to map the devices, I was told hd0 would be defautly /dev/sda and hd1 would be /dev/hda, so I could do the normal linux boot and for windows it would be rootnoverify (hd1,0) and that should work, so I was told in #Linux on EFnet. If I experience errors, when I finally get the setup going, when I get the PSU for SATA, ordered it today, I'll explain my problems and solutions for reference to other users. |
|
Back to top |
|
|
carpman Advocate
Joined: 20 Jun 2002 Posts: 2202 Location: London - UK
|
Posted: Mon Jul 10, 2006 12:03 pm Post subject: |
|
|
Hello, ok am trying to dual boot using Hardware based sata controller on which i have 5 drives which are setup as 2 for linux with mixture of raid0 raid1 arrays, the other 3 are in raid0 raid5 but used for windows and backups.
/boot is set as boot dirve in controller and is on /dev/sda1 (hd0), i have windows installed on dev/sde1 (hd15)
When i try booting to windows i error 12 ?
Any idea where i going wrong?
Can get windows to boot if set it to boot disk in controller but don't want that hassel.
cheers
grub.conf
Code: |
# The next four lines are only if you dualboot with a Windows system.
# In this case, Windows is hosted on /dev/hda6.
title=Windows 2000
makeactive
map (hd0) (hd15) # Tell the first hard drive to pretend to be the second
map (hd15) (hd0) # Tell the second hard drive to pretend to be the first
root (hd15,0)
rootnoverify (hd15,0)
makeactive
chainloader +1
|
Code: |
fdisk -l
Disk /dev/sda: 1180 MB, 1180696576 bytes
255 heads, 63 sectors/track, 143 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 143 1044225 5 Extended
/dev/sda5 14 143 1044193+ 83 Linux
Disk /dev/sdb: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 7832 62910508+ 5 Extended
/dev/sdb5 1 637 5116639+ 82 Linux swap / Solaris
/dev/sdb6 638 1912 10241406 83 Linux
/dev/sdb7 1913 5737 30724281 83 Linux
/dev/sdb8 5738 5864 1020096 83 Linux
/dev/sdb9 5865 7139 10241406 83 Linux
/dev/sdb10 7140 7832 5566491 83 Linux
Disk /dev/sdc: 75.1 GB, 75161927680 bytes
255 heads, 63 sectors/track, 9137 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 9137 73392921 5 Extended
/dev/sdc5 1 2550 20482812 83 Linux
/dev/sdc6 2551 6374 30716248+ 83 Linux
/dev/sdc7 6375 7649 10241406 83 Linux
/dev/sdc8 7650 8286 5116671 83 Linux
/dev/sdc9 8287 9137 6835626 83 Linux
Disk /dev/sdd: 6647 MB, 6647971840 bytes
255 heads, 63 sectors/track, 808 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 808 6490228+ 5 Extended
/dev/sdd5 1 191 1534144+ 83 Linux
/dev/sdd6 192 446 2048256 83 Linux
Disk /dev/sde: 53.6 GB, 53684994048 bytes
255 heads, 63 sectors/track, 6526 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 * 1 6526 52420063+ 7 HPFS/NTFS
Disk /dev/sdf: 107.3 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 13054 104856223+ 5 Extended
/dev/sdf5 1 13054 104856192 83 Linux
Disk /dev/sdg: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdg1 1 19581 157284351 5 Extended
/dev/sdg5 1 19581 157284319+ 83 Linux
Disk /dev/sdh: 24.9 GB, 24970788864 bytes
255 heads, 63 sectors/track, 3035 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdh1 1 3035 24378606 5 Extended
/dev/sdh5 1 13 104359+ 83 Linux
/dev/sdh6 14 3035 24274183+ 83 Linux
|
_________________ Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb |
|
Back to top |
|
|
Athena1988 n00b
Joined: 19 Jul 2004 Posts: 34
|
Posted: Thu Sep 14, 2006 3:26 am Post subject: |
|
|
Thank you so much! I hate windows but my parents use it. This was the last little bug I had when upgrading my drive!
Athena |
|
Back to top |
|
|
|
|
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
|
|