How can I check if a filesystem is write-protected?

Responsive Ad Header

Question

Grade: Education Subject: Support
How can I check if a filesystem is write-protected?
Asked by:
51 Viewed 51 Answers

Answer (51)

Best Answer
(271)
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.