how do I check the integrity of an install-cd after booting

Asked by Humphrey van Polanen Petel

https://help.ubuntu.com/community/Installation/CDIntegrityCheck describes how to check the integrity of an install-cd at boot-time. My question is: how do I check the integrity of an install-cd after booting? For instance, my system is up and running, I have an install-cd in my hand and I do not want to reboot my system.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Sam_ (and-sam) said :
#1

Before booting the LiveCD there was an .iso file burned, where each one has and md5 hash.
e.g.
ubuntu-11.10-alternate-amd64.iso
md5sum
5e427f31e6b10315ada74094e8d5d483

Example.
Lets say the .iso file is in /home/humphrey/Downloads
open a terminal: ctrl+alt+t
Enter:
md5sum /home/humphrey/Downloads/ubuntu-11.10-alternate-amd64.iso

The output should match given md5sum from web page.
https://help.ubuntu.com/community/HowToMD5SUM
https://help.ubuntu.com/community/UbuntuHashes

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2
Revision history for this message
Humphrey van Polanen Petel (hpvpp) said :
#3

Sam_,
The question was not about the iso file, but about the cd

actionparsnip,
Sorry, but when I type "sudo mount /dev/hda" the system responds with "special device /dev/hda does not exist".
When I do a dir of /dev there is no /hda listed.
When I do a dir of / Ithere is a cdrom listed, but when I cd there and type "md5sum -c md5sum.txt" the response is "no such file or directory" and indeed when I type dir it just returns the prompt.

Note that I am new to linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Yes, mount the CD and you can MD5 test it. You cannot mount /dev/hda as it is a drive, not a partition. The CD should automount.

Revision history for this message
delance (olivier-delance) said :
#5
Revision history for this message
Humphrey van Polanen Petel (hpvpp) said :
#6

actionparsnip,

Yes, the cd does automount: an icon appears on the left and when I click that a panel opens with icons telling me what is on the cd.
Now, how do I do this md5 test?

Revision history for this message
Humphrey van Polanen Petel (hpvpp) said :
#7

delance,

The page you referred me to describes how to do the check at *boot*-time.
What I want is to know how to do this check at *run*-time

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#8

md5sum -c md5sum.txt

in the folder containing md5sum.txt on the CD

Revision history for this message
Humphrey van Polanen Petel (hpvpp) said :
#9

Uh, I really am new to linux so you will need to tell me how to do that

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#10

if you run:

mount

you can see where the mount point of the CD, usually /media/cdrom

so you can run:

cd /media/cdrom; md5sum -c md5sum.txt

And it will work, obviously change the mount point as needed

Revision history for this message
Humphrey van Polanen Petel (hpvpp) said :
#11

Thanks.

Though permit me to say that for a computer illiterate person this would be impossible to achieve.

Now, somebody please add some instructions to achieve this to https://help.ubuntu.com/community/Installation/CDIntegrityCheck

Revision history for this message
Humphrey van Polanen Petel (hpvpp) said :
#12

Thanks actionparsnip, that solved my question.