Files
MarkdownNotes/Fun with ISOs.md
2023-04-26 09:27:33 -04:00

1.2 KiB

All About ISO's

Create ISO from DVD

Get the info of the cd/dvd you're copying.

isoinfo -d -i /dev/sr0 | grep -i -E 'block size|volume size'

Sample Output:

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:

dd if=/dev/sr0 of=/mnt/incoming/test.iso bs=2048 count=2264834

Sample Output:

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

md5sum /mnt/incoming/test.iso

Sample Output:

d3a2cdd58b8c9ade05786526a4a8eae2 /mnt/incoming/test.iso

DVD

md5sum /dev/sr0

Sample Output:

d3a2cdd58b8c9ade05786526a4a8eae2 /dev/sr0

Create ISO from files/directories

Examples

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

mount -o loop -t iso9660 /tmp/CalibreLibrary2018.iso /tmp/OldLibrary