Page 7 of 123 FirstFirst ... 567891757107 ... LastLast
Results 61 to 70 of 1226

Thread: grub2 EFI boot loader internal/external booting

  1. #61
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by shadowdude1794 View Post
    So I just tried it, rEFIt CD, 8 gb usb drive, and grub64 in /EFI/ on both the usb drive and the internal hdd. I can get into grub,which is a step forward, but I've tried all of the menu boot options and none of them boots for me. All of the "search sdb3/sda3" etc. post to the screen about 4 lines, and then after a few seconds a 5th appears, then the cd drive stops spinning and the usb drive stops being accessed. I've always been bad with grub menu entries, so this could just be my own idiocy. Any help is greatly appreciated (macbook4,1)
    When you have the cd in use, it changes all the grubefi drive names around, so the example menu selections probably wont work, and I think there were other complictions. In short, for starters, use refit installed to macosx and without any CD, or install refit to the usb drive, enable it. Then you can test gru-efi without any CD.
    Also , do a restart to make sure the configuration is updated in EFI.

    You should be able to see from the grubefi command line where everything is grubwise.
    Code:
    grub> ls -l
    It will help understand it if you play around a bit with the grub command line ( 'c' from the menu ) using
    Code:
    grub> set root=(hd0,1)
    grub> ls -l /
    and change the grub root setting to see what is on each partition
    <TAB> or help for acommand list

    It is simply a matter of getting correct grub root (hdx,x) and ubuntu root=/dev/sdx,x.
    Don't try to boot a Ubuntu live CD from grub-efi, I am not sure it that works.

    If you still have difficulty sorting it out, you will need to post your partition list from Macosx or ubuntu live cd, and a bit more detail on what you have installed there and what you are trying to boot.
    Last edited by pxwpxw; January 24th, 2009 at 06:25 AM. Reason: code/\][}

  2. #62
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    grub.efi command line booting example -
    (With typical boot messages shown).

    This might help to understand the grub.cfg menuentry.
    This example is for a MacBook2,1 running ubuntu810, i386.

    With ubuntu / at hd0,3 = /dev/sda3
    and symbolic links for kernel -
    /vmlinuz->/boot/vmlinuz-2.6.27-7-generic
    /initrd.img->/boot/initrd.img-2.6.27-7-generic

    Adapt for your (hdx,x) and /dev/sdxx) configuration.

    Note that <TAB> completion works, linux /vml<TAB> should complete vmlinuz... , very useful if you are looking for full kernel name.

    Code:
    grub> search /vmlinuz
    ## will only find symlink /vmlinuz
    ## alternately sarch /boot/vmlinuz-2.6.27-7-generic
    
    grub> set root=(hd0,3)
    ## to see the root=  setting
    grub> set
    
    ## load the kernel, must use the efifb or initializtion will hangup
    grub> linux /vmlinuz root=/dev/sda3 video=efifb
    
    	Booting .....
     [Linux bzimage, setup=0x3000, size=0x220cb0]
      Video mode: 1280x800-32@59
      Video frame buffer: 40000000
    
    grub> initrd /initrd.img
    
      [Initrd, addr=0x3a914000, size=7cc3ab]
    
    grub> boot
    
    ## initialization script text messages follow
    Last edited by pxwpxw; January 23rd, 2009 at 07:27 AM.

  3. #63
    Join Date
    Mar 2008
    Location
    In a fantasy land
    Beans
    96
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    So how would I adapt this for mine? I have the internal hdd and then the flash drive which has 3 partitions(in order): 8.10, swapper, and a swap partition. This is the part that always trips me up, would the flash drive be hd1, then making the Ubuntu partition (hd1,0)?
    Last edited by shadowdude1794; January 23rd, 2009 at 07:28 AM. Reason: typos

  4. #64
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by shadowdude1794 View Post
    So how would I adapt this for mine? I have the internal hdd and then the flash drive which has 3 partitions(in order): 8.10, swapper, and a swap partition. This is the part that always trips me up, would the flash drive be hd1, then making the Ubuntu partition (hd1,0)?
    Well I need a bit more info - happy to help here.

    From MacOSX, with the USB stick in, but no CD.
    Code:
    diskutil list
    post result.

    Then from grubefi command line
    Code:
    grub> ls
    You will have to hand copy it. Post result.
    And what is 'swapper' ?

    Edit - I should have confirmed this before =
    Have you found the grub.cfg file - it is in the grub64 folder with all the modules. That is where the menu is controlled.
    Last edited by pxwpxw; January 23rd, 2009 at 03:13 PM. Reason: grub.cfg

  5. #65
    Join Date
    Mar 2008
    Location
    In a fantasy land
    Beans
    96
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Yes I have found the grub.cfg file, "swapper" is the 100mb partition that I made on the flash drive formatted as fat32 so that I can have cross compatibility with OS X. Also, how do I get to the Grub console?

  6. #66
    Join Date
    Mar 2008
    Location
    In a fantasy land
    Beans
    96
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Ok, so the output of ls -l
    Code:
    grub> ls -l
    Device hd0: Partition table
    
    Partition hd0,1: Unknown filesystem
    Partition hd0,2: Filesystem type hfsplus
    Device hd1: Partition table
    Partition hd1,1: Filesystem type ext2, UUID 3109b1c3-20c3-41a2-051b-4ddc5c60eb00
    Partition hd1,2: Unknown filesystem
    Partition hd1,3: Filesystem type fat, Label swaper , UUID 78f8-f88c
    Device hd2: Partition table
    Partition hd2,1: Filesystem type fat, Label EFI , UUID 6011-11f4
    Partition hd2,2: Filesystem type hfsplus
    Last edited by shadowdude1794; January 24th, 2009 at 05:04 AM. Reason: Forgot a line.

  7. #67
    Join Date
    Mar 2008
    Location
    In a fantasy land
    Beans
    96
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    I tried messing with grub, the output of it:
    Code:
    grub> search /vmlinuz
      hd1,1
    grub> set root=(hd1,1)
    grub> linux /vmlinuz root=dev/sdb1 video=efifb agp=off
          [Linux-bzImage, setup=0x3000, size=0x220cb01]
    Video mode: 1280x800-32@59
    Video frame buffer: 80000000
    grub> initrd /initrd.img
          [Initrd, addr=0x3f823000, size=0x7ccb54]
    grub> boot
    _
    It just freezes after this, maybe I'm doing something wrong?

  8. #68
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by shadowdude1794 View Post
    I tried messing with grub, the output of it:
    Code:
    grub> search /vmlinuz
      hd1,1
    grub> set root=(hd1,1)
    grub> linux /vmlinuz root=dev/sdb1 video=efifb agp=off
          [Linux-bzImage, setup=0x3000, size=0x220cb01]
    Video mode: 1280x800-32@59
    Video frame buffer: 80000000
    grub> initrd /initrd.img
          [Initrd, addr=0x3f823000, size=0x7ccb54]
    grub> boot
    _
    It just freezes after this, maybe I'm doing something wrong?
    You are not doing anything wrong. That shows grub.efi is loading the kernel vmlinuz and initrd and what follows just depends on the ubuntu installation startup. You need to give it about 5 minutes to see if there is anything happening at the end - some time outs are involved, you may see or hear something.

    I need to have a good look at what you have posted, but a couple of things to go on with while I do that -

    would you please run
    Code:
    diskutil list
    from MacOSX terminal and post.

    your grub> ls -l shows 3 drives, what are they?

    What is the ubuntu version and is it i386 or amd64, or do you know what is the full kernel name /boot/vmlinuz-2.6.27-7 ???? .

  9. #69
    Join Date
    Mar 2008
    Location
    In a fantasy land
    Beans
    96
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Ok, so I actually waited about 5-10 minutes for it to load, it never did. I tried that command, gave me an error, can you do without it? The three drives are the internal hard drive, the flash drive, and the CD drive which rEFIt is on. As for full kernel name, vmlinuz-2.6.27-7-generic.


    EDIT: It's i386
    Last edited by shadowdude1794; January 24th, 2009 at 06:01 AM.

  10. #70
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: grub2 EFI boot loader internal/external booting

    Quote Originally Posted by shadowdude1794 View Post
    Ok, so I actually waited about 5-10 minutes for it to load, it never did. I tried that command, gave me an error, can you do without it? The three drives are the internal hard drive, the flash drive, and the CD drive which rEFIt is on. As for full kernel name, vmlinuz-2.6.27-7-generic.


    EDIT: It's i386
    You have to install refit on your MacOSX partition so that you can do it without the refit cd, that is screwing it all up.

    Easiest way - download the refit dmg to desktop, open it and follow instructions.
    Last edited by pxwpxw; January 24th, 2009 at 07:12 AM.

Page 7 of 123 FirstFirst ... 567891757107 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •