Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 52

Thread: Blessable Boot Partition

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

    Re: Blessable Boot Partition

    Can we just get some information together here, you are just trying to do some things the wrong way.

    Firstly, have you had the ubuntu installation running at all?

    Also -
    Search will only find files, not directories.
    If you want to see what is in a directory
    Code:
    grub> ls /
    Correct me if I have this wrong -

    grub> search /vmlinuz
    found /vmlinuz on (hd0,4)

    (hd0,4) is grub talk
    - it is the same partition that linux calls /dev/sda4.
    grub is finding /vmlinuz using search and loading vmlinuz from there.
    So that looks ok.

    Now if you have your ubuntu root installation on /dev/sda4 with /vmiinuz, the grub.cfg with linux root=/dev/sda4 shoudl be working. and my grub.cfg should work for you.

    But you may have a different configuration (2 separate partitions for linux)

    So you need to recheck the partitions first.

    Please go into Macosx.

    In a terminal run these commands

    Code:
    sudo diskutil list
    sudo gpt -r show /dev/disk0
    If you have the rEFIt Partitiion Inspector, run that.

    Then post the results.

    Also have you installed Intrepid and do you have the Desktop CD or the Alternate install?
    Last edited by pxwpxw; November 29th, 2008 at 08:57 AM.

  2. #12
    Join Date
    Nov 2008
    Beans
    35

    Re: Blessable Boot Partition

    Firstly, have you had the ubuntu installation running at all?
    Yes, I'm using it right now. I still have the old bootloaders on here, but they're on an ext3 partition that can't be accessed from OSX.

    Search will only find files, not directories.
    I thought /dev/sda4 would count as a file

    I got some interesting results when using the ls command in grub
    Code:
    grub>root=(hd0,4)
    grub>ls /dev
    this printed ~40-50 things, but nothing like sda# or hda#, or really anything that looks like it could be a partition
    While booted into linux, ls -A /dev returns no less than 720 results.

    I am using Intrepid, with the alternate installer, but I still have several fedora live CD's and a live CD of Gutsy Gibbon. I also have a Gparted live cd.

    EDIT: I booted into OSX and ran the commands
    Code:
    sudo diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *186.3 Gi   disk0
       1:                        EFI                         200.0 Mi   disk0s1
       2:                  Apple_HFS HD                      169.9 Gi   disk0s2
       3:                  Apple_HFS HD_2                    896.0 Mi   disk0s3
       4:       Microsoft Basic Data                         13.4 Gi    disk0s4
       5:                 Linux Swap                         1.8 Gi     disk0s5
    
    sudo gpt -r show /dev/disk0
    gpt show: /dev/disk0: Suspicious MBR at sector 0
          start       size  index  contents
              0          1         MBR
              1          1         Pri GPT header
              2         32         Pri GPT table
             34          6         
             40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
         409640  356253696      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
      356663336     262144         
      356925480    1835008      3  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
      358760488   28125001      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
      386885489    3836446      5  GPT part - 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F
      390721935         32         Sec GPT table
      390721967          1         Sec GPT header
    
    rEFIt partition inspector.
    *** Report for internal hard disk ***
    
    Current GPT partition table:
     #      Start LBA      End LBA  Type
     1             40       409639  EFI System (FAT)
     2         409640    356663335  Mac OS X HFS+
     3      356925480    358760487  Mac OS X HFS+
     4      358760488    386885488  Basic Data
     5      386885489    390721934  Linux Swap
    
    Current MBR partition table:
     # A    Start LBA      End LBA  Type
     1              1       409639  ee  EFI Protective
     2         409640    356663335  af  Mac OS X HFS+
     3      356925480    358760487  af  Mac OS X HFS+
     4 *    358760488    386885488  83  Linux
    
    MBR contents:
     Boot Code: Unknown, but bootable
    
    Partition at LBA 40:
     Boot Code: None (Non-system disk message)
     File System: FAT32
     Listed in GPT as partition 1, type EFI System (FAT)
    
    Partition at LBA 409640:
     Boot Code: None
     File System: HFS Extended (HFS+)
     Listed in GPT as partition 2, type Mac OS X HFS+
     Listed in MBR as partition 2, type af  Mac OS X HFS+
    
    Partition at LBA 356925480:
     Boot Code: None
     File System: HFS Extended (HFS+)
     Listed in GPT as partition 3, type Mac OS X HFS+
     Listed in MBR as partition 3, type af  Mac OS X HFS+
    
    Partition at LBA 358760488:
     Boot Code: None
     File System: ext3
     Listed in GPT as partition 4, type Basic Data
     Listed in MBR as partition 4, type 83  Linux, active
    
    Partition at LBA 386885489:
     Boot Code: None
     File System: Unknown
     Listed in GPT as partition 5, type Linux Swap
    I updated the MBR in rEFIt, and now rEFIt will no longer boot ubuntu.
    Last edited by user12021; November 29th, 2008 at 04:19 PM.

  3. #13
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Blessable Boot Partition

    The partitioning looks good,
    If that is ubuntu linux root partition at 4, thats /dev/sda4
    grubefi sees it as (hd0,4)

    your grub-pc uses the MBR, but grub.efi does not, so can you still run grub.efi?

    If you can, please get to the grub.efi command line using 'c'
    then just
    Code:
    grub> ls -l
    This should show you a list of all the partitions.
    Just do that, you are getting confused by using difficult commands for grub.efi
    It is not like grup-pc the old versiion, do not confuse the 2.

    Then please post the grub.cfg menu you are using.
    Last edited by pxwpxw; November 29th, 2008 at 04:56 PM.

  4. #14
    Join Date
    Nov 2008
    Beans
    35

    Re: Blessable Boot Partition

    i can still run grub.efi, but I'm still having the same problem as before

    ls -l returns this
    Code:
    Device hd0: Partition table
           Partition hd0,1: Filesystem type fat, UUID 3c1a-1iaf6
           Partition hd0,2: Filesystem type hfsplus
           Partition hd0,3: Filesystem type hfsplus
           Partition hd0,4: Filesystem type ext2, UUID 472edca7-2a7b-4219-b1dc-d1424e4a0d38
           Partition hd0,5: Unknown Filesystem
    Device cd0: unknown filesystem
    and here's my grub.cfg file:
    Code:
    ## grub svn v1913 configure --with-platform=efi
    ## 20081128 pxw
    ## example
    ## comments apply to MacBook2,1 with 1 internal HD and CD, used with various external drives.
    ## linux root=/dev/sdxx and grub loads kernel from root=(hdx,x). Will need check/edit. 
    ##
    timeout=20 
    ## first menuentry is 0 
    default=0
    fallback=1
    ## for booting from 'e' edited menuentry control x does not work.
    set F1=ctrl-x
    set F2=ctrl-c
    #
    # boot the first macosx found (works)
    menuentry "search MacOSX" {
    	search --set /usr/standalone/i386/boot.efi
    	chainloader /usr/standalone/i386/boot.efi
    }
    #
    # returns error
    # /dev/disk/by-uuid/472edca7-2a7b-4219-b1dc-d1424e4a0d38 does not exist
    menuentry "uuid" {
     set root=(hd0,4)
     linux  /vmlinuz root=UUID=472edca7-2a7b-4219-b1dc-d1424e4a0d38  agp=off video=efifb
     initrd  /initrd.img
    }
    # search for vmlinuz starts from (hd0,1)
    # with only one drive (no cd or usb) it will be grub (hd0) and linux /dev/sda
    # boot first /vmlinuz found and use linux root=/dev/sda4 
    menuentry "search-vmlinuz root=sda4" {
    	search --set  /vmlinuz
     linux  /vmlinuz root=/dev/sda4  agp=off video=efifb
     initrd  /initrd.img
    }
    #
    # returns error
    # /dev/sda4 does not exist
    menuentry "setroothd04" {
    	set root=(hd0,4)
     linux  /vmlinuz root=/dev/sda4  agp=off video=efifb
     initrd  /initrd.img
    }
    # with a usb drive present usb is (hd0) but /dev/sdb, internl hd is (hd1) but sda
    # usb will be found first
    menuentry "search-vmlinuz root=sdb3" {
    	search --set  /vmlinuz
     linux  /vmlinuz root=/dev/sdb3  agp=off video=efifb
     initrd  /initrd.img
    }
    #
    # boot ubuntu on HD (hd1) at /dev/sda4.
    # 
    # boot (hd1,4)/vmlinuz and use root=/dev/sda4 
    menuentry "set hd1,4 vmlinuz" {
      root=(hd1,4)
      linux /vmlinuz root=/dev/sda4 ro video=efifb
      initrd /initrd.img
    }
    # appleloader boots from internals only - cd or hd. 
    menuentry "Boot from ISO CD" {
       appleloader CD
    }
    menuentry "Boot from HD MBR" {
       appleloader HD
    }
    ## optional extras
    menuentry "Partition List" {
    	ls -l
    	sleep 5
    }
    menuentry "Where am I" {
    set
    ls
    date
    echo "sda2?? edit this"
    sleep 5
    }
    menuentry "REBOOT" {
    	reboot
    }
    menuentry "set pager=1" {
    	set pager=1
    }
    ##
    Last edited by user12021; November 29th, 2008 at 05:28 PM.

  5. #15
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Blessable Boot Partition

    Just reading that, there are a few bugs in the grub.cfg, while I am looking at that, could you confirm that you have all the modules *.mod, about 70 of them, in beside grub.efi.

  6. #16
    Join Date
    Nov 2008
    Beans
    35

    Re: Blessable Boot Partition

    I have 72 modules.

  7. #17
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Blessable Boot Partition

    Ok 72 sounds right.

    The grub.cfg has got some bugs in it now, need to make a clean entry to try, there may be a problem with the search --set entry. and I dont lknow if uuid option is available.

    but also

    You dont use set root= in the menuentry
    just root=

    This should work -
    Code:
    menuentry " hd0,4 vmlinuz sda4" {
      root=(hd0,4)
      linux /vmlinuz root=/dev/sda4  video=efifb agp=off
      initrd /initrd.img
    }
    I will stand by here for your result.

  8. #18
    Join Date
    Nov 2008
    Beans
    35

    Re: Blessable Boot Partition

    unfortunately, that returns the same error.

  9. #19
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Blessable Boot Partition

    I assume you mean the ALERT....

    One other possibility - it is not so far confirmed that the root is in fact /dev/sda4 as seen in linux.

    You can check that from after the ALERT
    Code:
    (initramfs) cat /proc/partitions
    (initramfs) ls /dev/sd*
    just exit or reboot from there.

    Its all I can think of just now, given that all was booting from the old grub.

    If that fails, it is just possible there is some bug in that svn release, you might try my package which is proved OK at least on a MacBook2.1.
    It also has some notes in grub/doc might be of use.

    I will wait to see what you say (its just about daybreak here).

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

    Re: Blessable Boot Partition

    X
    Last edited by pxwpxw; November 30th, 2008 at 07:32 AM. Reason: double post

Page 2 of 6 FirstFirst 1234 ... 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
  •