CentOS-6.9 I am trying to verify a locally created dvd. I am using sha256sum in this fashion: sha256sum /dev/sr0 Which gave this result: sha256sum: /dev/sr0: Input/output error So I tried this: sha256sum /dev/cdrom Which, after some time, also produces: sha256sum: /dev/cdrom: Input/output error What does this mean and how do I fix it? -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB at Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
On Mon, Apr 24, 2017 at 12:53:36PM -0400, James B. Byrne wrote:> > CentOS-6.9 > > I am trying to verify a locally created dvd. I am using sha256sum in > this fashion: > sha256sum /dev/sr0 > > Which gave this result: > > sha256sum: /dev/sr0: Input/output error > > > So I tried this: > sha256sum /dev/cdrom > > Which, after some time, also produces: > > sha256sum: /dev/cdrom: Input/output error > > What does this mean and how do I fix it?It means that you're getting an error while reading one of the sectors of the DVD. It might be a problem with the disc, but it could also be a problem with the hardware. Try doing a dd to copy all the bits to a local file, and pay attention to see if it has a problem reading the disc. Then run a sha256sum on the file it created. -- Jonathan Billings <billings at negate.org>
On 04/24/2017 12:39 PM, Jonathan Billings wrote:> On Mon, Apr 24, 2017 at 12:53:36PM -0400, James B. Byrne wrote: >> >> CentOS-6.9 >> >> I am trying to verify a locally created dvd. I am using sha256sum in >> this fashion: >> sha256sum /dev/sr0 >> >> Which gave this result: >> >> sha256sum: /dev/sr0: Input/output error >> >> >> So I tried this: >> sha256sum /dev/cdrom >> >> Which, after some time, also produces: >> >> sha256sum: /dev/cdrom: Input/output error >> >> What does this mean and how do I fix it? > > It means that you're getting an error while reading one of the sectors > of the DVD. It might be a problem with the disc, but it could also be > a problem with the hardware. > > Try doing a dd to copy all the bits to a local file, and pay attention > to see if it has a problem reading the disc. Then run a sha256sum on > the file it created.Note also that the sha256sum of the whole disk is going to include the padding that gets appended, and so will not match the sha256sum of the ISO file that was written to the disk. The "isosize" command will tell you the size of the original file, and you need to pass just that many bytes to the "sha256sum" command. -- Bob Nichols "NOSPAM" is really part of my email address. Do NOT delete it.
On 04/24/2017 11:53 AM, James B. Byrne wrote:> CentOS-6.9 > > I am trying to verify a locally created dvd. I am using sha256sum in > this fashion: > sha256sum /dev/sr0 > > Which gave this result: > > sha256sum: /dev/sr0: Input/output error > > > So I tried this: > sha256sum /dev/cdrom > > Which, after some time, also produces: > > sha256sum: /dev/cdrom: Input/output error > > What does this mean and how do I fix it? > >If the DVD is a version of CentOS, we include an internal MD5sum check at the beginning after bootup (it says 'check and install'). That would verify the content of the payload for CentOS. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20170427/ff1704ec/attachment-0001.sig>
On Mon, Apr 24, 2017 at 9:53 AM, James B. Byrne <byrnejb at harte-lyne.ca> wrote:> sha256sum /dev/sr0 > Which gave this result: > sha256sum: /dev/sr0: Input/output errorisoinfo -d -i /dev/sr0 | grep -i -E 'block size|volume size' dd if=/dev/cdrom bs=<block size from above> count=<volume size from above> | sha256sum Reference: https://www.thomas-krenn.com/en/wiki/Create_an_ISO_Image_from_a_source_CD_or_DVD_under_Linux