summaryrefslogtreecommitdiff
path: root/doc/note/burncdrom/burncdrom.txt
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2024-05-12 12:55:07 +0200
committerAndreas Fankhauser hiddenalpha.ch2024-05-12 12:55:07 +0200
commit5cc4c2b95df9bf6998d92496ca0e0064314fba39 (patch)
treeac7d979f81a86703508ff23e2694a6b4d6bfe4d5 /doc/note/burncdrom/burncdrom.txt
parent1dc9f8c9db499a326ceee6cb3b48878ee17ff9fa (diff)
parent95d934e8e3918832c03f05b2fc32cb5d5272cb83 (diff)
downloadUnspecifiedGarbage-wip-LatitudeReSetup-20230620.zip
UnspecifiedGarbage-wip-LatitudeReSetup-20230620.tar.gz
Merge remote-tracking branch 'ha-public/master' into wip-LatitudeReSetup-20230620wip-LatitudeReSetup-20230620
Diffstat (limited to 'doc/note/burncdrom/burncdrom.txt')
-rw-r--r--doc/note/burncdrom/burncdrom.txt38
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/note/burncdrom/burncdrom.txt b/doc/note/burncdrom/burncdrom.txt
new file mode 100644
index 0000000..4c6f163
--- /dev/null
+++ b/doc/note/burncdrom/burncdrom.txt
@@ -0,0 +1,38 @@
+
+How to handle CD/DVD burning
+============================
+
+## Install growisofs
+
+ apt install genisoimage
+
+
+## Burn to optical media from ISO
+
+growisofs -dvd-compat -Z /dev/srX=path/to/my.iso
+
+
+## "Burn" to USB from ISO
+
+ dd bs=4M if=path/to/my.iso of=/dev/sdX status=progress oflag=sync
+
+
+## Get checksum of disc
+
+- Use isoinfo (from genisoimage pkg) to get size params.
+- Use dd parameterized by previous output.
+
+ isoinfo -d dev=/dev/srX
+ dd bs=${Logical block size} count=${Volume size} if=/dev/srX | md5sum -b
+
+
+## Get checksum of usb drive
+
+- Use stat to get block/count.
+- Divide num by drive block size (likely 4096).
+- Use dd parameterized by previous output.
+
+ stat -c '%s' my.iso
+ dd bs=${Logical block size} count=${Volume size} if=/dev/sdx | md5sum -b
+
+