diff options
Diffstat (limited to 'doc/note/burncdrom/burncdrom.txt')
-rw-r--r-- | doc/note/burncdrom/burncdrom.txt | 38 |
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 + + |