The Dojo 2 guide is very nice, but doesn't solve the issue: by copying the iso to the pendrive, the partition table isn't valid, there isn't "unallocated" space where allocate the persistence partition.
Code:
$ sudo dd if=kali-linux-2.0-amd64.iso of=/dev/sdb bs=16M
197+1 records in
197+1 records out
3320840192 bytes (3.3 GB) copied, 167.98 s, 19.8 MB/s
$ sudo parted -l /dev/sdb
Model: ATA WDC WD10JPVT-24A (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 983GB 983GB primary ext4 boot
2 983GB 1000GB 16.9GB extended
5 983GB 1000GB 16.9GB logical linux-swap(v1)
Error: Invalid partition table - recursive partition on /dev/sdb.
fdisk doesn't directly show any partition table error, but goes crazy with the size of the added primary partition 1.8 TB:
Code:
$ sudo fdisk /dev/sdb
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sdb: 1.8 TiB, 2000396746752 bytes, 3907024896 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: 0x0a9a1b1a
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 6486015 6486016 3.1G 17 Hidden HPFS/NTFS
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2):
First sector (6486016-3907024895, default 6486016):
Last sector, +sectors or +size{K,M,G,T,P} (6486016-3907024895, default 3907024895):
Created a new partition 2 of type 'Linux' and of size 1.8 TiB.
Command (m for help): p
Disk /dev/sdb: 1.8 TiB, 2000396746752 bytes, 3907024896 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: 0x0a9a1b1a
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 6486015 6486016 3.1G 17 Hidden HPFS/NTFS
/dev/sdb2 6486016 3907024895 3900538880 1.8T 83 Linux
Command (m for help):
Any hint?