[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Extracting directories from an ISO image, command line tool?



Thomas Schmitt wrote:
Hi,

Richard Owlett wrote:
richard@jessie:~$  ls -l /media/richard/Lexar/dvd8_2.iso
-rw-r--r-- 1 richard richard 3976200192 Sep  9 07:36 /media/richard/Lexar/dvd8_2.iso

richard@jessie:~$  /sbin/isosize /media/richard/Lexar/dvd8_2.iso
4677738496

You will need to get a new dvd8_2.iso of at least 4677738496
bytes size.


I've got some links "somewhere" for copying DVDs to files such that
checksums can be verified. Suspect that info may useful.

Depending on the DVD medium type you have to expect trailing
garbage after the end of the ISO. This has to be taken into
respect when copying, diffing, or md5summing.

I would use for copying from DVD to disk:

   blocks=$(expr $(/sbin/isosize /dev/sr0) / 2048)
   echo "Byte count: $(expr $blocks '*' 2048)"

   dd if=/dev/sr0 bs=2048 count=$blocks of=dvd8_2.iso

(It would be nice if Debian's MD5SUMS would not only tell
  MD5 and image name but also the image size, or if there
  was a SIZES file.)

Error messages from dd or dvd8_2.iso turning out smaller than
the announced byte count indicate failure of copying.

It appears that all of my dvd8_*.iso (except possibly dvd8_1.iso) were defective.
Using instructions above to create dvd8_2.iso apparently works.
Don't know what I did wrong last time around.

Thank you.





Reply to: