Bug #8940

tails-persistence-setup bootstrap wrongly computes persistent volume size when the partition table doesn't span on the full disk

Added by patcon 2015-02-22 19:21:51 . Updated 2018-08-18 12:29:55 .

Status:
Confirmed
Priority:
Low
Assignee:
Category:
Persistence
Target version:
Start date:
2015-02-22
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

I had a 4GB USB with a persistence volume that I cloned to a 16GB using `dd`. The persistence volume on UsB #2 understandably didn’t take up the full space as it normally would.

But when I tried to delete the persistence partition and run the bootstrap step again to recreate a larger one, only a partition of the original size was created. This wouldn’t have been so confusing except that the t-p-s wizard provides information leading me to believe otherwise (ie “we’re going to create a persistence volume of 12.67 GB” etc). And when I started seeing random failures later due to being out of space, it took me quite a bit of troubleshooting to realize that disk space was the issue. (“Disk Utility” showed me the actual size when I later thought to look, but deleting the partition there still resulted in t-p-s sneakily recreating it as smaller than it claimed it would.)

In the end, I got it working as expected (t-p-s creating volume on max available space) by doing a “Clone & Install” from a second USB running tails, and that presumably got rid of whatever was wonky in the MBR (?).

The expected behavour of t-p-s would be to at least have honest output, but ideally be able to catch that edge-case and use the full space.


Subtasks


History

#1 Updated by intrigeri 2015-02-22 20:18:21

  • Subject changed from t-p-s bootstrap can't create full-sized volume when `dd` cloned from smaller usb to t-p-s bootstrap wrongly computes persistent volume size when the partition table doesn't span on the full disk
  • Status changed from New to Confirmed

> The expected behavour of t-p-s would be to at least have honest output,

Agreed, retitling accordingly.

> but ideally be able to catch that edge-case and use the full space.

Patches welcome, but then that should be on another ticket as I’ve re-targeted this one to something more realistic.

#2 Updated by Anonymous 2018-08-18 12:29:55

  • Subject changed from t-p-s bootstrap wrongly computes persistent volume size when the partition table doesn't span on the full disk to tails-persistence-setup bootstrap wrongly computes persistent volume size when the partition table doesn't span on the full disk