Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#92 Can\'t Boot Ubuntu 11.04 Anymore; Updating Grub Doesn\'t Help

open
nobody
None
5
2014-08-14
2011-10-08
No

My Early 2006 MacBook Pro (Core Duo, NOT Core 2 Duo, Model Identifier MacBookPro1,1) has four partitions: EFI, Snow Leopard HFS+, Ubuntu 11.04 ext4 and Windows XP SP3 NTFS.

I don\'t know what happened, but starting yesterday morning neither XP nor Ubuntu would boot. I would select either one in the rEFIt boot menu, then I\'d just get a black screen with a rapidly flickering cursor.

Because neither XP nor Ubuntu would boot, I figured there was a problem with the MBR. rEFIt\'s partition tool said that the MBR was still in sync with the GPT. I booted from the Parted Magic rescue CD and rewrote the MBR:

# fdisk /dev/sda
p
w

The above prints the existing partition table so I can inspect it, then writes it back again. But this has the side effect that a fresh boot loader is written.

After this I could boot XP just fine, but Ubuntu still would not boot, with the same symptoms.

I then used Parted Magic to mount Ubuntu\'s partition and run Ubuntu\'s update-grub:

# mount /dev/sda3/mnt
# mount --bind /dev /mnt/dev
# mount --bind /proc /mnt/proc
# mount --bind /sys /mnt/sys
# chroot /mnt

At this point while we are still booted from Parted Magic we are running from the Ubuntu filesystem

# update-grub

Update-grub finds all three of my OSes and claims that it completed successfully, but still it cannot boot.

I am running rEFIt 0.14, which had been working quite well for quite some time, as had both Ubuntu and XP.

Thanks for any help you can give me,

Mike Crawford

