aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/raw_write.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index 2a9f126..f06d8ad 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -202,8 +202,8 @@ class Dumper(object):
logging.debug(f"Start doing partition on {target} with label {label} in order {order}")
if order == b"1":
logging.debug("Erasing MBR")
- # First erase MBR and partition table , if any
- p = run(["dd", "if=/dev/zero", "of=%s" % target, "bs=512", "count=1"], capture_output=True)
+ # First erase MBR and partition table , if any, until iso 9660 descriptor
+ p = run(["dd", "if=/dev/zero", "of=%s" % target, "bs=512", "count=34K"], capture_output=True)
if p.returncode != 0:
print(stderr)
self.return_message = _("Writing error.")