<h2 id="brought-up-by-klaatu-on-gnuworldorder.info">Brought up by Klaatu
on GnuWorldOrder.info</h2>
<h3 id="media-size">Media size</h3>
<p>4.7Gb DVD - Actual capacity: 4.377Gb</p>
<p><a
href="https://www.cdrom2go.com/blog/what-is-the-actual-storage-capacity-of-a-dvd-disc"
title="What is the actual storage capacity of a dvd disc">What is the
actual storage capacity of a dvd disc</a></p>
<p>A disc with a 25GB capacity is the equivalent of 23.28 gigabytes
Normally rated at 50GB, in practice they can record about 46.57GB of
data</p>
<p><a
href="https://www.cdrom2go.com/blog/what-is-the-maximum-capacity-of-a-blu-ray-disc"
title="What is the maximum capacity of a blu ray disc">What is the
maximum capacity of a blu ray disc</a></p>
<p>Generate ISO image from directory</p>
<pre><code>genisoimage -U -R -allow-lowercase -allow-multidot -o mydvd.iso &quot;$1&quot;</code></pre>
<p>Alternative is <em>mkisofs</em></p>
<pre><code>-U

Allows &quot;untranslated&quot; filenames, completely violating the ISO9660 standards described above. Enables the following flags: -d -l -N -allow-leading-dots -relaxed-filenames -allow-lowercase -allow-multidot -no-iso-translate. Allows more than one `.&#39; character in the filename, as well as mixed-case filenames. This is useful on HP-UX, where the built-in cdfs filesystem does not recognize any extensions. Use with extreme caution.

-R

Generate SUSP and RR records using the Rock Ridge protocol to further describe the files on the ISO9660 filesystem.

[Wikipedia - ISO 9660](https://en.wikipedia.org/wiki/ISO_9660#SUSP &quot;Wikipedia - ISO 9660&quot;)</code></pre>
<h3 id="corrected-command">Corrected command</h3>
<pre><code>genisoimage -R -o mydvd.iso &quot;$1&quot;</code></pre>
<p>Burning data to a DVD or Blu-ray</p>
<p>Note:</p>
<p>Make sure that the medium is not mounted when you begin to write to
it. Mounting may happen automatically if the medium contains a readable
file system. In the best case, it will prevent the burn programs from
using the burner device. In the worst case, there will be misburns
because read operations disturbed the drive. So if in doubt, do:</p>
<pre><code>umount /dev/sr0</code></pre>
<p>growisofs has a small bug with blank BD-R media. It issues an error
message after the burning is complete. Programs like k3b then believe
the whole burn run failed. To prevent this, either format the blank BD-R
by dvd+rw-format /dev/sr0 before submitting it to growisofs or use
growisofs option</p>
<pre><code>-use-the-force-luke=spare:none</code></pre>
<p><a
href="https://wiki.archlinux.org/title/Optical_disc_drive#Burning_an_ISO_image_to_CD,_DVD,_or_BD"
title="Archwiki - Optical disk burning">Archwiki - Optical disk
burning</a></p>
<h2 id="burning-an-iso-image-to-cd-dvd-or-bd">Burning an ISO image to
CD, DVD, or BD</h2>
<h3
id="to-burn-a-readily-prepared-iso-image-file-isoimage.iso-onto-an-optical-medium-run-for-cd">To
burn a readily prepared ISO image file isoimage.iso onto an optical
medium, run for CD:</h3>
<pre><code>cdrecord -v -sao dev=/dev/sr0 isoimage.iso</code></pre>
<h3 id="and-for-dvd-or-bd">and for DVD or BD:</h3>
<pre><code>growisofs -dvd-compat -Z /dev/sr0=isoimage.iso</code></pre>
<h3 id="for-cd-dvd-bd">for CD, DVD, BD:</h3>
<pre><code>xorriso -as cdrecord -v dev=/dev/sr0 -dao isoimage.iso</code></pre>
<h2 id="other-reading">Other reading</h2>
<h3 id="archwiki---optical-disk-drive">Archwiki - Optical disk
drive</h3>
<p><a href="https://wiki.archlinux.org/title/Optical_disc_drive"
title="Archwiki - Optical disk drive">Archwiki - Optical disk
drive</a></p>
<h3 id="debian---gensisoimage-man-page">Debian - Gensisoimage man
page</h3>
<p><a
href="https://manpages.debian.org/bookworm/genisoimage/genisoimage.1.en.html#U"
title="Debian - Gensisoimage man page">Debian - Gensisoimage man
page</a></p>
<h3 id="debian-wiki---genisoimage-and-xorrisofs">Debian wiki -
genisoimage and xorrisofs</h3>
<p><a href="https://wiki.debian.org/genisoimage"
title="Debian wiki">Debian wiki</a></p>
<h3 id="archiving-data-on-blu-ray-discs">Archiving data on Blu-ray
discs</h3>
<p><a href="https://briantomasik.com/archiving-data-on-blu-ray-discs/"
title="Archiving data">Archiving data</a></p>
<h3
id="mount-an-iso-file-and-burning-it-to-cd-rdvd-rbluray-in-linux">Mount
an ISO file and Burning it to CD-R/DVD-R/BluRay in Linux</h3>
<p><a href="https://linux.m2osw.com/mount-iso-file-linux"
title="Mount an ISO file and Burning">Mount an ISO file and
Burning</a></p>
<h3
id="what-is-the-size-capacity-of-my-dvd-dual-layer-dvd-or-blu-ray-disc">What
is the size capacity of my DVD, Dual Layer DVD or Blu-ray disc?</h3>
<p><a
href="http://kb.primera.com/article/21426/45024/what-is-the-size-capacity-of-my-dvd-dual-layer-dvd-or-bluray-disc-how-much-space-room"
title="What is the size capacity of my DVD">What is the size capacity of
my DVD</a></p>
<h3 id="wikipedia-iso9660">Wikipedia ISO9660</h3>
<p><a href="https://en.wikipedia.org/wiki/ISO_9660"
title="Wikipedia ISO9660">Wikipedia ISO9660</a></p>
