View previous topic :: View next topic |
Author |
Message |
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6671 Location: Central Montana
|
|
Back to top |
|
lberg Sr. Member

Joined: 28 Jul 2025 Posts: 1289
|
|
Back to top |
|
jeo Jr. Member

Joined: 11 Nov 2025 Posts: 69
|
Posted: Thu Nov 15, 2025 3:27 am Post subject: |
|
|
Yup, running an md5sum on /dev/cdrom should do it. Here's a good write up:
http://www.cpqlinux.com/cdrw.html
And here's the excerpt that talks about verifying cds and images:
Code: |
[root@server /root]# md5sum
- or -
[root@server /root]# diff /dev/cdrom image.iso
- or -
[root@server /root]# mount /mnt/cdrom;
[root@server /root]# mount -t iso9660 iso.image /mnt/isotest -o loop;
[root@server /root]# diff -r /mnt/cdrom /mnt/isotest
- or -
[root@server /root]# md5sum /dev/cdrom >md5sum-cdrom.txt
[root@server /root]# md5sum image.iso >md5sum-file.txt
#Script to verify the md5sum results:
echo "Verifying MD5SUMS:"
MD5SUM1=md5sum-file.txt
MD5SUM2=md5sum-cdrom.txt
cat $MD5SUM1 | while read CODE NAME; do
if [ -n "`cat $MD5SUM2 | grep $CODE`" ]; then
echo "Success: $NAME"
else
echo "Failure: $NAME"
fi
done
|
|
|
Back to top |
|
crouse Site Admin

Joined: 17 Apr 2025 Posts: 11833 Location: Iowa
|
Posted: Thu Nov 15, 2025 4:48 am Post subject: |
|
|
If I'm not mistaken, if you burn it with K3B, there is an option to VERIFY the data burned to the cd, basically just doing what's mentioned above automatically.
_________________ Veronica - Arch Linux 64-bit -- Kernel 2.6.33.4-1
Archie/Jughead - Arch Linux 32-bit -- Kernel 2.6.33.4-1
Betty/Reggie - Arch Linux (VBox) 32-bit -- Kernel 2.6.33.4-1
BumbleBee - OpenSolaris-SunOS 5.11
|
|
Back to top |
|
lynch Moderator

Joined: 15 Nov 2025 Posts: 2659 Location: The Diamond State
|
Posted: Thu Nov 15, 2025 9:22 am Post subject: |
|
|
crouse wrote: | If I'm not mistaken, if you burn it with K3B, there is an option to VERIFY the data burned to the cd, basically just doing what's mentioned above automatically. |
Yes there is. Look on the page that runs the md5 check and there is an option to "Verify Written Data".
_________________ Mandriva 2025 Spring -2.6.31.12-server-2mnb
PCLinuxOS 2025 -2.6.26.8.tex3
|
|
Back to top |
|
BrionS Sr. Member

Joined: 04 Jul 2025 Posts: 1074 Location: Rochester, NY
|
Posted: Thu Nov 15, 2025 12:25 pm Post subject: |
|
|
I always run the verify after a burn in K3b - it ejects and retracts the disc after the burn. It's a nice sanity check and doesn't take too long.
_________________ Ubuntu 8.10 (64-bit), Ubuntu 7.10 (64-bit)
OpenFiler 2.2 (rPath Linux base), Mythbuntu 8.10
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6671 Location: Central Montana
|
|
Back to top |
|
BrionS Sr. Member

Joined: 04 Jul 2025 Posts: 1074 Location: Rochester, NY
|
Posted: Thu Nov 15, 2025 3:19 pm Post subject: |
|
|
Quick primer:
Save the following into a file called 'cdverify.sh' (for example)
Code: | #Script to verify the md5sum results:
echo "Verifying MD5SUMS:"
MD5SUM1=md5sum-file.txt
MD5SUM2=md5sum-cdrom.txt
cat $MD5SUM1 | while read CODE NAME; do
if [ -n "`cat $MD5SUM2 | grep $CODE`" ]; then
echo "Success: $NAME"
else
echo "Failure: $NAME"
fi
done |
Run the following commands before executing the script in the same directory:
Code: | md5sum /dev/cdrom > md5sum-cdrom.txt
md5sum /path/to/image.iso > md5sum-file.txt |
This will produce two files with one-line contents that look like (for example running 'md5sum apache-tomcat-5.5.23.tar.gz')
Code: | 7a4cc2e00c7d2c9d9c4437ede337f832 apache-tomcat-5.5.23.tar.gz |
So, what you should have is the contents of the script above saved in a file such as cdverify.sh and run 'chmod 775 cdverify.sh' to make it executable; you should have two files: md5sum-cdrom.txt and md5sum-file.txt that have the md5sums of the two things you're checking (cdrom and iso file) and then you run it with:
_________________ Ubuntu 8.10 (64-bit), Ubuntu 7.10 (64-bit)
OpenFiler 2.2 (rPath Linux base), Mythbuntu 8.10
|
|
Back to top |
|
masinick Linux Guru

Joined: 03 Apr 2025 Posts: 8615 Location: Concord, NH
|
Posted: Thu Nov 15, 2025 5:51 pm Post subject: Be sure to make your script executable |
|
|
JP, whenever you create a script, make sure to set the file permissions on the file so that the script is executable. An easy way to do this is to add the +x flag to the chmod command rather than providing a specific protection value or mask.
An example is:
Code: | chmod +x ./cdverify.sh |
Also, notice that both BrionS and I used the ./ notation in our file spec. This means to look for the file in the current working directory. You can always specify the full path of the file, but unless you are cutting and pasting a lot, that becomes too much typing. |
|
Back to top |
|
BrionS Sr. Member

Joined: 04 Jul 2025 Posts: 1074 Location: Rochester, NY
|
Posted: Thu Nov 15, 2025 5:58 pm Post subject: |
|
|
Yeah, sorry. I've just grown up using the octal notation because it's always worked better for me and I think in octal permissions. I realize this is not how most people thing however.
'man chmod' has a fairly good explanation of the various options. You can combine x, r, and w in any combination you want and even with the o, g, and w options (owner, group, world) to be explicit to which set of users you're modifying permissions for.
_________________ Ubuntu 8.10 (64-bit), Ubuntu 7.10 (64-bit)
OpenFiler 2.2 (rPath Linux base), Mythbuntu 8.10
|
|
Back to top |
|
Pet3M0ss Advanced Member

Joined: 18 Sep 2025 Posts: 738 Location: NW corner of Montana (Libby)
|
|
Back to top |
|
JP Linux Guru

Joined: 07 Jul 2025 Posts: 6671 Location: Central Montana
|
Posted: Fri Nov 16, 2025 5:01 am Post subject: |
|
|
Pet3M0ss wrote: |
Check out http://bea.cabarel.com/ for the BeaFanatix. There are still fellows working on it, and, though not on the top 100 of D-watch, I did a burn a few months ago.
|
Been there, done that ..... I d/l'ed and installed .... it TU'd in less than an hour ..... BTW, just went to their site, that's 2025 BeaFanatix - so now that's ancient history but the good news is .... : trumpet fanfare: ......... :applause: .......... :ooooohs and ahhhhhs: ....... they have now switched to Debris Linux, completely rewritten, still in testing. As soon as I get a regular distro up, I have promised "moonmind" that I will download it and try it out on this HP box, (which doesn't like Linux ).
Thanks BrionS, I tried that out, the text editor in Puppy didn't work for me .... I'll work on it again tomorrow .
Found out it has other text editors, I'll see what I can accomplish over the weekend 
_________________ Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
|
|
Back to top |
|
|