From f839029ae0506e28d5653ce4bb455b4a3cf4ebbf Mon Sep 17 00:00:00 2001 From: Breeze Date: Sat, 8 Aug 2026 21:14:53 +0200 Subject: [PATCH] Fix USB partition alignment --- lib/raw_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/raw_format.py b/lib/raw_format.py index f8ce09c..e5c1668 100755 --- a/lib/raw_format.py +++ b/lib/raw_format.py @@ -34,7 +34,7 @@ def raw_format(device_path, fstype, volume_label, uid, gid): # Make a partition (primary, with FS ID ext3, starting at 1MB & using 100% of space). # If it starts at 0% or 0MB, it's not aligned to MB's and complains - execute(["parted", device_path, "mkpart", "primary", partition_type, "1", "100%"]) + execute(["parted", device_path, "mkpart", "primary", partition_type, "1MiB", "100%"]) # Call wipefs on the new partitions to avoid problems with old filesystem signatures execute(["wipefs", "-a", partition_path, "--force"])