Hi,
I'm having some trouble trying to install Kali 2016.2 on a 64G USB stick that already has some partitions which I want to keep.
Basically I tried to copy the installation from another sdcard, which is working fine, with dd:
Code:
dd if=/dev/sdb2 of=/dev/sdc1
dd if=/dev/sdb1 of=/dev/sdc2
Of course this doesn't copy the bootloader so it doesn't boot. I'm kinda stuck at this step...
The disks look like this:
SOURCE - SDCARD:
Code:
Disk /dev/sdb: 7.4 GiB, 7946108928 bytes, 15519744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x77e6cfe3
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 5794271 5794208 2.8G 17 Hidden HPFS/NTFS
/dev/sdb2 5794272 6009311 215040 105M 1 FAT12
TARGET - USB STICK:
Code:
Disk /dev/sdc: 58.6 GiB, 62932647936 bytes, 122915328 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00e15cd1
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 585727 583680 285M 83 Linux
/dev/sdc2 585728 8974335 8388608 4G 83 Linux
/dev/sdc3 8974336 47454207 38479872 18.4G 83 Linux <-- keep
/dev/sdc4 47454208 122914815 75460608 36G 83 Linux <-- keep
How can I write the bootloader to the target usb stick?
Thanks.