Sunday, 24 September 2017

Add Kali Linux + persistence (UEFI+MBR) to E2B

There is already a .mnu file for booting to a Kali ISO file in MBR mode with persistence.
There is a blog tutorial for a full OS install of Kali onto E2B here.

Here is how to get UEFI+MBR working with a persistent file...

Kali Linux (UEFI+MBR) with persistence

1. Use RMPrepUSB - Create a ext3 file with a volume name of 'persistence' and move the file to \_ISO\LINUX

FileName=Kali   (same name as .imgPTN file we will create in next step)
Volume=persistence   (must be lower case and exactly this name!)
Size= (whatever, e.g. 500)

2. Create a Kali.imgPTN file using FAT32 MPI Desktop shortcut and the Kali kali-linux-2017-W16-amd64.iso file (drag-and-drop). I also tested kali-linux-lxde-2017.2-amd64.iso too.

Use a recent version of the MPI Tool Kit so that it prompts you for the syslinux version.

Enter 6 for Syslinux v6 when prompted.

You should now have:

3. Use Switch_E2B.exe to select kali.imgPTN&kali (ensure both images are detected). Instead you can MBR boot to the E2B menu and select the kali.imgPTN file.

Windows may want to format the ext3 partition at this point, because it does not recognise it - but don't let it format it, just click Cancel!

Note: at this point, create a folder \isolinux and copy the existing \syslinux\splash.png file to the new \isolinux folder. This is so you get the Kali wallpaper for the grub boot menu. This was not required for the LXDE version.

4. Boot to Kali (first menu option) and create persistence.conf file...

The persistent 'volume' needs a persistence.conf file in it!
Boot to kali first boot menu option (do NOT use the Persistence menu entry!)
and then type following 5 lines in the Terminal shell to enable persistence - then reboot

mkdir /mnt/usb
ls /dev/sd*                                     (to see which is the USB device - normally sdb)
mount /dev/sdb3 /mnt/usb             (will always be sdx3 for 3rd partition)
echo "/ union" > /mnt/usb/persistence.conf or sudo bash -c "echo '/ union' >  /mnt/usb/persistence.conf"
umount /mnt/usb

note that on your system the USB drive may not be sdb.

5. Reboot and use 'Live System (Persistence)' menu option.