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

Re: Verificare un cd masterizzato rispetto all'immagine iso



> Il problema c'è anche sull'altra woody di casa, con tutti i lettori
> cd. Sono sicuro che ci sarà un modo. Come si verificano le immagini da
> linux? C'è qualcuno che lo fa e come? Potrebbe dipendere dalla
> dimensione del blocco? Come faccio a sapere la dimensione corretta del
> blocco?

ho trovato anche questo:

md5sum myiso.iso
rawread /dev/cdrom | md5sum

da qui:
http://www.troubleshooters.com/linux/coasterless.htm#_TestingCD

e questo e' lo script *rawread*:

<INIZIO>

#!/bin/sh
device=$1

blocksize=`isoinfo -d -i $device | grep "^Logical block size is:" | cut -d " " -f 5`
if test "$blocksize" = ""; then
	echo catdevice FATAL ERROR: Blank blocksize >&2
	exit
fi

blockcount=`isoinfo -d -i $device | grep "^Volume size is:" | cut -d " " -f 4`
if test "$blockcount" = ""; then
	echo catdevice FATAL ERROR: Blank blockcount >&2
	exit
fi

command="dd if=$device bs=$blocksize count=$blockcount conv=notrunc,noerror"
echo "$command" >&2
$command

<FINE>

che ti da una buona idea di come leggere il CD a blocchi

a questo punto dovresti essere a posto :)

-- 
mattia



Reply to: