Determine whether you want to disable or enable read/write protection and select one of the following:
Disable read or write protection.
$ rmformat -r disable device-name
$ rmformat -w disable device-name
Enable read or write protection.
$ rmformat -r enable device-name
$ rmformat -w enable device-name
Verify whether the media's read/write protection is enabled or disabled.
$ rmformat -p device-name