# All About ISO's ## Create ISO from DVD Get the info of the cd/dvd you're copying. ```shell isoinfo -d -i /dev/sr0 | grep -i -E 'block size|volume size' ``` Sample Output: ```shell Logical block size is: 2048 Volume size is: 2264834 ``` We use the Logical block size for the `bs=` variable and Volume size for the COUNT= use DD to copy the DVD to an iso: ```shell dd if=/dev/sr0 of=/mnt/incoming/test.iso bs=2048 count=2264834 ``` Sample Output: ```shell 2264834+0 records in 2264834+0 records out 4638380032 bytes (4.6 GB, 4.3 GiB) copied, 373.405 s, 12.4 MB/s ``` ### Test the image against the actual DVD Get checksum of DVD and newly created image Image ```shell md5sum /mnt/incoming/test.iso ``` Sample Output: ```shell d3a2cdd58b8c9ade05786526a4a8eae2 /mnt/incoming/test.iso ``` DVD ```shell md5sum /dev/sr0 ``` Sample Output: ```shell d3a2cdd58b8c9ade05786526a4a8eae2 /dev/sr0 ``` ## Create ISO from files/directories Examples ```shell mkisofs -J -l -R -V "eBooks" -iso-level 4 -o /tmp/eBooks.iso ~/ownCloud/calibre-library/ mkisofs -allow-lowercase -R -V "eBooks" -iso-level 4 -o /tmp/eBooks.iso /mnt/calibre-library ``` ## Mount ISO Image ```shell mount -o loop -t iso9660 /tmp/CalibreLibrary2018.iso /tmp/OldLibrary ```