Date: Sat, 06 Mar 2004 00:40:59 -0800 From: underway@comcast.net (Gary W. Swearingen) To: "David" <dvelez502@verizon.net> Cc: questions@freebsd.org Subject: Re: Can't mount cd9660 file system. Message-ID: <mellmecqqs.lme@mail.comcast.net> In-Reply-To: <001501c4032c$94fefe00$6601a8c0@david> (David's message of "Fri, 5 Mar 2004 22:39:02 -0500") References: <001501c4032c$94fefe00$6601a8c0@david>
next in thread | previous in thread | raw e-mail | index | archive | help
If you have doubts about your CD (but you probably shouldn't), this should help: iso_file="backup.iso" blocksize=2048 ## *** WARNING *** DVDs might be different *** WARNING *** ## Block size of ISO CDs. Nothing else will work (esp,in dd command). blocks=$(( $(ls -l ${iso_file} | awk '{print $5;}') / ${blocksize} )) bytes=$(( ${blocks} * ${blocksize} )) if dd if=/dev/acd0 count=${blocks} bs=${blocksize} | diff - ${iso_file}; then echo "NOTICE: Comparison OK. The CD seems OK." else echo "ERROR: The CD and file differred." fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?mellmecqqs.lme>