I have a USB stick with a live system. One file in this has got the wrong md5 sum. The ISO image from which it was made had the right md5 sum.
I want to rename the broken file such that it does not harm any longer and put a known good replacement into the same directory.
Of course I could make a new stick from the onset. But my special stick has more than one partition and I want to keep the other partitions unchanged. Also there are some other files in the live system, which I would like to modify (and of course adapt the entries with the md5sums of the file md5sum.txt to the changed files). So my first question is just a practice for the second step.
I have already tried to mount the device (/dev/sdb1 in my case) in -w mode, but it refuses to do so because of the iso9660 filesystem.
md5sum -c --quiet md5sum.txt
always report./boot/grub/efi.img
as wrong! This also happened with other new sticks. Before using the stick all md5sums were right. Before using the downloaded isofile, its overall checksum was also ok. Really strange for an immutable file system! – Adalbert Hanßen Dec 30 '21 at 11:37