I'm endeavoring to put Kali linux onto a USB stick - I know it's already written up, but I'd like to use only a portion of the total space (the aforementioned link will use the entire drive space).
Let's have my 16GB usb stick mounted as sdb ... the goal is:
16 GB total, split like this...
----------------------------
| 11 | 01 | 04 | (GB)
----------------------------
sdb1 sdb2 sdb3 (partition ID)
FAT32 FAT32 FAT32 (format)
storage fatdog kalipart (label)
- sdb1 is FAT32 and the main storage area (so that [windows can see it][2] along with any other OSes)
- sdb2 is bootable and has Fatdog64 (6.3.0) and Precise Puppy (5.7.1) installed (multi-booting from one syslinux menu)
- sdb3 is the target partition for Kali to use
The objective is to multi-boot Fatdog64, Puppy, and Kali linux. Currently, sdb2 is bootable (syslinux) and successfully passes to Fatdog and Puppy, both on sdb2. Next I'd like to add chainloading to Kali on sdb3. It seems to me that the best way to do that is to load GRUB4DOS from syslinux (both on sdb2), map sdb3 and chainload to sdb3 from GRUB4DOS.
So I ask: How do I install Kali onto an existing partition on this USB stick?
Other options:
- Install live Kali onto the USB stick/partition from the Kali distro itself - but this doesn't seem to be an option the same way it is with Fatdog/Puppy/Ubuntu
- Boot direclty to sdb3, chainloading to sdb2 if necessary (not preferred, but an option)
Update:
I have tried copying the files from a mounted iso to sdb3 using Fatdog64 and noticed several errors, mostly in copying the firmware files. Here's two examples:
Copying /mnt/+mnt+sda1+isos+kali-linux-1+0+6-i286+kali-linux-1+0+6-i286+iso/firmware/amd64/microcode_1.20120910-2_i386.deb as /mnt/sda3/firmware/amd64-microcode_1.20120910-2_i286.deb ERROR: Operation not permitted Copying /mnt/+mnt+sda1+isos+kali-linux-1+0+6-i286+kali-linux-1+0+6-i286+iso/debian as /mnt/sda3/debian ERROR: Operation not permitted
These errors look like permissions errors, but I can't tell if they affect booting or not (I can troubleshoot other errors later, I'd prefer to keep this question to just multi-boot).
I'm chainloading GRUB4DOS from the SYSLINUX installed by default via Fatdog64 ...
label grub4dos menu label grub4dos boot /boot/grub/grldr text help Load grub4dos via grldr (in /boot/grub) endtext
... and then once in GRUB4DOS, I have successfully chainloaded GRUB2 (on the kali partition) ...
title Load GRUB2 inside of kali find --set-root /g2ldr.mbr chainloader /g2ldr.mbr
... but all this gives me is a
grub>
prompt, and I haven't figured out any proper combinations of GRUB4DOS commands to load GRUB2 with a GRUB2 config file - and to add to the confusion, I thought the live CD iso of Kali ran on syslinux. (@jasonwryan @user63921)
isolinux.bin missing or corrupt.