ktlwgrandchp wrote: ↑2022-08-16 21:18
I used it like so:
Code: Select all
./check_debian_iso SHA512SUMS debian-11.4.0-i386-DVD-1.iso /dev/sdb
, and it found a mismatch, but that could because of the fact that /dev/sdb is a debian folder that holds the USB stick and not the actually .iso in the USB itself (in fact, the USB is partitioned into 2 partitions after a dd).
The netinst works fine, which further leads me to believe the DVD .iso is problematic (I burned it on a USB stick 3 times through either cp or dd). But, suppose the check_debian_iso is right, then how would this be fixed?
Yes, the check_debian_iso script is probably right. I successful downloaded the debian-11.4.0-i386-DVD-1.iso image, verified its integrity, copied it to a usb stick and verified the content of the aforementioned usb stick containing the debian installer. This are the command I used to test it (/dev/sdX must be replaced with the device name assigned to the usb stick by the kernel, for example /dev/sdb in my test):
Code: Select all
wget -N https://cdimage.debian.org/debian-cd/current/i386/iso-dvd/SHA512SUMS
wget -N https://cdimage.debian.org/debian-cd/current/i386/iso-dvd/debian-11.4.0-i386-DVD-1.iso
wget -N https://people.debian.org/~danchev/debian-iso/check_debian_iso
cp debian-11.4.0-i386-DVD-1.iso /dev/sdX
sync
bash ./check_debian_iso SHA512SUMS debian-11.4.0-i386-DVD-1.iso
bash ./check_debian_iso SHA512SUMS debian-11.4.0-i386-DVD-1.iso /dev/sdX
For example:
Code: Select all
# bash ./check_debian_iso SHA512SUMS debian-11.4.0-i386-DVD-1.iso
Piping 1947792 blocks of 'debian-11.4.0-i386-DVD-1.iso' through 'sha512sum'
to verify checksum list item 'debian-11.4.0-i386-DVD-1.iso'.
1947792+0 record in
1947792+0 record out
3989078016 bytes (4,0 GB, 3,7 GiB) copied, 30,1881 s, 132 MB/s
# bash ./check_debian_iso SHA512SUMS debian-11.4.0-i386-DVD-1.iso /dev/sdb
Piping 1947792 blocks of '/dev/sdb' through 'sha512sum'
to verify checksum list item 'debian-11.4.0-i386-DVD-1.iso'.
1947792+0 record in
1947792+0 record out
3989078016 bytes (4,0 GB, 3,7 GiB) copied, 231,947 s, 17,2 MB/s
Ok: '/dev/sdb' matches 'debian-11.4.0-i386-DVD-1.iso' in 'SHA512SUMS
Therefore perhaps you missed something (for example, you didn't flush the kernel's disk buffers with the sync command before extracting it) or the usb stick you used was somewhere faulty (the dvd iso image is bigger then the netinst iso, therefore the probability to hit defective flash memory is higher).
Can you verify ?