Dd

From UVOO Tech Wiki
Revision as of 23:03, 12 May 2019 by imported>Busk (Created page with "# copy CD/DVD to iso image and mount Copy ``` dd if=/dev/sr0 of=my-output.iso bs=10M ``` Mount ``` sudo mount -t iso9660 -o loop lotrbfme2-2.iso /tmp/a ``` Using noerror fo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

copy CD/DVD to iso image and mount

Copy

dd if=/dev/sr0 of=my-output.iso bs=10M

Mount

sudo mount -t iso9660 -o loop lotrbfme2-2.iso /tmp/a

Using noerror for attempt at protected disk

You may get something like this

dd: error reading '/dev/sr0': Input/output error
51+1 records in
51+1 records out

This may work but

dd if=/dev/sr0 of=my-output.iso bs=10M conv=noerror,sync status=progress

Try these two commands

Get volume size

isoinfo -d -i /dev/sr0 | grep -i -E 'block size|volume size'
Logical block size is: 2048
Volume size is: 2264834

Set count to volume size value

dd if=/dev/sr0 of=my-output.iso bs=2048 count=2264834