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