Re: dual boot - xp behaves strange



Hi,

I ran "find /boot/grub/stage1" in grub console and the result was
(hd0,0). I think this means that grub is installed on the first
partition. The first partition is the Ubuntu partition.

Now, if I install grub on MBR, will I end up having 2 grubs?

Btw, just to clarify, I can boot both operating systems (Windows and
Ubuntu). The problem is that when I boot Windows, it disables to boot
flag from the Ubuntu partition. So, in order to be able to boot Ubuntu
again, I use "diskpart" in Windows and set back the boot flag on the
Ubuntu partition.

I would prefer a solution where I don't have to install any of the systems.

Thank you very much,
Ray

Clive Menzies wrote:
On (18/01/07 17:16), Rares Vernica wrote:
How can I repair the part that Grub needs and Windows overwrote?

There are probably a number of ways to do this and your need to know
which partition holds / and /boot (often they are one and the same).
Booting from the Ubuntu CD should allow your to mount the partitions and
verify where they are.

The way I do it is boot with D(ebian) F(rom) S(cratch)
http://people.debian.org/~jgoerzen/dfs/html/
and at the grub menu press 'c' to give you a grub prompt. at the prompt
type the following and check the responses; if there are errors you need
to work out what information you've entered incorrectly:

root (hd0,x) # where 0 is first disk and x is the partition number
# minus 1 (eg if boot is on hda3, you type hd0,2)

kernel /vmlinuz root=/dev/hday # where y = / partition

initrd /initrd.img

boot

Once booted into your system run:

$ sudo grub-install /dev/hda

$ sudo update-grub

You should then have a dual boot system recovered.


YMMV

Regards

Clive



--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • fixing grub : mbr fix when windows install after linux
    ... "There is not a boot manager screen at all, ... windows but GRUB boot window does not appear. ... "I forgot to install GRUB, I didn't install GRUB in the MBR, I chose ... Fedora but that was not an active primary partition". ...
    (comp.os.linux.misc)
  • Re: Fedora Core 2/Windows XP dual boot: selecting Linux doesnt work
    ... grub is installed on the /root partition, which is the first partition on hdc: hdc1, or in grub notation. ... Stage1 is the unpatched 512-byte file, that is patched and copied to the boot record during setup. ... This byte is initialized to 0xff in the stage1 file, but patched to 0x81 in your setup, to say "we are booting from disk." ...
    (comp.os.linux.setup)
  • Re: Restore /boot? (wiped out by ubuntu install)
    ... ubuntu *insisted* on ... The other choice was to use the /boot partition on /dev/sda which was also in use by fc 6. ... create a new partition where you can boot ubuntu from. ... Since both the fc 6 on sda and f8 installed on sdb are lvm based, creating a new partition would require wiping the drive, I think, Instead I had created some new LogVol's on the copious free space of 500G sdb for ubuntu where it installed OK previously. ...
    (Fedora)
  • Re: [opensuse] Yast & Grub bootloader different.
    ... My Grub bootup menu is different than the bootloader ... that shows up on the logon screen aat boot time. ... any boot loader for that matter, can only operate on one /boot partition at ... Grub doesn't scour the all hard drives on each install ...
    (SuSE)
  • Re: [Fwd: Re: [opensuse] Boot magic]
    ... Since I installed some milestones I can no longer boot the partition I want. ... I installed on part3 milestone 6 with its own boot directory in the rootdir. ... I only use the milestone 6 grub environment against my will. ...
    (SuSE)