I am trying to make my mac-mini dual-boot into Cent-os 7 which not touching my OSX (mavericks atm) install.
I shrank the OSX install successfully, and installed refind-0.10.0-1 using the OSX install script.
When the system boots I see refind and it can boot OSX just fine.
I then tried installing Centos 7 from the DVS, but it failed complaining that grub's core.img would not fit anywhere.
So I burnd a gparted-live DVD, and used that to move the 3 OSX partions (EFI, Customer, Recovery) by 1MB.
This works fine, and I can still boot into OSX using refind..
Then I managed to install Centos7 just fine, but it refuses to boot. Refind shows up and
has OSX, OSX recover, and a Linux icon (and another X-DVD when teh superdrive is attached)
But under the Linux icon there is no kernel version mentioned, and when I press FN-F2 twice I
get am empty booty commandline..
when I try to boot I get
no bootable device found - insert one and press any key
so I boot into the Centos recovery from the DVD
and I see this
# chroot /mnt/sysimage# $ cat sda.fdiskDisk/dev/sda:1000.2GB,1000204886016bytes,1953525168sectorsUnits=sectorsof1*512=512bytesSectorsize(logical/physical):512bytes/4096bytesI/Osize(minimum/optimal):4096bytes/4096bytesDisklabeltype:gpt# Start End Size Type Name14096413695200MEFISystemEFIsystempartition2413696973682687464.1GAppleHFS/HFS+Customer3973682688974952447620MApplebootRecoveryHD4204840951MBIOSbootparti5974952448975976447500MMicrosoftbasic69759764481953523711466.1GLinuxLVM# ls -l /boot/boot:total76053-rw-r--r--.1rootroot123838Mar62015config-3.10.0-229.el7.x86_64drwxr-xr-x.2rootroot1024Nov1914:33efidrwxr-xr-x.2rootroot1024Nov1913:52extlinuxdrwxr-xr-x.2rootroot1024Nov1913:56grubdrwxr-xr-x.6rootroot1024Nov1914:14grub2-rw-r--r--.1rootroot43396663Nov1914:11initramfs-0-rescue-370a7fa47db64872babc09d1d2507463.img-rw-r--r--.1rootroot20553545Nov1914:14initramfs-3.10.0-229.el7.x86_64.img-rw-r--r--.1rootroot589844Nov1914:11initrd-plymouth.imgdrwx------.2rootroot12288Nov1913:37lost+found-rw-r--r--.1rootroot240039Mar62015symvers-3.10.0-229.el7.x86_64.gz-rw-------.1rootroot2881257Mar62015System.map-3.10.0-229.el7.x86_64-rwxr-xr-x.1rootroot5029136Nov1914:11vmlinuz-0-rescue-370a7fa47db64872babc09d1d2507463-rwxr-xr-x.1rootroot5029136Mar62015vmlinuz-3.10.0-229.el7.x86_64andhereismyEFIpartition:vadeMACumPro2-2:tmpmathias$catefi.ls/mnt/efi:total1drwxr-xr-x.5rootroot512Nov1912:47EFI/mnt/efi/EFI:total3drwxr-xr-x.4rootroot512May272013APPLEdrwxr-xr-x.6rootroot1536Nov1914:33BOOTdrwxr-xr-x.2rootroot512Nov1617:07tools/mnt/efi/EFI/APPLE:total1drwxr-xr-x.2rootroot512May272013EXTENSIONSdrwxr-xr-x.2rootroot512Jul232013FIRMWARE/mnt/efi/EFI/APPLE/EXTENSIONS:total15361-rwxr-xr-x.1rootroot15729264Nov202015Firmware.scap/mnt/efi/EFI/APPLE/FIRMWARE:total8321-rwxr-xr-x.1rootroot8520304Nov1614:07MM61_0106_B0A_LOCKED.scap/mnt/efi/EFI/BOOT:total455-rwxr-xr-x.1rootroot176224Nov202015bootia32.efi-rwxr-xr-x.1rootroot219176Nov202015bootx64.efidrwxr-xr-x.2rootroot2048Nov1921:08drivers_x64drwxr-xr-x.3rootroot10240Nov202015iconsdrwxr-xr-x.3rootroot5120Nov1914:33icons-backupdrwxr-xr-x.2rootroot2048Nov1617:07keys-rwxr-xr-x.1rootroot24835Nov1617:07refind.conf-rwxr-xr-x.1rootroot24835Nov202015refind.conf-sample/mnt/efi/EFI/BOOT/drivers_x64:total327-rwxr-xr-x.1rootroot56136Nov816:55btrfs_x64.efi-rwxr-xr-x.1rootroot40072Nov816:55ext2_x64.efi-rwxr-xr-x.1rootroot40456Nov202015ext4_x64.efi-rwxr-xr-x.1rootroot43688Nov816:55hfs_x64.efi-rwxr-xr-x.1rootroot39496Nov816:55iso9660_x64.efi-rwxr-xr-x.1rootroot17992Sep172012LICENSE_GPL.txt-rwxr-xr-x.1rootroot2094Jul12014LICENSE.txt-rwxr-xr-x.1rootroot48136Nov816:55ntfs_x64.efi-rwxr-xr-x.1rootroot43240Nov816:55reiserfs_x64.efi/mnt/efi/EFI/BOOT/icons:total430-rwxr-xr-x.1rootroot1392Nov202015arrow_left.png-rwxr-xr-x.1rootroot1346Nov202015arrow_right.png-rwxr-xr-x.1rootroot9077Nov202015boot_linux.png-rwxr-xr-x.1rootroot3766Nov202015boot_win.png-rwxr-xr-x.1rootroot2479Nov202015func_about.png-rwxr-xr-x.1rootroot1761Nov202015func_csr_rotate.png-rwxr-xr-x.1rootroot2208Nov202015func_exit.png-rwxr-xr-x.1rootroot3772Nov202015func_firmware.png-rwxr-xr-x.1rootroot2602Nov202015func_reset.png-rwxr-xr-x.1rootroot2760Nov202015func_shutdown.pngdrwxr-xr-x.3rootroot1024Nov202015licenses-rwxr-xr-x.1rootroot5555Nov202015os_arch.png-rwxr-xr-x.1rootroot15008Nov202015os_centos.png-rwxr-xr-x.1rootroot13776Nov202015os_chakra.png-rwxr-xr-x.1rootroot10391Nov202015os_chrome.png-rwxr-xr-x.1rootroot7229Nov202015os_clover.png-rwxr-xr-x.1rootroot8480Nov202015os_crunchbang.png-rwxr-xr-x.1rootroot9377Nov202015os_debian.png-rwxr-xr-x.1rootroot16482Nov202015os_elementary.png-rwxr-xr-x.1rootroot8763Nov202015os_fedora.png-rwxr-xr-x.1rootroot5980Nov202015os_freebsd.png-rwxr-xr-x.1rootroot11658Nov202015os_frugalware.png-rwxr-xr-x.1rootroot7549Nov202015os_gentoo.png-rwxr-xr-x.1rootroot7668Nov202015os_gummiboot.png-rwxr-xr-x.1rootroot5830Nov202015os_haiku.png-rwxr-xr-x.1rootroot14399Nov202015os_hwtest.png-rwxr-xr-x.1rootroot12873Nov202015os_kubuntu.png-rwxr-xr-x.1rootroot5620Nov202015os_legacy.png-rwxr-xr-x.1rootroot6246Nov202015os_linuxmint.png-rwxr-xr-x.1rootroot10097Nov202015os_linux.png-rwxr-xr-x.1rootroot11232Nov202015os_lubuntu.png-rwxr-xr-x.1rootroot10574Nov202015os_mac.png-rwxr-xr-x.1rootroot7783Nov202015os_mageia.png-rwxr-xr-x.1rootroot12854Nov202015os_mandriva.png-rwxr-xr-x.1rootroot12379Nov202015os_netbsd.png-rwxr-xr-x.1rootroot14836Nov202015os_network.png-rwxr-xr-x.1rootroot6572Nov202015os_opensuse.png-rwxr-xr-x.1rootroot10041Nov202015os_redhat.png-rwxr-xr-x.1rootroot7231Nov202015os_refind.png-rwxr-xr-x.1rootroot8484Nov202015os_refit.png-rwxr-xr-x.1rootroot9202Nov202015os_slackware.png-rwxr-xr-x.1rootroot6572Nov202015os_suse.png-rwxr-xr-x.1rootroot12270Nov202015os_ubuntu.png-rwxr-xr-x.1rootroot11686Nov202015os_unknown.png-rwxr-xr-x.1rootroot3872Nov202015os_win8.png-rwxr-xr-x.1rootroot6565Nov202015os_win.png-rwxr-xr-x.1rootroot10547Nov202015os_xubuntu.png-rwxr-xr-x.1rootroot5170Nov202015README-rwxr-xr-x.1rootroot4507Nov202015tool_apple_rescue.png-rwxr-xr-x.1rootroot3018Nov202015tool_memtest.png-rwxr-xr-x.1rootroot1974Nov202015tool_mok_tool.png-rwxr-xr-x.1rootroot3785Nov202015tool_netboot.png-rwxr-xr-x.1rootroot3446Nov202015tool_part.png-rwxr-xr-x.1rootroot13817Nov202015tool_rescue.png-rwxr-xr-x.1rootroot2010Nov202015tool_shell.png-rwxr-xr-x.1rootroot4313Nov202015tool_windows_rescue.png-rwxr-xr-x.1rootroot213Nov202015transparent.png-rwxr-xr-x.1rootroot1344Nov202015vol_external.png-rwxr-xr-x.1rootroot1418Nov202015vol_internal.png-rwxr-xr-x.1rootroot1892Nov202015vol_net.png-rwxr-xr-x.1rootroot2423Nov202015vol_optical.png/mnt/efi/EFI/BOOT/icons/licenses:total50drwxr-xr-x.2rootroot1024Nov202015CreativeCommonsLegalCode_files-rwxr-xr-x.1rootroot23484Nov202015CreativeCommonsLegalCode.html-rwxr-xr-x.1rootroot18092Nov202015gpl-2.0.txt-rwxr-xr-x.1rootroot7651Nov202015lgpl-3.0.txt/mnt/efi/EFI/BOOT/icons/licenses/CreativeCommonsLegalCode_files:total52-rwxr-xr-x.1rootroot34054Nov202015cc-logo.jpg-rwxr-xr-x.1rootroot13483Nov202015deed3.css-rwxr-xr-x.1rootroot2315Nov202015deed3-print.css-rwxr-xr-x.1rootroot1208Nov202015errata.js-rwxr-xr-x.1rootroot454Nov202015unported.png/mnt/efi/EFI/BOOT/icons-backup:total430-rwxr-xr-x.1rootroot1392Nov1914:33arrow_left.png-rwxr-xr-x.1rootroot1346Nov1914:33arrow_right.png-rwxr-xr-x.1rootroot9077Nov1914:33boot_linux.png-rwxr-xr-x.1rootroot3766Nov1914:33boot_win.png-rwxr-xr-x.1rootroot2479Nov1914:33func_about.png-rwxr-xr-x.1rootroot1761Nov1914:33func_csr_rotate.png-rwxr-xr-x.1rootroot2208Nov1914:33func_exit.png-rwxr-xr-x.1rootroot3772Nov1914:33func_firmware.png-rwxr-xr-x.1rootroot2602Nov1914:33func_reset.png-rwxr-xr-x.1rootroot2760Nov1914:33func_shutdown.pngdrwxr-xr-x.3rootroot512Nov1914:33licenses-rwxr-xr-x.1rootroot5555Nov1914:33os_arch.png-rwxr-xr-x.1rootroot15008Nov1914:33os_centos.png-rwxr-xr-x.1rootroot13776Nov1914:33os_chakra.png-rwxr-xr-x.1rootroot10391Nov1914:33os_chrome.png-rwxr-xr-x.1rootroot7229Nov1914:33os_clover.png-rwxr-xr-x.1rootroot8480Nov1914:33os_crunchbang.png-rwxr-xr-x.1rootroot9377Nov1914:33os_debian.png-rwxr-xr-x.1rootroot16482Nov1914:33os_elementary.png-rwxr-xr-x.1rootroot8763Nov1914:33os_fedora.png-rwxr-xr-x.1rootroot5980Nov1914:33os_freebsd.png-rwxr-xr-x.1rootroot11658Nov1914:33os_frugalware.png-rwxr-xr-x.1rootroot7549Nov1914:33os_gentoo.png-rwxr-xr-x.1rootroot7668Nov1914:33os_gummiboot.png-rwxr-xr-x.1rootroot5830Nov1914:33os_haiku.png-rwxr-xr-x.1rootroot14399Nov1914:33os_hwtest.png-rwxr-xr-x.1rootroot12873Nov1914:33os_kubuntu.png-rwxr-xr-x.1rootroot5620Nov1914:33os_legacy.png-rwxr-xr-x.1rootroot6246Nov1914:33os_linuxmint.png-rwxr-xr-x.1rootroot10097Nov1914:33os_linux.png-rwxr-xr-x.1rootroot11232Nov1914:33os_lubuntu.png-rwxr-xr-x.1rootroot10574Nov1914:33os_mac.png-rwxr-xr-x.1rootroot7783Nov1914:33os_mageia.png-rwxr-xr-x.1rootroot12854Nov1914:33os_mandriva.png-rwxr-xr-x.1rootroot12379Nov1914:33os_netbsd.png-rwxr-xr-x.1rootroot14836Nov1914:33os_network.png-rwxr-xr-x.1rootroot6572Nov1914:33os_opensuse.png-rwxr-xr-x.1rootroot10041Nov1914:33os_redhat.png-rwxr-xr-x.1rootroot7231Nov1914:33os_refind.png-rwxr-xr-x.1rootroot8484Nov1914:33os_refit.png-rwxr-xr-x.1rootroot9202Nov1914:33os_slackware.png-rwxr-xr-x.1rootroot6572Nov1914:33os_suse.png-rwxr-xr-x.1rootroot12270Nov1914:33os_ubuntu.png-rwxr-xr-x.1rootroot11686Nov1914:33os_unknown.png-rwxr-xr-x.1rootroot3872Nov1914:33os_win8.png-rwxr-xr-x.1rootroot6565Nov1914:33os_win.png-rwxr-xr-x.1rootroot10547Nov1914:33os_xubuntu.png-rwxr-xr-x.1rootroot5170Nov1914:33README-rwxr-xr-x.1rootroot4507Nov1914:33tool_apple_rescue.png-rwxr-xr-x.1rootroot3018Nov1914:33tool_memtest.png-rwxr-xr-x.1rootroot1974Nov1914:33tool_mok_tool.png-rwxr-xr-x.1rootroot3785Nov1914:33tool_netboot.png-rwxr-xr-x.1rootroot3446Nov1914:33tool_part.png-rwxr-xr-x.1rootroot13817Nov1914:33tool_rescue.png-rwxr-xr-x.1rootroot2010Nov1914:33tool_shell.png-rwxr-xr-x.1rootroot4313Nov1914:33tool_windows_rescue.png-rwxr-xr-x.1rootroot213Nov1914:33transparent.png-rwxr-xr-x.1rootroot1344Nov1914:33vol_external.png-rwxr-xr-x.1rootroot1418Nov1914:33vol_internal.png-rwxr-xr-x.1rootroot1892Nov1914:33vol_net.png-rwxr-xr-x.1rootroot2423Nov1914:33vol_optical.png/mnt/efi/EFI/BOOT/icons-backup/licenses:total49drwxr-xr-x.2rootroot512Nov1914:33CreativeCommonsLegalCode_files-rwxr-xr-x.1rootroot23484Nov1914:33CreativeCommonsLegalCode.html-rwxr-xr-x.1rootroot18092Nov1914:33gpl-2.0.txt-rwxr-xr-x.1rootroot7651Nov1914:33lgpl-3.0.txt/mnt/efi/EFI/BOOT/icons-backup/licenses/CreativeCommonsLegalCode_files:total52-rwxr-xr-x.1rootroot34054Nov1914:33cc-logo.jpg-rwxr-xr-x.1rootroot13483Nov1914:33deed3.css-rwxr-xr-x.1rootroot2315Nov1914:33deed3-print.css-rwxr-xr-x.1rootroot1208Nov1914:33errata.js-rwxr-xr-x.1rootroot454Nov1914:33unported.png/mnt/efi/EFI/BOOT/keys:total14-rwxr-xr-x.1rootroot767Nov202015altlinux.cer-rwxr-xr-x.1rootroot1080Nov202015canonical-uefi-ca.der-rwxr-xr-x.1rootroot876Nov202015fedora-ca.cer-rwxr-xr-x.1rootroot1516Nov202015microsoft-kekca-public.der-rwxr-xr-x.1rootroot1499Nov202015microsoft-pca-public.der-rwxr-xr-x.1rootroot1556Nov202015microsoft-uefica-public.der-rwxr-xr-x.1rootroot1656Nov202015openSUSE-UEFI-CA-Certificate.cer-rwxr-xr-x.1rootroot831Nov202015refind.cer-rwxr-xr-x.1rootroot1769Nov202015SLES-UEFI-CA-Certificate.cer/mnt/efi/EFI/tools:total47-rwxr-xr-x.1rootroot47752Nov202015gptsync_x64.efi
Try removing all the filesystem driver files from /mnt/efi/EFI/BOOT/drivers_x64except for the ext4_x64.efi file. You currently have all the filesystem drivers installed simultaneously, and that sometimes creates problems, particularly on Macs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just noticed a detail in your description that makes me think the Linux entry you're trying to boot is for a BIOS-mode boot loader. That will work if and only if you've got a hybrid MBR, as described here. If you don't have a hybrid MBR, you could try creating one and see if that helps.
Alternatively, do you see any entries that refer to your kernel file(s) by name (as in vmlinuz-3.10.0-229.el7.x86_64)? Assuming you have a driver for the filesystem you used on /boot, you should see such an entry, and it should work; however, you may need to add a root=/dev/mapper/centos_n2--vmhost-root kernel option by hitting F2 or Insert twice to launch it, at least until you can run mkrlconf in Linux to build a /boot/refind_linux.conf file. If you don't see such an entry, it might be worth trying to diagnose why it's not showing up. To that end, what filesystem is in use on /boot? Btrfs might require extra options to work correctly. You could try installing an EFI shell to see if you can locate the kernel from it, which would help with such reconfiguration.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That's strange. Are you seeing the same Linux icon as before, or has that changed to a CentOS or Fedora icon? When you boot to CentOS, is there a directory called /sys/firmware/efi? Also, could you post the output of cat /proc/cmdline? I'm just trying to understand what's going on, since renaming that volume should not have made any difference.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're almost certainly booting in BIOS mode, not in EFI mode. I still don't know why your kernels aren't showing up as options in the rEFInd menu -- but if you're happy booting the way you are booting, I'd say it's best to leave it where it is.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to make my mac-mini dual-boot into Cent-os 7 which not touching my OSX (mavericks atm) install.
I shrank the OSX install successfully, and installed refind-0.10.0-1 using the OSX install script.
When the system boots I see refind and it can boot OSX just fine.
I then tried installing Centos 7 from the DVS, but it failed complaining that grub's core.img would not fit anywhere.
So I burnd a gparted-live DVD, and used that to move the 3 OSX partions (EFI, Customer, Recovery) by 1MB.
This works fine, and I can still boot into OSX using refind..
Then I managed to install Centos7 just fine, but it refuses to boot. Refind shows up and
has OSX, OSX recover, and a Linux icon (and another X-DVD when teh superdrive is attached)
But under the Linux icon there is no kernel version mentioned, and when I press FN-F2 twice I
get am empty booty commandline..
when I try to boot I get
no bootable device found - insert one and press any key
so I boot into the Centos recovery from the DVD
and I see this
What else do I need to do to make this work?
any help is appreciated
Try removing all the filesystem driver files from
/mnt/efi/EFI/BOOT/drivers_x64
except for theext4_x64.efi
file. You currently have all the filesystem drivers installed simultaneously, and that sometimes creates problems, particularly on Macs.Thanks. I tried that but i still get the same 'No bootable device' message..
I just noticed a detail in your description that makes me think the Linux entry you're trying to boot is for a BIOS-mode boot loader. That will work if and only if you've got a hybrid MBR, as described here. If you don't have a hybrid MBR, you could try creating one and see if that helps.
Alternatively, do you see any entries that refer to your kernel file(s) by name (as in
vmlinuz-3.10.0-229.el7.x86_64
)? Assuming you have a driver for the filesystem you used on/boot
, you should see such an entry, and it should work; however, you may need to add aroot=/dev/mapper/centos_n2--vmhost-root
kernel option by hitting F2 or Insert twice to launch it, at least until you can runmkrlconf
in Linux to build a/boot/refind_linux.conf
file. If you don't see such an entry, it might be worth trying to diagnose why it's not showing up. To that end, what filesystem is in use on/boot
? Btrfs might require extra options to work correctly. You could try installing an EFI shell to see if you can locate the kernel from it, which would help with such reconfiguration.I use ext4 on /boot, because Centos7 by default is xfs which i suspected wasn't supported.
and no, I have nothing referring to a linux kernel by name. when I pres F2 twice I get just an empty editor without anything else
what would the complete rub commandline look like?
On a hunch, I booted back into gparted and named /dev/sda5 '/boot' and gave it the label 'boot' and now it works
That's strange. Are you seeing the same Linux icon as before, or has that changed to a CentOS or Fedora icon? When you boot to CentOS, is there a directory called
/sys/firmware/efi
? Also, could you post the output ofcat /proc/cmdline
? I'm just trying to understand what's going on, since renaming that volume should not have made any difference.I see the same Linux icon..
[root@os-ctrl sys]# cd firmware
[root@os-ctrl firmware]# ls
acpi dmi memmap
[root@os-ctrl firmware]#
BOOT_IMAGE=/vmlinuz-3.10.0-229.el7.x86_64 root=/dev/mapper/centos_n2--vmhost-root ro vconsole.font=latarcyrheb-sun16 rd.lvm.lv=centos_n2-vmhost/swap vconsole.keymap=us rd.lvm.lv=centos_n2-vmhost/root rhgb quiet LANG=en_US.UTF-8
You're almost certainly booting in BIOS mode, not in EFI mode. I still don't know why your kernels aren't showing up as options in the rEFInd menu -- but if you're happy booting the way you are booting, I'd say it's best to leave it where it is.