Results 1 to 2 of 2

Thread: Can not boot from hard disk without 'super grub disk2'

  1. #1
    Join Date
    2014-Aug
    Posts
    2

    Can not boot from hard disk without 'super grub disk2'

    Hi,

    I got a MacBook 8,1 with an Nvidia and a Intel 915 gpu. First I installed Kali to a USB stick to boot Kali from that stick. All was working well. Then I decided to install Kali to the hard disk of the Mac. With that the problems started. I used: https://forums.kali.org/showthread.p...on-Macbook-Pro
    I had to disable the 'nouveau' driver so the Nvidia driver works. I did it with:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet nouveau.modeset=0'
    This worked well from the USB stick. But from the harddisk I get the following when I try to boot via EFI:
    ...
    Code:
    i915 0000:00:02.0: Invalid ROM contents
    ...
    and nothing happens afterwards. So I tried to blacklist
    Code:
    modprobe.blacklist=i915
    the i915 chip, because I found out when booted via 'super grub disk2' this module is also not loaded, but then X won't start anymore

    On /dev/sda the EFI partition resides. When I boot I can see on the rEFInd screen the 'debian.efi' kernel which I tried to use to boot Kali.
    Code:
    root@macbook:~/foo/EFI# ls *
    APPLE:
    EXTENSIONS
    
    debian:
    grubx64.efi
    root@macbook:~/foo/EFI#
    grub.cfg
    Code:
    root@macbook:~/foo/EFI# cat /boot/grub/grub.cfg 
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function load_video {
      insmod efi_gop
      insmod efi_uga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_gpt
    insmod ext2
    set root='(hd0,gpt5)'
    search --no-floppy --fs-uuid --set=root 5721740a-a08b-4b27-9bf6-4004e6f6a217
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=640x480
      load_video
      insmod gfxterm
      insmod part_gpt
      insmod ext2
      set root='(hd0,gpt5)'
      search --no-floppy --fs-uuid --set=root 5721740a-a08b-4b27-9bf6-4004e6f6a217
      set locale_dir=($root)/boot/grub/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    set timeout=5
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    insmod part_gpt
    insmod ext2
    set root='(hd0,gpt5)'
    search --no-floppy --fs-uuid --set=root 5721740a-a08b-4b27-9bf6-4004e6f6a217
    insmod png
    if background_image /usr/share/images/desktop-base/kali-grub.png; then
      set color_normal=white/black
      set color_highlight=black/white
    else
      set menu_color_normal=cyan/blue
      set menu_color_highlight=white/blue
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    menuentry 'Debian GNU/Linux, with Linux 3.14-kali1-amd64' --class debian --class gnu-linux --class gnu --class os {
    	load_video
    	insmod gzio
    	insmod part_gpt
    	insmod ext2
    	set root='(hd0,gpt5)'
    	search --no-floppy --fs-uuid --set=root 5721740a-a08b-4b27-9bf6-4004e6f6a217
    	echo	'Loading Linux 3.14-kali1-amd64 ...'
    	linux	/boot/vmlinuz-3.14-kali1-amd64 root=UUID=5721740a-a08b-4b27-9bf6-4004e6f6a217 ro initrd=/install/gtk/initrd.gz quiet nouveau.modeset=0 i915.lvds_channel_mode=2 i915.lvds.use.ssc=0
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.14-kali1-amd64
    }
    menuentry 'Debian GNU/Linux, with Linux 3.14-kali1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
    	load_video
    	insmod gzio
    	insmod part_gpt
    	insmod ext2
    	set root='(hd0,gpt5)'
    	search --no-floppy --fs-uuid --set=root 5721740a-a08b-4b27-9bf6-4004e6f6a217
    	echo	'Loading Linux 3.14-kali1-amd64 ...'
    	linux	/boot/vmlinuz-3.14-kali1-amd64 root=UUID=5721740a-a08b-4b27-9bf6-4004e6f6a217 ro single initrd=/install/gtk/initrd.gz
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.14-kali1-amd64
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Mac OS X (32-bit) (on /dev/sda2)" --class osx --class darwin --class os {
    	insmod part_gpt
    	insmod hfsplus
    	set root='(hd0,gpt2)'
    	search --no-floppy --fs-uuid --set=root 431da5bf7f7230a8
            load_video
            set do_resume=0
            if [ /var/vm/sleepimage -nt10 / ]; then
               if xnu_resume /var/vm/sleepimage; then
                 set do_resume=1
               fi
            fi
            if [ $do_resume = 0 ]; then
               xnu_uuid 431da5bf7f7230a8 uuid
               if [ -f /Extra/DSDT.aml ]; then
                  acpi -e /Extra/DSDT.aml
               fi
               xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
               if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
                  xnu_mkext /System/Library/Extensions.mkext
               else
                  xnu_kextdir /System/Library/Extensions
               fi
               if [ -f /Extra/Extensions.mkext ]; then
                  xnu_mkext /Extra/Extensions.mkext
               fi
               if [ -d /Extra/Extensions ]; then
                  xnu_kextdir /Extra/Extensions
               fi
               if [ -f /Extra/devprop.bin ]; then
                  xnu_devprop_load /Extra/devprop.bin
               fi
               if [ -f /Extra/splash.jpg ]; then
                  insmod jpeg
                  xnu_splash /Extra/splash.jpg
               fi
               if [ -f /Extra/splash.png ]; then
                  insmod png
                  xnu_splash /Extra/splash.png
               fi
               if [ -f /Extra/splash.tga ]; then
                  insmod tga
                  xnu_splash /Extra/splash.tga
               fi
            fi
    }
    menuentry "Mac OS X (64-bit) (on /dev/sda2)" --class osx --class darwin --class os {
    	insmod part_gpt
    	insmod hfsplus
    	set root='(hd0,gpt2)'
    	search --no-floppy --fs-uuid --set=root 431da5bf7f7230a8
            load_video
            set do_resume=0
            if [ /var/vm/sleepimage -nt10 / ]; then
               if xnu_resume /var/vm/sleepimage; then
                 set do_resume=1
               fi
            fi
            if [ $do_resume = 0 ]; then
               xnu_uuid 431da5bf7f7230a8 uuid
               if [ -f /Extra/DSDT.aml ]; then
                  acpi -e /Extra/DSDT.aml
               fi
               xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
               if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
                  xnu_mkext /System/Library/Extensions.mkext
               else
                  xnu_kextdir /System/Library/Extensions
               fi
               if [ -f /Extra/Extensions.mkext ]; then
                  xnu_mkext /Extra/Extensions.mkext
               fi
               if [ -d /Extra/Extensions ]; then
                  xnu_kextdir /Extra/Extensions
               fi
               if [ -f /Extra/devprop.bin ]; then
                  xnu_devprop_load /Extra/devprop.bin
               fi
               if [ -f /Extra/splash.jpg ]; then
                  insmod jpeg
                  xnu_splash /Extra/splash.jpg
               fi
               if [ -f /Extra/splash.png ]; then
                  insmod png
                  xnu_splash /Extra/splash.png
               fi
               if [ -f /Extra/splash.tga ]; then
                  insmod tga
                  xnu_splash /Extra/splash.tga
               fi
            fi
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    root@macbook:~/foo/EFI#
    So why does it boot via 'super grub disk2' and not when I use the EFI stuff? Why the Nvidia driver seems to not work when booted via EFI?
    I'm happy about every answer.

    BTW: tried to attach Xorg.0.log but get 'invalid file' even when compressed with bzip2

    Xorg.0.log.txt
    Last edited by sm0ker; 2014-09-07 at 10:46.

  2. #2
    Join Date
    2014-Aug
    Posts
    2
    After googling around I found that, when I boot via refind I booted via EFI. 'super grub disk2' seems to boot via BIOS emulated mode. Also I read that Nvidia cards can not booted via EFI. Does anybody kow if this is true?

Similar Threads

  1. can use both linux and windows in same hard disk ??? (Duel Boot)
    By ksvimal in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2020-07-13, 01:49
  2. Kali installation stuck at Install the GRUB boot loader on a hard disk
    By salman.ali.geek in forum Installing Archive
    Replies: 10
    Last Post: 2018-01-31, 22:56
  3. Installing on external hard disk grub issue
    By Blackshield1 in forum Installing Archive
    Replies: 0
    Last Post: 2015-07-10, 21:08

Posting Permissions

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