netkas.org forum

General Category => PC EFI => Topic started by: 314TeR on December 12, 2007, 11:17:05 AM



Title: Booting EFI Leo form second HDD by grub on first disk
Post by: 314TeR on December 12, 2007, 11:17:05 AM
I have problem with booting Leo from second hdd.
I have 2 disk:
disk0s1 – XP
disk0s2 – Linux
in MBR of disk0 installed Linux Grub
disk1s1 – Leo
disk1s2 – Data

Leo work with EFI v8 on MBR partition and vanilla kernel. In bios post I can chose to boot temporally from different disk, and when I chose to boot form disk1 – Leo boot OK and all works OK.

My problem is to boot automatically Leo form Grub. I want to have all 3 system form one boot manager. I make needed changes from readme to menu.lst ant copy boot_v8 to /boot of Linux partition, but when I select on booting Leo form grub the call boot_v8 and by default boot disk 80 after 5 seconds, but disk 80 is disk0, and boot XP :/. Is any possibility to change default boot disk from 80 to 81 in boot_v8.

PS Sorry form my English – its may secondary language.


Title: Re: Booting EFI Leo form second HDD by grub on first disk
Post by: VaKo on December 12, 2007, 11:35:15 AM
in early versions of efi netkas gave drub_81 loader for this situations, so try to ask him to do the same with boot_v8 loader.
think it's possible (dreamin' about same thing  :) )


Title: Re: Booting EFI Leo form second HDD by grub on first disk
Post by: gotoh on December 12, 2007, 02:41:12 PM
you could just point grub in disk0 to boot from disk1 (not disk1s1) if it is MBR. Then map in grub disk0 to disk1 and disk1 to disk0 - I don't have the correct syntax in mind, something like this I think :

map (hd0) (hd1)
map (hd1) (hd0)

to put at the end of the OS X boot part of boot.lst


Title: Re: Booting EFI Leo form second HDD by grub on first disk
Post by: 314TeR on December 13, 2007, 06:50:52 PM

map (hd0) (hd1)
map (hd1) (hd0)


Unfortunately that don't work :(

only display:
HFS+ partition error

Is any other boot manager, and then can do this?


Title: Re: Booting EFI Leo form second HDD by grub on first disk
Post by: consolation on December 14, 2007, 06:54:03 AM
Use boot_grub_81 from pc_efi_6_bootloaders folder. Place it anywhere grub can read & add it to your menu.lst, for example this is mine; it boots windows, linux, and a small test OSX install from partitions on hd0 and uses boot_81 to start up the main OSX drive on hd1. Note that both boot loaders live on the linux partition at hd0,1.

title MEPIS
root (hd0,1)
kernel /boot/vmlinuz root=/dev/sda2 nomce quiet splash vga=791 resume=/dev/sda3
boot

title      Leo EFI Boot
root      (hd0,1)
kernel      /pc_efi/boot_grub_81

title      Windows
root      (hd0,0)
makeactive
chainloader   +1

title      Cub boot V5
root      (hd0,1)
kernel      /pc_efi/boot_v8



P.S. Gotoh's remaping method should work. I found that with OS X, the remap had to go at the beginning of boot.lst. You then had to adjust all the root vars to match the new remap. YMMV; I had not tried it with EFI, just the old chainloader.


Title: Re: Booting EFI Leo form second HDD by grub on first disk
Post by: 314TeR on December 16, 2007, 07:39:00 PM
Thanks to ALL  ;D

boot_grub_81 - works perfectly