View previous topic :: View next topic |
Author |
Message |
Mos n00b
Joined: 17 Mar 2003 Posts: 48 Location: Brussels, Belgium
|
Posted: Thu Mar 16, 2006 4:29 pm Post subject: dualboot: windows overwrites partition table types |
|
|
I have a dualboot system (Acer tm 4150) with next partition layout:
hdc1 (primary) --> ext3 --> boot files
hdc2 (primary) --> reiserfs --> GENTOO
hdc3 (primary) --> NTFS --> WIN XP
hdc5 (extended/logical) --> swap
hdc6 (extended/logical) --> reiserfs
The first partition contains grub config files, and linux kernels (the gentoo way). The second gentoo, the third Windows.
I installed windows after gentoo, re-wrote MBR to reinstall grub. Both gentoo and Windows are fine for starting up, BUT when I restart the computer after I have start up in Windows, the machines halts, because grub cannot be loaded anymore (error 17 -- it doesn't recognize the first partition).
Then, when booting with a live-CD, the cfdisk program showed all the partitions were there, but the types of the partitions proceding the Windows partition had changed to "amoebe", instead of linux or ext3 or something alike.
When I re-set the value for the first partition to "ext3", I can boot again.
This is my grub setup for windows:
Code: |
title Win XP
rootnoverify (hd0,0)
unhide (hd0,2)
hide (hd0,0)
hide (hd0,1)
makeactive
bootloader +1
|
Ah, and what is a bit strange and maybe related, when I boot linux, the harddisk, although there is only one in the machine, is recognized as /dev/hdc, the DVD as /dev/hdd, instead of /dev/hda and /dev/hdb.
Anyone a clue how I can prevent windows to alter the MBR? Did I miss something in the grub setup? Is there some magic BIOS intervention/circumvention?
Many thanks |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Thu Mar 16, 2006 4:46 pm Post subject: |
|
|
I'd recommend something like this:
Code: |
title Windows
rootnoverify (hd0,2)
chainloader +1
|
And your HDD is hdc because it is connected in an unconventional way. Bootable hard drive should be master on primary controller. |
|
Back to top |
|
|
dmartinsca Guru
Joined: 09 Dec 2005 Posts: 303 Location: Ontario, Canada
|
Posted: Thu Mar 16, 2006 5:06 pm Post subject: |
|
|
hide and unhide should only be needed when there is more than one windows/DOS install on a disk.
I'd check the IDE cables in your PC and make sure they're hooked up to the master IDE channel on your motherboard. Also, if you only have 2 devices connected by IDE, you'd be best off to have them on seperate IDE channels, both set as master. This should make them appear as hda and hdc
Quote: | Another problem arises if you installed more than one set of
DOS/Windows onto one disk, because they could be confused if there are
more than one primary partitions for DOS/Windows. Certainly you should
avoid doing this, but there is a solution if you do want to do so. Use
the partition hiding/unhiding technique.
If GRUB "hide"s a DOS (or Windows) partition (*note hide:, DOS (or
Windows) will ignore the partition. If GRUB "unhide"s a DOS (or
Windows) partition (*note unhide:, DOS (or Windows) will detect the
partition. Thus, if you have installed DOS (or Windows) on the first
and the second partition of the first hard disk, and you want to boot
the copy on the first partition, do the following:
grub> unhide (hd0,0)
grub> hide (hd0,1)
grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> makeactive
grub> boot |
|
|
Back to top |
|
|
Mos n00b
Joined: 17 Mar 2003 Posts: 48 Location: Brussels, Belgium
|
Posted: Fri Mar 17, 2006 8:44 am Post subject: |
|
|
Jaglover: removing the "hide" lines solves the problem. I just did it because I had to, before, on a harder setup for the partitions.
Thanks a lot !!!
dmartinsca:
Quote: |
I'd check the IDE cables in your PC and make sure they're hooked up to the master IDE channel on your motherboard. Also, if you only have 2 devices connected by IDE, you'd be best off to have them on seperate IDE channels, both set as master. This should make them appear as hda and hdc
|
What can I say about this one.... it has been set up this way when I bought my ACER laptop. I think I'm starting to understand why the're so cheap |
|
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
|
|