Hello,
I have installed a second HDD using the MCE adapter, into my MacBook Pro. It is listed as disk0 and my OSX is is disk1.
The rEFInd menu appears it shows the Ubuntu Icons, and the OSX, but always when I try to boot it it gave me an error that te FFXXX... disk /partition doesn't exist.
The disk0 layout:
sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): p
Disk /dev/disk0: 390721968 sectors, 186.3 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B0379E63-8585-4444-A0B1-84049E8FCC8A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 390721934
Partitions will be aligned on 8-sector boundaries
Total free space is 2413 sectors (1.2 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 375097344 390721535 7.5 GiB 8200
3 411648 375097343 178.7 GiB 0700 VLSI
My disk1 my OSX disk is the following:
sudo gdisk /dev/disk1
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/disk1: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): D09D10CF-D08D-4ECC-9BD8-F158376E7CAD
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 13 sectors (6.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 975503591 465.0 GiB AF00 Macintosh HD
3 975503592 976773127 619.9 MiB AB00 Recovery HD
The problem is how to make it boot my Linux installed in a separated disk ?
How to solve this, what am I missing here to make it work ?
Regards,
Vitorio.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This shows two partitions: An ESP (partition 1) and a Linux swap partition (partition 2) with a big gap between them. This disk also uses a hybrid MBR. Hybrid MBRs are flaky and dangerous, although Apple uses them to activate BIOS compatibility support, so they're required to boot OSes in BIOS mode on Macs. Fortunately, Linux can boot in EFI mode on Macs, as described here.
If you've just installed Ubuntu, I recommend you wipe /dev/disk0 clean and start fresh. Do an installation with a hybrid MBR in BIOS mode to start, but then convert it to boot in EFI mode and convert the hybrid MBR back to a legal GPT disk with a protective MBR instead.
If you've got data on /dev/disk0, you'll need to recover the Linux partition(s) that have been lost. They may still exist on the MBR side, so using fdisk may show you what they should be, enabling you to create new GPT entries for them using gdisk.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have installed a second HDD using the MCE adapter, into my MacBook Pro. It is listed as disk0 and my OSX is is disk1.
The rEFInd menu appears it shows the Ubuntu Icons, and the OSX, but always when I try to boot it it gave me an error that te FFXXX... disk /partition doesn't exist.
The disk0 layout:
sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): p
Disk /dev/disk0: 390721968 sectors, 186.3 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): B0379E63-8585-4444-A0B1-84049E8FCC8A
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 390721934
Partitions will be aligned on 8-sector boundaries
Total free space is 2413 sectors (1.2 MiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 375097344 390721535 7.5 GiB 8200
3 411648 375097343 178.7 GiB 0700 VLSI
My disk1 my OSX disk is the following:
sudo gdisk /dev/disk1
GPT fdisk (gdisk) version 0.8.5
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/disk1: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): D09D10CF-D08D-4ECC-9BD8-F158376E7CAD
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 8-sector boundaries
Total free space is 13 sectors (6.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 975503591 465.0 GiB AF00 Macintosh HD
3 975503592 976773127 619.9 MiB AB00 Recovery HD
The problem is how to make it boot my Linux installed in a separated disk ?
How to solve this, what am I missing here to make it work ?
Regards,
Vitorio.
Unless you've accidentally cut something from your gdisk output, you /dev/disk0 is missing a Linux partition. You've got:
This shows two partitions: An ESP (partition 1) and a Linux swap partition (partition 2) with a big gap between them. This disk also uses a hybrid MBR. Hybrid MBRs are flaky and dangerous, although Apple uses them to activate BIOS compatibility support, so they're required to boot OSes in BIOS mode on Macs. Fortunately, Linux can boot in EFI mode on Macs, as described here.
If you've just installed Ubuntu, I recommend you wipe /dev/disk0 clean and start fresh. Do an installation with a hybrid MBR in BIOS mode to start, but then convert it to boot in EFI mode and convert the hybrid MBR back to a legal GPT disk with a protective MBR instead.
If you've got data on /dev/disk0, you'll need to recover the Linux partition(s) that have been lost. They may still exist on the MBR side, so using fdisk may show you what they should be, enabling you to create new GPT entries for them using gdisk.