When I slided the write protection tab to Lock, re-insert the card, and run the command again: $ /sbin/hdparm -r /dev/sdc If you are not root, be sure to specify full path to the hdparm command and this assumes you have read permission on your card of course.įor example: my SD card is inserted, detected as /dev/sdc, and write protection tab is at Unlock: $ /sbin/hdparm -r /dev/sdc This program should be available in most GNU/Linux distributions, commonly in a package named "hdparm". In case you would like to check it yourself at device level, you can use the hdparm command to query read-only status of disk device, including SD card and USB flash drive in general. Mount: block device /dev/sdc1 is write-protected, mounting read-only The driver knows when the card is write-protected, and it actually warns when you mount it via command line: # mount /dev/sdc1 /media/flash
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |