UFS kern.geom.disk.da0.flags WRITEPROTECT

Hi BSD Users
After a pax backup from FreeBSD 12.1 amd64 from HD on to a bootable 128GB USB Stick, over night, which at least crashed the system, I can no longer write on the stick using SADE.
After steering around, I found that sysctl message

"kern.geom.disk.da0.flags: 1a8<CANFLUSHCACHE,DIRECTCOMPLETION,CANZONE,WRITEPROTECT>"

could someone explain how to make the da0 device writable again ?

Thanks and greetings, Anton
 
Did you boot from that stick? Because the system does write protect the boot sector from accidental overwrites but only on the media it booted from. There's no "flag" or anything you can set or reset to make a USB write-protected, with any OS. So if this stick claims it's write-protected it either has a write-protect latch/switch (some sticks have this) or it's broken.
 
Did you boot from that stick? Because the system does write protect the boot sector from accidental overwrites but only on the media it booted from. There's no "flag" or anything you can set or reset to make a USB write-protected, with any OS. So if this stick claims it's write-protected it either has a write-protect latch/switch (some sticks have this) or it's broken.
Thanks for fast answer!
So this WRITEPROTECT in the kern.geom.disk.da0.flags is only informational meant....

Greeting Anton
 
Back
Top