Discussion

  • Joe van Tunen
    Joe van Tunen
    2011-10-10

    The attached System Profiler Report does not show the contents of the MBR.

    There's a script at http://members.shaw.ca/joevt/dumpvols2.sh.zip which will dump the contents of the MBR and GPT and also the boot blocks of each partition. Run it using a command like this:
    sudo ./dumpvols.sh > dumpvols_result.txt 2>&1

    Maybe try re-installing Grub using a Live CD
    https://help.ubuntu.com/community/Grub2

    The fdisk command in Mac OS X doesn't add a boot loader to the MBR. The update command in the Mac OS X version of fdisk just erases the boot code in the MBR. rEFIt will modify the MBR's boot code if the MBR doesn't have any boot code (i.e. the first 440 bytes are all zeros).

    Since you're using rEFIt and Windows, you probably want the MBR to not have the Grub boot loader. Instead you want the MBR to have standard boot code (like the code that Windows uses or the code that rEFIt uses). The standard boot code runs the boot code of the partition that has the boot flag set in the MBR. rEFIt sets the boot flag of the partition that you selected in the rEFIt menu, so each selectable partition is expected to have it's own boot code. Windows XP will have NTLDR type boot code. Linux will have GRUB2 type boot code. The boot code starts in the first block of the partition (the dumpvols.sh script displays the contents of those blocks).

    When you install GRUB2, you want to install it to a partition, not the MBR. You can install it to the Linux partition or to a Linux boot partition (which might be a safer place for it because of the blocklists issue mentioned in those instructions). If you use a Linux boot partition, it needs to be listed in the MBR. In that case, the Linux partition doesn't need to be in the MBR anymore since GRUB2 knows about GUID partitions.
    https://help.ubuntu.com/community/CreateBootPartitionAfterInstall

    The Ubuntu installer itself has an "Advanced" button to let you select where to install GRUB2.
    https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation
    https://help.ubuntu.com/community/MacPro
    https://help.ubuntu.com/community/MacBook/TripleBoot

    I believe Windows XP needs to be the last partition listed in the MBR (but doesn't need to be physically last on the disk).

     
  • Joevt, thanks for your help.

    Note that when I ran fdisk, it was the *Linux* fdisk from that Parted Magic Live CD. It's a Linux distribution that is specialized for system rescue.

    I also rain update_grub from Ubuntu 11.04 while booted from Parted Magic then chrooted into /mnt, where I had mounted my Ubuntu partition /dev/sda3.

    Following is the output of dumpvols.sh as you requested:

    ===============================================================================
    /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: GUID_partition_scheme *320.1 GB disk0
    1: EFI 209.7 MB disk0s1
    2: Apple_HFS Frylock 149.9 GB disk0s2
    3: Microsoft Basic Data 99.6 GB disk0s3
    4: Microsoft Basic Data BOOTCAMP 70.4 GB disk0s4
    ---------------------------------------------
    Device Identifier: disk0
    Device Node: /dev/disk0
    Part Of Whole: disk0
    Device / Media Name: Hitachi HTS543232L9A300 Media

    Volume Name:
    Escaped with Unicode:

    Mounted: No

    File System: None

    Partition Type: GUID_partition_scheme
    Bootable: Not bootable
    Media Type: Generic
    Protocol: SATA
    SMART Status: Verified

    Total Size: 320.1 GB (320072933376 Bytes) (exactly 625142448 512-Byte-Blocks)
    Volume Free Space: Not Applicable

    Read-Only Media: No
    Read-Only Volume: Not applicable (no filesystem)
    Ejectable: No

    Whole: Yes
    Internal: Yes
    OS 9 Drivers: No
    Low Level Format: Not Supported

    ---------------------------------------------
    Device Identifier: disk0s1
    Device Node: /dev/disk0s1
    Part Of Whole: disk0
    Device / Media Name: EFI System Partition

    Volume Name:
    Escaped with Unicode:

    Mounted: No

    File System: None

    Partition Type: EFI
    Bootable: Not bootable
    Media Type: Generic
    Protocol: SATA
    SMART Status: Verified

    Total Size: 209.7 MB (209715200 Bytes) (exactly 409600 512-Byte-Blocks)
    Volume Free Space: Not Applicable

    Read-Only Media: No
    Read-Only Volume: Not applicable (no filesystem)
    Ejectable: No

    Whole: No
    Internal: Yes

    ---------------------------------------------
    Device Identifier: disk0s2
    Device Node: /dev/disk0s2
    Part Of Whole: disk0
    Device / Media Name: Untitled

    Volume Name: Frylock
    Escaped with Unicode: Frylock

    Mounted: Yes
    Mount Point: /
    Escaped with Unicode: /

    File System: Case-sensitive Journaled HFS+
    Type: hfs
    Name: Mac OS Extended (Case-sensitive, Journaled)
    Journal: Journal size 24576 KB at offset 0x951000
    Owners: Enabled

    Partition Type: Apple_HFS
    Bootable: Not bootable
    Media Type: Generic
    Protocol: SATA
    SMART Status: Verified
    Volume UUID: A2FADA29-27BE-3003-B174-9E8BC973D348

    Total Size: 149.9 GB (149865783296 Bytes) (exactly 292706608 512-Byte-Blocks)
    Volume Free Space: 28.3 GB (28267704320 Bytes) (exactly 55210360 512-Byte-Blocks)

    Read-Only Media: No
    Read-Only Volume: No
    Ejectable: No

    Whole: No
    Internal: Yes

    ---------------------------------------------
    Device Identifier: disk0s3
    Device Node: /dev/disk0s3
    Part Of Whole: disk0
    Device / Media Name: Untitled 3

    Volume Name:
    Escaped with Unicode:

    Mounted: No

    File System: MS-DOS
    Type: msdos
    Name: MS-DOS (FAT)

    Partition Type: Microsoft Basic Data
    Bootable: Is bootable
    Media Type: Generic
    Protocol: SATA
    SMART Status: Verified

    Total Size: 99.6 GB (99616366080 Bytes) (exactly 194563215 512-Byte-Blocks)
    Volume Free Space: 0 B (0 Bytes) (exactly 0 512-Byte-Blocks)

    Read-Only Media: No
    Read-Only Volume: Not applicable (not mounted)
    Ejectable: No

    Whole: No
    Internal: Yes

    ---------------------------------------------
    Device Identifier: disk0s4
    Device Node: /dev/disk0s4
    Part Of Whole: disk0
    Device / Media Name: BOOTCAMP

    Volume Name: BOOTCAMP
    Escaped with Unicode: BOOTCAMP

    Mounted: Yes
    Mount Point: /Volumes/BOOTCAMP
    Escaped with Unicode: /Volumes/BOOTCAMP

    File System: Tuxera NTFS
    Type: fusefs_txantfs
    Name: Windows NT Filesystem (Tuxera NTFS)

    Partition Type: Microsoft Basic Data
    Bootable: Is bootable
    Media Type: Generic
    Protocol: SATA
    SMART Status: Verified

    Total Size: 70.4 GB (70375495680 Bytes) (exactly 137452140 512-Byte-Blocks)
    Volume Free Space: 891.8 MB (891777024 Bytes) (exactly 1741752 512-Byte-Blocks)

    Read-Only Media: No
    Read-Only Volume: No
    Ejectable: No

    Whole: No
    Internal: Yes

    gpt show: 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 292706608 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
    293116248 5742
    293121990 194563215 3 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
    487685205 137452140 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
    625137345 5070
    625142415 32 Sec GPT table
    625142447 1 Sec GPT header
    gpt show: 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 - "EFI System Partition"
    409640 292706608 2 GPT part - "Untitled"
    293116248 5742
    293121990 194563215 3 GPT part - ""
    487685205 137452140 4 GPT part - "BOOTCAMP"
    625137345 5070
    625142415 32 Sec GPT table
    625142447 1 Sec GPT header
    Disk: /dev/rdisk0 geometry: 38913/255/63 [625142448 sectors]
    Signature: 0xAA55
    Starting Ending
    #: id cyl hd sec - cyl hd sec [ start - size]
    ------------------------------------------------------------------------
    1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>
    2: AF 1023 254 63 - 1023 254 63 [ 409640 - 292706608] HFS+
    *3: 83 1023 254 63 - 1023 254 63 [ 293121990 - 194563215] Linux files*
    4: 07 1023 254 63 - 1023 254 63 [ 487685205 - 137452140] HPFS/QNX/AUX

    MBR contents: Windows_XP
    0000000: 33c0 8ed0 bc00 7cfb 5007 501f fcbe 1b7c 3.....|.P.P....|
    0000010: bf1b 0650 57b9 e501 f3a4 cbbd be07 b104 ...PW...........
    0000020: 386e 007c 0975 1383 c510 e2f4 cd18 8bf5 8n.|.u..........
    0000030: 83c6 1049 7419 382c 74f6 a0b5 07b4 078b ...It.8,t.......
    0000040: f0ac 3c00 74fc bb07 00b4 0ecd 10eb f288 ..<.t...........
    0000050: 4e10 e846 0073 2afe 4610 807e 040b 740b N..F.s*.F..~..t.
    0000060: 807e 040c 7405 a0b6 0775 d280 4602 0683 .~..t....u..F...
    0000070: 4608 0683 560a 00e8 2100 7305 a0b6 07eb F...V...!.s.....
    0000080: bc81 3efe 7d55 aa74 0b80 7e10 0074 c8a0 ..>.}U.t..~..t..
    0000090: b707 eba9 8bfc 1e57 8bf5 cbbf 0500 8a56 .......W.......V
    00000a0: 00b4 08cd 1372 238a c124 3f98 8ade 8afc .....r#..$?.....
    00000b0: 43f7 e38b d186 d6b1 06d2 ee42 f7e2 3956 C..........B..9V
    00000c0: 0a77 2372 0539 4608 731c b801 02bb 007c .w#r.9F.s......|
    00000d0: 8b4e 028b 5600 cd13 7351 4f74 4e32 e48a .N..V...sQOtN2..
    00000e0: 5600 cd13 ebe4 8a56 0060 bbaa 55b4 41cd V......V.`..U.A.
    00000f0: 1372 3681 fb55 aa75 30f6 c101 742b 6160 .r6..U.u0...t+a`
    0000100: 6a00 6a00 ff76 0aff 7608 6a00 6800 7c6a j.j..v..v.j.h.|j
    0000110: 016a 10b4 428b f4cd 1361 6173 0e4f 740b .j..B....aas.Ot.
    0000120: 32e4 8a56 00cd 13eb d661 f9c3 496e 7661 2..V.....a..Inva
    0000130: 6c69 6420 7061 7274 6974 696f 6e20 7461 lid partition ta
    0000140: 626c 6500 4572 726f 7220 6c6f 6164 696e ble.Error loadin
    0000150: 6720 6f70 6572 6174 696e 6720 7379 7374 g operating syst
    0000160: 656d 004d 6973 7369 6e67 206f 7065 7261 em.Missing opera
    0000170: 7469 6e67 2073 7973 7465 6d00 0000 0000 ting system.....
    0000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001b0: 0000 0000 002c 4463 5ad7 5ad7 0000 00fe .....,DcZ.Z.....
    00001c0: ffff eefe ffff 0100 0000 2740 0600 00fe ..........'@....
    00001d0: ffff affe ffff 2840 0600 3059 7211 80fe ......(@..0Yr...
    00001e0: ffff 83fe ffff c6af 7811 8fcc 980b 00fe ........x.......
    00001f0: ffff 07fe ffff 557c 111d 6c5a 3108 55aa ......U|..lZ1.U.

    GPT Header @ 1: GPT Header contents: None_all_zeros
    0000000: 4546 4920 5041 5254 0000 0100 5c00 0000 EFI PART....\...
    0000010: 0130 0b65 0000 0000 0100 0000 0000 0000 .0.e............
    0000020: afea 4225 0000 0000 2200 0000 0000 0000 ..B%....".......
    0000030: 8eea 4225 0000 0000 a669 2cf7 57fb b741 ..B%.....i,.W..A
    0000040: 9bd9 e53b 9e5c 99a2 0200 0000 0000 0000 ...;.\..........
    0000050: 8000 0000 8000 0000 6264 b702 0000 0000 ........bd......
    0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000110: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................

    GPT 1 @ 40: VBR contents: FAT32_Non_system_disk_or_EFI
    0000000: eb58 9042 5344 2020 342e 3400 0201 2000 .X.BSD 4.4... .
    0000010: 0200 0000 00f0 0000 2000 1000 0000 0000 ........ .......
    0000020: 0040 0600 4f0c 0000 0000 0000 0200 0000 .@..O...........
    0000030: 0100 0600 0000 0000 0000 0000 0000 0000 ................
    0000040: 0000 29f6 1a3c 3f45 4649 2020 2020 2020 ..)..<?EFI
    0000050: 2020 4641 5433 3220 2020 fa31 c08e d0bc FAT32 .1....
    0000060: 007c fb8e d8e8 0000 5e83 c619 bb07 00fc .|......^.......
    0000070: ac84 c074 06b4 0ecd 10eb f530 e4cd 16cd ...t.......0....
    0000080: 190d 0a4e 6f6e 2d73 7973 7465 6d20 6469 ...Non-system di
    0000090: 736b 0d0a 5072 6573 7320 616e 7920 6b65 sk..Press any ke
    00000a0: 7920 746f 2072 6562 6f6f 740d 0a00 0000 y to reboot.....
    00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000110: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U.

    GPT 2 @ 409640: VBR contents: None_all_zeros
    0000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00000f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000110: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000120: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000130: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000150: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000160: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000170: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000180: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000190: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001a0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001b0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001f0: 0000 0000 0000 0000 0000 0000 0000 0000 ................

    GPT 3 @ 293121990: VBR contents: Unrecognized (hash=b9e37ba6d83c527c9db101c746533d27)
    0000000: eb63 9000 0000 0000 0000 0000 0000 0000 .c..............
    0000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    0000050: 0000 0000 0000 0000 0000 0080 46f3 fc12 ............F...
    0000060: 0000 0000 fffa 9090 f6c2 8074 05f6 c270 ...........t...p
    0000070: 7402 b280 ea79 7c00 0031 c08e d88e d0bc t....y|..1......
    0000080: 0020 fba0 647c 3cff 7402 88c2 52bb 1704 . ..d|<.t...R...
    0000090: 8027 0374 06be 887d e817 01be 057c b441 .'.t...}.....|.A
    00000a0: bbaa 55cd 135a 5272 3d81 fb55 aa75 3783 ..U..ZRr=..U.u7.
    00000b0: e101 7432 31c0 8944 0440 8844 ff89 4402 ..t21..D.@.D..D.
    00000c0: c704 1000 668b 1e5c 7c66 895c 0866 8b1e ....f..\|f.\.f..
    00000d0: 607c 6689 5c0c c744 0600 70b4 42cd 1372 `|f.\..D..p.B..r
    00000e0: 05bb 0070 eb76 b408 cd13 730d f6c2 800f ...p.v....s.....
    00000f0: 84d0 00be 937d e982 0066 0fb6 c688 64ff .....}...f....d.
    0000100: 4066 8944 040f b6d1 c1e2 0288 e888 f440 @f.D...........@
    0000110: 8944 080f b6c2 c0e8 0266 8904 66a1 607c .D.......f..f.`|
    0000120: 6609 c075 4e66 a15c 7c66 31d2 66f7 3488 f..uNf.\|f1.f.4.
    0000130: d131 d266 f774 043b 4408 7d37 fec1 88c5 .1.f.t.;D.}7....
    0000140: 30c0 c1e8 0208 c188 d05a 88c6 bb00 708e 0........Z....p.
    0000150: c331 dbb8 0102 cd13 721e 8cc3 601e b900 .1......r...`...
    0000160: 018e db31 f6bf 0080 8ec6 fcf3 a51f 61ff ...1..........a.
    0000170: 265a 7cbe 8e7d eb03 be9d 7de8 3400 bea2 &Z|..}....}.4...
    0000180: 7de8 2e00 cd18 ebfe 4752 5542 2000 4765 }.......GRUB .Ge
    0000190: 6f6d 0048 6172 6420 4469 736b 0052 6561 om.Hard Disk.Rea
    00001a0: 6400 2045 7272 6f72 0d0a 00bb 0100 b40e d. Error........
    00001b0: cd10 ac3c 0075 f4c3 0000 0000 0000 0000 ...<.u..........
    00001c0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001d0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001e0: 0000 0000 0000 0000 0000 0000 0000 0000 ................
    00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa ..............U.

    GPT 4 @ 487685205: VBR contents: NTFS_Windows_XP_NTLDR
    0000000: eb52 904e 5446 5320 2020 2000 0208 0000 .R.NTFS .....
    0000010: 0000 0000 00f8 0000 3f00 ff00 557c 111d ........?...U|..
    0000020: 0000 0000 8000 8000 605a 3108 0000 0000 ........`Z1.....
    0000030: 0000 0c00 0000 0000 ffc9 6300 0000 0000 ..........c.....
    0000040: f600 0000 0100 0000 93ba 4fe8 e54f e8de ..........O..O..
    0000050: 0000 0000 fa33 c08e d0bc 007c fbb8 c007 .....3.....|....
    0000060: 8ed8 e816 00b8 000d 8ec0 33db c606 0e00 ..........3.....
    0000070: 10e8 5300 6800 0d68 6a02 cb8a 1624 00b4 ..S.h..hj....$..
    0000080: 08cd 1373 05b9 ffff 8af1 660f b6c6 4066 ...s......f...@f
    0000090: 0fb6 d180 e23f f7e2 86cd c0ed 0641 660f .....?.......Af.
    00000a0: b7c9 66f7 e166 a320 00c3 b441 bbaa 558a ..f..f. ...A..U.
    00000b0: 1624 00cd 1372 0f81 fb55 aa75 09f6 c101 .$...r...U.u....
    00000c0: 7404 fe06 1400 c366 601e 0666 a110 0066 t......f`..f...f
    00000d0: 0306 1c00 663b 0620 000f 823a 001e 666a ....f;. ...:..fj
    00000e0: 0066 5006 5366 6810 0001 0080 3e14 0000 .fP.Sfh.....>...
    00000f0: 0f85 0c00 e8b3 ff80 3e14 0000 0f84 6100 ........>.....a.
    0000100: b442 8a16 2400 161f 8bf4 cd13 6658 5b07 .B..$.......fX[.
    0000110: 6658 6658 1feb 2d66 33d2 660f b70e 1800 fXfX..-f3.f.....
    0000120: 66f7 f1fe c28a ca66 8bd0 66c1 ea10 f736 f......f..f....6
    0000130: 1a00 86d6 8a16 2400 8ae8 c0e4 060a ccb8 ......$.........
    0000140: 0102 cd13 0f82 1900 8cc0 0520 008e c066 ........... ...f
    0000150: ff06 1000 ff0e 0e00 0f85 6fff 071f 6661 ..........o...fa
    0000160: c3a0 f801 e809 00a0 fb01 e803 00fb ebfe ................
    0000170: b401 8bf0 ac3c 0074 09b4 0ebb 0700 cd10 .....<.t........
    0000180: ebf2 c30d 0a41 2064 6973 6b20 7265 6164 .....A disk read
    0000190: 2065 7272 6f72 206f 6363 7572 7265 6400 error occurred.
    00001a0: 0d0a 4e54 4c44 5220 6973 206d 6973 7369 ..NTLDR is missi
    00001b0: 6e67 000d 0a4e 544c 4452 2069 7320 636f ng...NTLDR is co
    00001c0: 6d70 7265 7373 6564 000d 0a50 7265 7373 mpressed...Press
    00001d0: 2043 7472 6c2b 416c 742b 4465 6c20 746f Ctrl+Alt+Del to
    00001e0: 2072 6573 7461 7274 0d0a 0000 0000 0000 restart........
    00001f0: 0000 0000 0000 0000 83a0 b3c9 0000 55aa ..............U.
    ===============================================================================
    EFI found at IODeviceTree:/efi
    Current EFI boot device string is: '<array><dict><key>BLLastBSDName</key><string>disk0s2</string><key>IOMatch</key><dict><key>IOPropertyMatch</key><dict><key>UUID</key><string>59151300-7516-4E5E-AEEE-F59889B2977F</string></dict><key>IOProviderClass</key><string>IOMedia</string></dict></dict></array>'
    Boot option is 8BE4DF61-93CA-11D2-AA0D-00E098032B8C:Boot0080
    Processing boot option 'Mac OS X'
    Boot option matches XML representation
    Found device: disk0s2
    Disk boot device detected
    /dev/disk0s2
    ===============================================================================
    EFI found at IODeviceTree:/efi
    Current EFI boot device string is: '<array><dict><key>BLLastBSDName</key><string>disk0s2</string><key>IOMatch</key><dict><key>IOPropertyMatch</key><dict><key>UUID</key><string>59151300-7516-4E5E-AEEE-F59889B2977F</string></dict><key>IOProviderClass</key><string>IOMedia</string></dict></dict></array>'
    Boot option is 8BE4DF61-93CA-11D2-AA0D-00E098032B8C:Boot0080
    Processing boot option 'Mac OS X'
    Boot option matches XML representation
    Found device: disk0s2
    Disk boot device detected
    mount: /
    Mount point for / is /
    GPT detected
    No auxiliary booter partition required
    System partition found
    Returning booter information dictionary:
    <CFBasicHash 0x107bb0 [0xa0660ec0]>{type = mutable dict, count = 3,
    entries =>
    0 : <CFString 0x1b538 [0xa0660ec0]>{contents = "System Partitions"} = <CFArray 0x107d60 [0xa0660ec0]>{type = immutable, count = 1, values = (
    0 : <CFString 0x107e90 [0xa0660ec0]>{contents = "disk0s1"}
    )}
    1 : <CFString 0x1b518 [0xa0660ec0]>{contents = "Auxiliary Partitions"} = <CFArray 0x107be0 [0xa0660ec0]>{type = immutable, count = 0, values = ()}
    2 : <CFString 0x1b958 [0xa0660ec0]>{contents = "Data Partitions"} = <CFArray 0x107da0 [0xa0660ec0]>{type = immutable, count = 1, values = (
    0 : <CFString 0xa0659758 [0xa0660ec0]>{contents = "disk0s2"}
    )}
    }

    finderinfo[0]: 635042 => Blessed System Folder is /System/Library/CoreServices
    finderinfo[1]: 3094995 => Blessed System File is /System/Library/CoreServices/boot.efi
    finderinfo[2]: 0 => Open-folder linked list empty
    finderinfo[3]: 0 => No alternate OS blessed file/folder
    finderinfo[4]: 0 => Unused field unset
    finderinfo[5]: 635042 => OS X blessed folder is /System/Library/CoreServices
    64-bit VSDB volume id: 0xE98A614250B3CC2F
    ===============================================================================
    Hitachi HTS543232L9A300 Media <class IOMedia>
    {
    "Leaf" = No
    "Writable" = Yes
    "BSD Minor" = 0
    "IOBusyInterest" = "IOCommand is not serializable"
    "IOGeneralInterest" = "IOCommand is not serializable"
    "Preferred Block Size" = 512
    "BSD Major" = 14
    "BSD Name" = "disk0"
    "Size" = 320072933376
    "Content Hint" = ""
    "IOMediaIcon" = {"CFBundleIdentifier"="com.apple.iokit.IOStorageFamily","IOBundleResourceFile"="Internal.icns"}
    "Removable" = No
    "Open" = Yes
    "BSD Unit" = 0
    "Whole" = Yes
    "Content" = "GUID_partition_scheme"
    "Ejectable" = No
    }
    EFI System Partition@1 <class IOMedia>
    {
    "Leaf" = Yes
    "Writable" = Yes
    "BSD Minor" = 1
    "IOBusyInterest" = "IOCommand is not serializable"
    "Partition ID" = 1
    "Preferred Block Size" = 512
    "UUID" = "9C747CB6-9325-4342-95E2-5E331C6EF01E"
    "BSD Major" = 14
    "BSD Name" = "disk0s1"
    "Size" = 209715200
    "Content Hint" = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
    "Removable" = No
    "Open" = No
    "IOGeneralInterest" = "IOCommand is not serializable"
    "BSD Unit" = 0
    "Whole" = No
    "Content" = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
    "Ejectable" = No
    }
    Untitled@2 <class IOMedia>
    {
    "Leaf" = Yes
    "Writable" = Yes
    "BSD Minor" = 2
    "IOBusyInterest" = "IOCommand is not serializable"
    "Partition ID" = 2
    "Preferred Block Size" = 512
    "UUID" = "59151300-7516-4E5E-AEEE-F59889B2977F"
    "BSD Major" = 14
    "BSD Name" = "disk0s2"
    "Size" = 149865783296
    "Content Hint" = "48465300-0000-11AA-AA11-00306543ECAC"
    "Removable" = No
    "Open" = Yes
    "IOGeneralInterest" = "IOCommand is not serializable"
    "BSD Unit" = 0
    "Whole" = No
    "Content" = "48465300-0000-11AA-AA11-00306543ECAC"
    "Ejectable" = No
    }
    Untitled 3@3 <class IOMedia>
    {
    "Leaf" = Yes
    "Writable" = Yes
    "BSD Minor" = 3
    "IOBusyInterest" = "IOCommand is not serializable"
    "Partition ID" = 3
    "Preferred Block Size" = 512
    "UUID" = "14874F35-5205-4CE0-8D64-97E10808CEBF"
    "BSD Major" = 14
    "BSD Name" = "disk0s3"
    "Size" = 99616366080
    "Content Hint" = "EBD0A0A2-B9E5-4433-87C0-68B6B72699C7"
    "Removable" = No
    "Open" = No
    "IOGeneralInterest" = "IOCommand is not serializable"
    "BSD Unit" = 0
    "Whole" = No
    "Content" = "EBD0A0A2-B9E5-4433-87C0-68B6B72699C7"
    "Ejectable" = No
    }
    BOOTCAMP@4 <class IOMedia>
    {
    "Leaf" = Yes
    "Writable" = Yes
    "BSD Minor" = 4
    "IOBusyInterest" = "IOCommand is not serializable"
    "Partition ID" = 4
    "Preferred Block Size" = 512
    "UUID" = "F4553835-4D19-4F29-8F69-065624A33352"
    "BSD Major" = 14
    "BSD Name" = "disk0s4"
    "Size" = 70375495680
    "Content Hint" = "EBD0A0A2-B9E5-4433-87C0-68B6B72699C7"
    "Removable" = No
    "Open" = Yes
    "IOGeneralInterest" = "IOCommand is not serializable"
    "BSD Unit" = 0
    "Whole" = No
    "Content" = "EBD0A0A2-B9E5-4433-87C0-68B6B72699C7"
    "Ejectable" = No
    }
    ===============================================================================
    "SystemAudioVolume" = <aa>
    "platform-uuid" = <000000000000100080000016cb893fb3>
    "boot-image" = <02010c00d041030a0000000001010600021f030108000001000004012a0002000000284006000000000030597211000000000013155916755e4eaeeef59889b2977f02020404180038006200320037003500380030003000300000007fff0400>
    "efi-boot-device" = "<array><dict><key>BLLastBSDName</key><string>disk0s2</string><key>IOMatch</key><dict><key>IOPropertyMatch</key><dict><key>UUID</key><string>59151300-7516-4E5E-AEEE-F59889B2977F</string></dict><key>IOProviderClass</key><string>IOMedia</string></dict></dict></array>"
    "efi-boot-device-data" = <02010c00d041030a0000000001010600021f030108000001000004012a0002000000284006000000000030597211000000000013155916755e4eaeeef59889b2977f02027fff0400>
    ===============================================================================

     
  • Joe van Tunen
    Joe van Tunen
    2011-10-11

    I could tell you were using the Linux fdisk because of the device names. I was just explaining a couple differences with the Mac fdisk.

    I don't see anything wrong with your partition setup. Grub appears to be installed to the Linux partition - at least the boot.img part anyway. There may be problems with other parts of grub or linux.

    I would try some of the "Reinstalling GRUB2" instructions at https://help.ubuntu.com/community/Grub2 , particularly "grub-install" instead of "update-grub" from a Live CD. I think Live CD in that case refers to the Ubuntu installer CD.