On 04/02/2014 07:49 PM, Glen Slick wrote:
Yes, I believe
there is an ioctl for writing disk labels. Some bit of kernel
code which sets the DKF_WLABEL flag to allow the section of code above to
pass its check.
It appears that the usage "disklabel -N disk" should
disable write
access to the disk label area and the usage "disklabel -W disk" should
enable write access to the disk label area, where I think disk should
be the device /dev/rra8a you were using
So maybe all you need to do is use disklabel -W before trying to dd to
the rx33 disk. I don't have a system running at the moment to give
that a try myself.
Yep, this works perfectly, and changing media does not reset the write
enable.
Sigh. You'd think after 35+ years working with *nix, I'd know enough to
RTFM.