Results 1 to 6 of 6

Thread: Kali Linux Hard drive install on Macbook Pro (no Dual boot - Replace OSX with Kali)

  1. #1
    Join Date
    2014-Jul
    Posts
    3

    Angry Kali Linux Hard drive install on Macbook Pro (no Dual boot - Replace OSX with Kali)

    Hi folks I am struggling with installing Kali Linux on my Mac book Pro.

    I want to kali linux on the hard drive. I also want to replace OSX completely with Kali Linux.

    I followed these instructions here to create a bootable USB drive on macbook pro: https://help.ubuntu.com/community/Ho...%20USB%20Stick

    Once I plug in this bootable USB into my Macbook pro and try to boot, I come across this screen : http://i.imgur.com/KijqXE2.jpg

    Once I select the EFI Boot option, my Macbook gets stuck.

    Please help

    PS - Why is there no install guides for all operating systems on kali linux site ?

  2. #2
    What Macbook pro are you using? make/modle/year?
    From what I've seen (https://forums.kali.org/showthread.p...5693#post35693), you need to boot from DVD with MBP.
    Once you do - you'll see a partation called 'Windows' (even tho its really Linux). You need to use this (not EFI).

    Im currently writing up the install guide for the docs.


    Edit:
    Guide: http://docs.kali.org/installation/ka...install-on-mac
    Last edited by g0tmi1k; 2014-09-16 at 10:13.
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

  3. #3
    Join Date
    2014-Jul
    Posts
    3
    Its a macbook pro late 2011 model rung osx 10.8.5. When I try to boot it using the DVD, It just boots to OSX. Kali linux is never detected. At this point I will more than happy with even a dual boot guide with either a USB or a DVD.

  4. #4
    Join Date
    2014-Jul
    Posts
    3
    Ok so I have tried this on both macbook pro late 2011 running osx 10.8.5 and a macbook pro mid 2009 model running mavericks. So here is what I have tried so far:

    > Downloaded 1.0.8 amd64 version of iso file from kali.org
    > Burned it to a DVD
    > Also made a bootable USB drive using dd (see link in original post)
    > Put in my usb and DVD into the laptop and restarted
    > pressed C during boot up and I could hear DVD drive running but the boot went to OSX and OSX loaded up.
    > Restarted again
    >this time pressed alt key on boot up and the screenshot in my original post showed up (on the late 2011 model ... only the hrd drive and recovery disk showed up on the mid 2009 model)
    > When I clicked on the EFI boot option (see screenshot), my macbook got stuck(only on late 2011 model. on the mid 2009 model I never even got to this screen). After no activity in half hour I restarted my mbp and it booted into osx

    Would you have any other suggestions for me ?

    Thanks a lot for working on those install guide and just want to impress upon you that those guides can't come soon enough. I would like to donate some more to Kali Linux if you folks can get those guides up by end of July.

  5. #5
    Join Date
    2014-Jul
    Location
    The Great Lonestar State of Texas!
    Posts
    18
    Quote Originally Posted by g0tmi1k View Post
    What Macbook pro are you using? make/modle/year?
    From what I've seen (https://forums.kali.org/showthread.p...5693#post35693), you need to boot from DVD with MBP.
    Once you do - you'll see a partation called 'Windows' (even tho its really Linux). You need to use this (not EFI).

    Im currrently writing up the install guide for the docs - Hoping to have it done before blackhat.
    Hey there g0tmi1k!
    I am currently working on a project that will allow a user to download a single ISO, burn it to a USB, boot from it and run the install from directions put right on the USB.

    I use a Macbook Pro 5.5 (mid 2009)
    Here is a very useful start to your project: Click Here
    Notice my remarks on the procedure near the end of the thread.
    I also posted some caveats about that procedure here.

    BTW, the 'premature eject-ulation' I refer to seems to be resolved with a fresh install of Snow Leopard. Looks like any OS upgrades beyond that causes that unusual spontaneous ejection of the DVD at random times -- which makes installing anything via the 'SuperDrive' a real pita. That condition probably explains why so many are anxious to install via USB; another nightmare situation -- unless you use this procedure here:
    (this is a procedure that I found online somewhere that I modified. I don't remember where I got it)
    -------------------------------------------------------------------------------
    USB Partitioning, formatting and Grub tweaking to get Linux USB to fire up on a Mac

    Linux Operations:

    Phase One:

    Using Gparted:
    1. Format your USB key with an MBR partition table.
    2. Add an 8MB ext3 partition. Label"grub" for simplicity.
    3. Add a 16MB fat32 partition. Label it "refit"
    4. Use the rest of your disk as FAT32. Label it with the name of the Linux you will copy to it (described later)

    Phase Two:

    1. Mount your ext3 GRUB partiton by: Closing gparted, ejecting the usb, reinserting the usb and restarting gparted
    2. Go to the usb drive in gparted and write down the Mount Point entry on the 8mb partition that you labeled grub.
    3. Right click on that partition and using Manage Flags set the boot flag
    2. Open terminal and type "sudo grub-install --root- directory=<mountpoint> /dev/myusb"
    **** replace <mountpoint> with the mount point you see in gparted and "myusb" with the correct sdX number as indicated in gparted for that partition

    NOTE: Ignore error about blocklists, if any

    4. create a directory /mnt/iso
    # mkdir /mnt/iso
    # mount -o loop <disk1.iso> /mnt/iso
    NOTE: Replace <disk1.iso> with the name of the iso file you are wanting to boot from.

    # cd /mnt/iso
    # <name of your favorite file manager> Using LXLE 14.04 64bit, I used pcmanfm --- SO, my command was
    # pcmanfm
    5. Make your file manager reveal hidden files
    6. Now you can use your file manager to copy all of the contents of your live cd iso or cd (including the hidden folder ".disk") to your fat partiton.
    7. In terminal create a zero'd out file called casper-rw in the fat partiton with 'dd if=/dev/zero of=/media/LIVE/casper-rw bs=512k count=2000 (for a 1GB file). [Replace the /media/LIVE with the mountpoint again!]
    8. Now type "mkfs.ext4 /path/to/casper-rw" and follow the instructions if there are any
    ------------------------------------------------------------------
    You should see something that looks like this:
    root@ubuntu:~# dd if=/dev/zero of=/media/ubuntu/LXLE140464/casper-rw

    bs=512K count=2000
    2000+0 records in
    2000+0 records out
    1048576000 bytes (1.0 GB) copied, 306.56 s, 3.4 MB/s
    root@ubuntu:~# mkfs.ext4 /media/ubuntu/LXLE140464/casper-rw
    mke2fs 1.42.9 (4-Feb-2014)
    /media/ubuntu/LXLE140464/casper-rw is not a block special device.
    Proceed anyway? (y,n) y
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    64000 inodes, 256000 blocks
    12800 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=264241152
    8 block groups
    32768 blocks per group, 32768 fragments per group
    8000 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376

    Allocating group tables: done
    Writing inode tables: done
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done
    ----------------------------------------------------------------
    Mac Operations:
    One last thing to prep the drive for boot...

    1. Open the rEFIt dmg and copy the "efi" folder to the 16mb fat32 partiton that you labeled "refit".
    2. Locate the file called "enable.sh" in the efi folder
    3. Open a terminal and issue the sudo -i command to get root
    4. Use Finder to open the refit partition and go into the refit folder
    5. In Terminal, change directory into the refit partition by typing cd and then dragging the small icon on your finder window down into the Terminal window -- that adds the correct path automatically. Enter.
    6. In Terminal: #./enable.sh

    We are almost there!

    7. Reboot your computer holding the option key
    8. Select rEFIt on your USB drive (If it doesn't appear take it out and plug it back in or boot all the way up and then reboot again)
    9. Select "Linux on HD" that has a picture of a flash drive on it.
    10. After a short time you will be left at a Grub prompt:
    -----------------------------------------------------------------
    At Grub prompt:

    ls to list partitions:
    (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1)

    GRUB> ls (hd0,msdos3)
    retrieve name of partition.... (mine is: lxle140464)

    GRUB> ls (hd0,msdos2)
    retrieve name of partition... (mine is: refit)

    GRUB> ls (hd0,msdos1)
    retrieve name of partition... (mine is: grub)

    One will be named "grub" (because you labeled it that way using gparted) and will be 8mb -- that on is your /boot

    One will be named "refit" and be about 16mb
    Leave that one alone

    One will be named the name you gave to the remaining fat32 partition and will be the largest listed. -- that is your /casper entry partition (mine is lxle140464)

    Now you can enter what you need to get it to boot...
    Mine goes like this:

    GRUB> set root=(hd0,msdos1)/boot
    GRUB> insmod linux
    GRUB> linux (hd0,msdos3)/casper/vmlinuz boot=casper persistent
    GRUB> initrd (hd0,msdos3)/casper/initrd.gz
    GRUB> boot

    NOTE: You may have to alter the names/locations of your vmlinuz and initrd

    Once booted in, you can edit your grub.cfg:
    Mine looks like this:

    set default=0
    set timeout=20
    insmod linux
    set root=(hd0,msdos1)/boot

    menuentry "LXFE 14.04 X64 Live from USB" {
    linux (hd0,msdos3)/casper/vmlinuz boot=casper persistent
    initrd (hd0,msdos3)/casper/initrd.gz
    }

    NOTE: You may have to alter the names/locations of your vmlinuz and initrd

    ******************************************
    Batta Bing! Batta Boom! You're in!


    I hope that this helps you in your endeavors...
    RoadRunnerTX
    "If you are gonna break it -- the least you can do is 'break it like a pro!'

  6. #6
    I've personally tested this on a MBP Mid 2012.
    Guide: http://docs.kali.org/installation/ka...install-on-mac
    This is a Kali-Linux support forum - not general IT/infosec help.

    Useful Commands: OS, Networking, Hardware, Wi-Fi
    Troubleshooting: Kali-Linux Installation, Repository, Wi-Fi Cards (Official Docs)
    Hardware: Recommended 802.11 Wireless Cards

    Documentation: http://docs.kali.org/ (Offline PDF version)
    Bugs Reporting & Tool Requests: https://bugs.kali.org/
    Kali Tool List, Versions & Man Pages: https://tools.kali.org/

Similar Threads

  1. Dual boot Kali with Linux Mint on LUKS encrypted Hard Drive
    By Zepher in forum Installing Archive
    Replies: 0
    Last Post: 2016-04-04, 18:25
  2. Duat Boot Kali Linux on Second Hard Drive
    By elvinguitar in forum Installing Archive
    Replies: 0
    Last Post: 2015-11-07, 06:16
  3. Replies: 12
    Last Post: 2015-02-23, 17:47
  4. Replies: 0
    Last Post: 2014-08-02, 20:19

Tags for this Thread

Posting Permissions

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