Question
How can I check if a filesystem is write-protected?
Asked by: USER8374
51 Viewed
51 Answers
Answer (51)
You can use the `tune2fs` command to check the write protection status of a filesystem. Run `tune2fs -l /dev/sdX` (replace /dev/sdX with the device name of the filesystem) and look for the 'Write Protect' attribute. If it's set to '1', the filesystem is write-protected.