[comp.sys.ibm.pc.rt] AIX on PS2, diskette compare?

sergio@squid.rtech.com (Sergio Aponte) (07/08/89)

	I have a PS2/80 running AIX 1.1.

	Is there a utility that will let me compare 2 3.5 diskettes to each
	other? Put one on rfd0, one on rfd1 and see if they match byte per byte?

	Thanks. There is no PS2 or AIX group. I thought you guys might know.
-------------------------------------------------------------------------------
| Internet: sergio@squid.rtech.com                Sergio L. Aponte, MTS @ RTI |
| UUCP: {sun,mtxinu,pyramid,pacbell,hoptoad,amdahl,cpsc6a}!rtech!squid!sergio |
-------------------------------------------------------------------------------

clarke@acheron.uucp (Ed Clarke/10240000) (07/09/89)

From article <3060@rtech.rtech.com>, by sergio@squid.rtech.com (Sergio Aponte):
> 	Is there a utility that will let me compare 2 3.5 diskettes to each
> 	other? Put one on rfd0, one on rfd1 and see if they match byte per byte?

diff /dev/rfd0 /dev/rfd1 | pg

The '| pg' just pauses the output incase there are many differences.
-- 
Ed Clarke
acheron!clarke

njs@scifi.UUCP (Nicholas J. Simicich) (07/09/89)

In article <3060@rtech.rtech.com> sergio@squid.UUCP (Sergio Aponte) writes:

>	I have a PS2/80 running AIX 1.1.

>	Is there a utility that will let me compare 2 3.5 diskettes to each
>	other? Put one on rfd0, one on rfd1 and see if they match byte per byte?

>	Thanks. There is no PS2 or AIX group. I thought you guys might know.

Try "cmp /dev/rfd0 /dev/rfd1".  Just a guess.  Unfortunately, this is
likely to take a fair while if it works like the RT does under AIX,
because blocking will fail.  To make things work better, use dd to
read the files and specify a large ibs= which is a multiple of 512.

Ed Clarke (hi, Ed) suggested using diff.  cmp should be significantly
faster, and is probably a better fit for "byte per byte" comparisons.
-- 
Nick Simicich --- uunet!bywater!scifi!njs --- njs@ibm.com (Internet)