Command which does not work anymore?

Patrick Lamaiziere patfbsd at
Mon Dec 5 09:52:15 UTC 2011


I'm using 9.0 and the command below does not work, as far I remember
that worked fine with 8.2:

The goal is to copy an usb image from an OpenBSD host to an usb key on
my desktop via ssh.

On openbsd:
# cat ucop2.img | ssh patrick at xx dd of=/dev/da0 bs=10M
dd: /dev/da0: Invalid argument
0+5 records in
0+4 records out
81920 bytes transferred in 0.107747 secs (760299 bytes/sec)

With a file that works:
# cat ucop2.img | ssh patrick at xx dd of=ucop2.img

and then a dd to the key works fine.

And yes /dev/da0 is writable by all:
# ls -la /dev/da0*
crw-rw-rw-  1 root  operator    0, 132  5 déc 09:45 /dev/da0
crw-rw-rw-  1 root  operator    0, 133  5 déc 09:45 /dev/da0s4

There are some kernel messages on the FreeBSD box but I think this is
harmless because this is an OpenBSD partition:

GEOM_PART: integrity check failed (da0s4, BSD)

Any clue?
Thanks, regards.

More information about the freebsd-questions mailing list