You are not logged in.

#1 2007-08-22 23:09:16

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

How to do the md5sum verify of a cdrom?

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

#2 2007-08-22 23:17:53

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: How to do the md5sum verify of a cdrom?

Hmm, mine works with /dev/cdrom. My user is in the optical and storage groups, and the cd is mounted.

Offline

#3 2007-08-23 00:04:52

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: How to do the md5sum verify of a cdrom?

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

#4 2007-08-23 11:39:36

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Re: How to do the md5sum verify of a cdrom?

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

#5 2007-08-23 13:45:52

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: How to do the md5sum verify of a cdrom?

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 smile) 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

#6 2007-08-23 18:42:30

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: How to do the md5sum verify of a cdrom?

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

#7 2007-08-23 18:56:59

Bebo
Member
From: Göteborg, Sweden
Registered: 2006-06-07
Posts: 207

Re: How to do the md5sum verify of a cdrom?

Davigetto wrote:

Bebo, which command much I use to get your script working? ./beboscript image.iso??

Yes, exactly smile Save the script somewhere, chmod 755 it, and then run it with the ISO image as argument.

Offline

#8 2007-08-23 21:27:49

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

Re: How to do the md5sum verify of a cdrom?

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

Board footer

Powered by FluxBB