Let's say I have an Ubuntu live USB pen drive, created using usb-creator
. I want to
- Verify the integrity of the Ubuntu install on the pen drive (only against accidental damage, not malicious changes).
- Find out the Ubuntu flavour and version and architecture (eg, something like Kubuntu 14.10 amd64).
How does one do this?
I do not want to take the trouble of booting from the USB for either of these, of course. And other files may be stored on the pen drive too, they do not interfere with the live USB functionality.
First identify your USB device with the command:
Lets assume it is /dev/sdb1
Now generate the MD5 hash code:
It will take some time. It will give a long code like:
Finally compare it with the the codes issued in Ubuntu web site:
If the your hash code is different, probably your USB key is corrupted.