Originally Posted by
g0tmi1k
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!'