Tails Installer should say when a USB stick is too small
Even if the documentation say that Tails Installer needs at least a 4Go USB stick, when trying to install Tails on a smaller device exit with a cryptic error message instead of just saying that the device is too small.
here is the exact error message :
Exact steps to reproduce the error
—————————————————
dd if=/dev/zero of=/dev/sdb # wait a long time
Run the Tails installer
It fails with the error below:
Actual result and description of the error
—————————————————————
Partitioning device /dev/sdb
Error creating partition: helper exited with exit code 1: In
part_add_partition: device_file=/dev/sdb, start=0, size=2621440000,
type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B
Entering MS-DOS parser (offset=0, size=2070937600)
MSDOS_MAGIC found
found partition type 0xee => protective MBR for GPT
Exiting MS-DOS parser
Entering EFI GPT parser
GPT magic found
partition_entry_lba=2
num_entries=128
size_of_entry=128
Leaving EFI GPT parser
EFI GPT partition table detected
containing partition table scheme = 3
got it
got disk
Error: Can’t have a partition outside the disk!
ped_partition_new() failed
LiveUSB creation failed!
Error creating partition: helper exited with exit code 1: In
part_add_partition: device_file=/dev/sdb, start=0, size=2621440000,
type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B
Entering MS-DOS parser (offset=0, size=2070937600)
MSDOS_MAGIC found
found partition type 0xee => protective MBR for GPT
Exiting MS-DOS parser
Entering EFI GPT parser
GPT magic found
partition_entry_lba=2
num_entries=128
size_of_entry=128
Leaving EFI GPT parser
EFI GPT partition table detected
containing partition table scheme = 3
got it
got disk
Error: Can’t have a partition outside the disk!
ped_partition_new() failed
Related issues
- Is duplicate of #6538 (closed)
Original created by @goupille on 8408 (Redmine)