There are times, when we copy/download CDs, iso files, tar files or any other files, the files seems to be ok but when we try to use it, it generate error or maybe resulting a fail installation.
Well, there are many ways to eliminate on what went wrong, and this posting is only trying to help in a way to ensure that the CDs/files are passed the integrity check.
What I'm about to share in here is only one way to tell if the files that we've downloaded are corrupted or not. of course there are other ways.
in most common Unix-like OS there is a tool called 'cksum' that we can practically use it after OS installation, so no need to install a third party package to use the tool to check the integrity of a file.
cksum is a command in Unix-like operating systems that generates a checksum value for a file or stream of data. The cksum command reads the file or files specified as arguments, or standard input if no arguments are provided, and calculates a checksum value, cyclic redundancy check (CRC) and the byte count. The checksum, number of bytes, and file name are written to standard output.
The cksum command can be used to verify the equality of two files on different computers, such as a copy made over noisy transmission lines.[1]. (If the files are on the same computer, equality can be verified with the cmp command.) The comparison made by the cksum command is not cryptographically secure. However, it is unlikely that an accidentally damaged file will produce the same checksum as the original file.
Syntax
cksum [ File ... ]
Usage example
$ cksum test.txt
4038471504 75 test.txt
$
4038471504 => This represents the check sum value
75 => This represents the file size of test.txt
But this only works on a Unix-like Operating System (including GNU/Linux, *BSD, Mac OS X, and Solaris), what about if we copy it through a windows machine, surely we need a cksum executables file for windows so the result can be compare.
There's a tool called 'coreutils' this tool is developed under GPL licenses
in this utility we can installed and uses tools such as 'cksum' and any other Unix-Like OS commands. the tools can be download from this link :
reference:http://en.wikipedia.org/wiki/Cksum
hopes this helps...
There are 2 ways to mount iso file in hp-ux 1) using LVM method (to copy ISO into a logical volume) is the same as for older HP-UX releases: 1. Find out the size of the ISO image: # du -k /data/myImage.iso NOTE: The size will be in Kb. 2. Create a logical volume for the ISO image: # lvcreate -L -n iso /dev/vg00 NOTE: The name of the logical volume will be /dev/vg00/iso 3. Copy the ISO file to the raw logical volume: # dd if=/data/myImage.iso of=/dev/vg00/riso bs=64k 4. Create a temporary directory and mount the /dev/vg00/iso volume # mkdir /iso_image # mount /dev/vg00/iso /iso_image NOTE: For HP-UX 11.11 you must install the latest CDFS patches: PHCO_25841 Add Rock Ridge extension to mount_cdfs(1M) PHKL_26269 Rock Ridge extension for ISO-9660 PHKL_34153 CDFS cumulative patch 2) Available in HP-UX 11.31 0909: ISOIMAGE-ENH. Provides a new DLKM module fspd. Required to mount, read and umount the ISO image file. The comm...
Comments