>
> Hi,
>
> I'm having trouble getting rawio to work on
>
> Red Hat Linux release 6.2 (Zoot) Kernel 2.2.13-okeefe on a 2-processor i686
>
> Does anyone have any idea what I'm doing wrong based on the following:
>
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/sdb1 8741468 28 8297388 0% /wtecache1
> /dev/sdc1 8741468 20 8297396 0% /wtecache2
>
> [mad@shaggy ~mad/tmp]$ ls -l /dev/sdb1 /dev/sdc1
> brw-rw---- 1 root mail 8, 17 May 5 1998 /dev/sdb1
> brw-rw---- 1 root mail 8, 33 May 5 1998 /dev/sdc1
>
> [mad@shaggy mad]$ raw /dev/raw/raw1 /dev/sdb1
> /dev/raw/raw1: bound to major 8, minor 17
>
> [mad@shaggy mad]$ raw /dev/raw/raw2 /dev/sdc1
> /dev/raw/raw2: bound to major 8, minor 33
>
> [mad@shaggy ~mad/tmp]$ raw -qa
> /dev/raw/raw1: bound to major 8, minor 17
> /dev/raw/raw2: bound to major 8, minor 33
>
> [mad@shaggy ~mad/tmp]$ ./dd.raw if=/dev/raw/raw1 of=/dev/raw/raw2 bs=512
> ../dd.raw: /dev/raw/raw1: Invalid argument
> 0+0 records in
> 0+0 records out
>
> Thanks,
> Mary Ann
>
try:
$ strace -o /tmp/strace.out ./dd.raw if ...
and see what system call is failing with einval.
scott
|