blob: 4c6f163fc0c002fdb06f0b1d767c061de76a836d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
|