You are not logged in.
Pages: 1
Hello, I want to get the md5sum of a DVD, to make sure that isos that I made are correct, but by terminal.
I am trying to do the following, and I always I'm getting the same error:
[davigetto@helena ~]$ md5sum /dev/sr0
md5sum: /dev/sr0: I/O error
I have tried with /dev/dvd and /dev/cdrom, but they doesn't work.
What can I do to get de md5sum of a DVD correctly?
Greetings
Last edited by Davigetto (2007-08-22 23:09:35)
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
Hmm, mine works with /dev/cdrom. My user is in the optical and storage groups, and the cd is mounted.
Offline
I am getting the same errors as a root also, and I'm on that groups
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
I think I read somewhere that you could do something like this: "dd if=/dev/dvd | md5sum" but I'm not sure it would work. Let me try and find it again.
EDIT: Found it here, looks like it was partially correct, you need to add some more options to dd, check the URL. Also found this python script another Arch user put together for verifying burns: http://bbs.archlinux.org/viewtopic.php?pid=262760.
Last edited by [vEX] (2007-08-23 11:43:44)
PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM
Offline
When I verify that a burned CD or DVD is "equal" to an ISO file, I use the dd method posted above, but pipe the dd output to diff with the -Hqs options and compare the disc data to the ISO file data on the fly. I believe (not sure ) that it saves some time. I also like to use pipeviewer (called pv, it's in community) to have a progress bar. I have a (rather long) script for this, but the "core" is this:
#!/bin/sh
IMAGE="$1"
BURNER=/dev/dvd
BLOCKSIZE="$(isoinfo -d -i $BURNER | grep "^Logical block size is:" | cut -d " " -f 5)"
BLOCKCOUNT="$(isoinfo -d -i $BURNER | grep "^Volume size is:" | cut -d " " -f 4)"
IMAGESIZE=$(($BLOCKSIZE * $BLOCKCOUNT))
dd if=$BURNER bs=$BLOCKSIZE count=$BLOCKCOUNT conv=notrunc | pv -N " Reading data" -s $IMAGESIZE | diff -Hqs - "$IMAGE"
Offline
veX, your information is really interesting, I have tested the python script and works well, but I never get the same md5 match (maybe all my cd's are wrong? :S)
Bebo, which command much I use to get your script working? ./beboscript image.iso??
greetings and thanks
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
Bebo, which command much I use to get your script working? ./beboscript image.iso??
Yes, exactly Save the script somewhere, chmod 755 it, and then run it with the ISO image as argument.
Offline
ok, thank you very much all
Greetings
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
Pages: 1