Ron Hunter-Duvar wrote:

On 2006 September 8 22:21, CJ Kelley wrote:
Graham Watkins <[EMAIL PROTECTED]> wrote: Hi all,

Bit of a cheeky one, this.

I've just installed Ubuntu on my system which also has Mandriva 2006
(default) and Windows 2000. However, when I rebooted, GRUB initially
just stalled.  I was able to fix this by running the Mandriva DVD's
rescue but when I got it back Ubuntu was not an option.

I'm guessing I have to create some sort of entry in menu.1st for GRUB to
be able to find it but I'm far from sure as to what this is supposed to
look like.  I can mount the Ubuntu partition (hdb3) as /ub which enables
me to see it in Mandriva thought I suspect I'll have to change that to
get things running.

All suggestions welcome.

Graham


---cjs reply---
Ok, heres how you should dual boot:

First install windows 2000 (because that needs to be in the master sectors
to boot properly when dualbooting)

Second, install mandriva. This gives mandriva a chance to look at the oses
setup on the computer and prepare a list for its bootloader

Third, Install Ubuntu. Same with mandriva, it gives GRUB a chance to look
at the oses setup on there.

If you install ubuntu be4 mandriva, then mandriva wont be responsible for
preparing the list, ubuntu will. But with the order listed, mandriva will
prepare the list. Windows 2000 doesnt see mandriva or ubuntu as oses, so
you should definately install windows first, otherwise it will overwrite
the boot sectors and you will loose grub ---end of reply---

If you do install Ubuntu and Grub first, then yes, you have to manually add an entry to menu.lst for Mandriva. You also have to be careful when you install Mandriva to tell it not to install its boot loader to the MBR (the default), as this will overwrite Grub with Mandriva's Lilo.

I did something similar, except that I used DamnSmallLinux to setup Grub. I told Mandriva to install its boot loader to the first sector of the partition (the PBR). Then I tried chain-loading to the Mandriva loader, but for some reason I've never figured out this breaks my X and I get command line only. So I ended up adding a direct boot entry. Here are the two entries I have for Mandriva in my menu.lst (note that the kernel line is all one line, but my mailer split it):


title Mandriva 2006 (direct)
root (hd0,6)
kernel /boot/vmlinuz root=/dev/hda7 initrd=/boot/initrd.img append="acpi=on resume=/dev/hda3 splash=silent" vga=788 ro

title Mandriva 2006 (chained) - X broken
root (hd0,6)
chainloader +1


Another useful Grub trick is to create a boot floppy and/or cd. I created a boot cd, because I have a legacy-free pc (no floppy), using the instructions found here:

http://www.gnu.org/software/grub/manual/html_node/Making-a-GRUB-bootable-CD_002dROM.html

So if the MBR or the menu.lst file ever get trashed, I can still boot Grub. I just created a barebones cd, so I then have to manually boot into DSL and reinstall Grub to the MBR. With a little more work, I could add my menu.lst to the cd, and the files to be able to reinstall Grub directly from the cd to the MBR. One of these days...

Hello folks,

for anyone who's been curious about this, I have now managed to solve the problem by doing a reinstallation of Ubuntu, but this time creating an additional partition called /boot. The boot files including Grub are installed here. Ubuntu writes its own Grub installation to the MBR on hda1, having mysteriously detected the other installations. Doing it this way has given me access to both Ubuntu and Mandriva (haven't tried windows yet).

If anyone requires any more info about this I'll gladly provide it.

Cheers,

Graham

--
Immorality: the morality of those who are having a better time. - H. L.
Mencken  (1880 - 1956)

____________________________________________________
Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________

Reply via email to