{"id":430,"date":"2017-06-14T08:40:09","date_gmt":"2017-06-14T07:40:09","guid":{"rendered":"http:\/\/chewett.co.uk\/blog\/?p=430"},"modified":"2017-06-13T00:44:05","modified_gmt":"2017-06-12T23:44:05","slug":"raspberry-pi-read-file-system-fix-solved","status":"publish","type":"post","link":"https:\/\/chewett.co.uk\/blog\/430\/raspberry-pi-read-file-system-fix-solved\/","title":{"rendered":"Raspberry Pi Read-only file system Fix Solved"},"content":{"rendered":"<p>If you are getting &#8220;Read-only file system&#8221; on your Raspberry Pi when mounting drives there is a simple fix.<\/p>\n<pre>chewett@bunker-master2:\/mnt\/wd500$ touch test.txt\r\ntouch: cannot touch \u2018test.txt\u2019: Read-only file system<\/pre>\n<p>I noticed this happening when I tried to mount and work on my external hard drive. This is formatted with the NTFS filesystem.<\/p>\n<p>I did some research and it turns out that by default Raspbian Jessie (as of 13\/06\/2017) does not include the ability to write to NTFS drives. To add this ability you can run the below command<\/p>\n<pre>sudo apt-get install ntfs-3g<\/pre>\n<p>This installs the NTFS driver which will allow you to also write to NTFS drives.<\/p>\n<p>This issue will occur for anything using the underlying NTFS driver. I found this issue when I was mounting a veracrypt volume on the Raspberry Pi.<\/p>\n<p>Veracrypt was installed by following my guide to <a href=\"http:\/\/chewett.co.uk\/blog\/382\/encryption-using-veracrypt-raspberry-pi-cluster\/\">install Veracrypt on the Rasperry Pi<\/a>. Now I have resolved this problem I will be able to access my external drives on the Raspberry Pi.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are getting &#8220;Read-only file system&#8221; on your Raspberry Pi when mounting drives there is a simple fix. chewett@bunker-master2:\/mnt\/wd500$ touch test.txt touch: cannot touch \u2018test.txt\u2019: Read-only file system I noticed this happening when I tried to mount and work on my external hard drive. This is formatted with the NTFS filesystem. I did some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,122],"tags":[138,37,137],"class_list":["post-430","post","type-post","status-publish","format-standard","hentry","category-fixes","category-raspberry-pi-cluster","tag-ntfs-filesystem","tag-raspberry-pi","tag-read-only-filesystem"],"wppr_data":{"cwp_meta_box_check":"No"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2toWX-6W","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":441,"url":"https:\/\/chewett.co.uk\/blog\/441\/cloning-raspberry-pi-sd-card-another\/","url_meta":{"origin":430,"position":0},"title":"Cloning a Raspberry Pi SD Card to another","author":"Chewett","date":"July 5, 2017","format":false,"excerpt":"To set up my cluster I want to create single SD card image then run this same image on multiple Pi's. This means I wont need to set up each Raspberry Pi at a time. One of the ways you can do this is by taking an image of the\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/06\/raspi_boot_drive.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":2734,"url":"https:\/\/chewett.co.uk\/blog\/2734\/rsync-entire-raspberry-pi-to-windows\/","url_meta":{"origin":430,"position":1},"title":"Rsync Entire Raspberry Pi to Windows","author":"Chewett","date":"November 21, 2020","format":false,"excerpt":"This post includes a short snippet to copy your entire Raspberry Pi filesystem to Windows using Rsync. Copying and Archiving particular directories If you want to rsync specific directories rather than the entire Raspberry Pi I suggest you read my previous blog post. It details how to backup a Raspberry\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_rsync_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_rsync_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_rsync_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_rsync_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2020\/11\/raspberrypi_rsync_posticon_OUTPUT.png?fit=1200%2C628&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":738,"url":"https:\/\/chewett.co.uk\/blog\/738\/raspberry-pi-cluster-github-repository\/","url_meta":{"origin":430,"position":2},"title":"Raspberry Pi Cluster Github Repository","author":"Chewett","date":"October 14, 2017","format":false,"excerpt":"This post is a summary of the plan for the Raspberry Pi Cluster project. Progress so far So far I have been creating a variety of scripts to see what you I can easily do with the cluster project. At the moment these scripts are spread across the nodes and\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/github_raspberry_pi_start.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/github_raspberry_pi_start.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/github_raspberry_pi_start.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/10\/github_raspberry_pi_start.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":615,"url":"https:\/\/chewett.co.uk\/blog\/615\/compressing-raspberry-pi-backups-automatically\/","url_meta":{"origin":430,"position":3},"title":"Compressing Raspberry Pi backups automatically","author":"Chewett","date":"November 22, 2017","format":false,"excerpt":"Today I will be improving the basic script used to backup my Raspberry Pi's so that it compresses the files after they have been copied. This will allow me to store several backups instead of having a single copy stored on my computer. This assumes you have followed the first\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/compressing_raspberry_pi.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/compressing_raspberry_pi.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/compressing_raspberry_pi.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/11\/compressing_raspberry_pi.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":433,"url":"https:\/\/chewett.co.uk\/blog\/433\/veracrypt-error-device-mapper-reload-ioctl-error-fixed\/","url_meta":{"origin":430,"position":4},"title":"Veracrypt Error device-mapper: reload ioctl Error Fixed","author":"Chewett","date":"June 28, 2017","format":false,"excerpt":"When trying to mount an encrypted drive using Veracrypt I encountered this error: chewett@bunker-master2:\/mnt$ veracrypt \/dev\/sdc1 gen500 Enter password for \/dev\/sdc1: Enter PIM for \/dev\/sdc1: Enter keyfile [none]: Protect hidden volume (if any)? (y=Yes\/n=No) [No]: Error: device-mapper: reload ioctl on veracrypt2_0 failed: No such file or directory I did some\u2026","rel":"","context":"In &quot;Fixes&quot;","block_context":{"text":"Fixes","link":"https:\/\/chewett.co.uk\/blog\/category\/fixes\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":673,"url":"https:\/\/chewett.co.uk\/blog\/673\/grant-sudo-access-user-raspberry-pi-raspbian\/","url_meta":{"origin":430,"position":5},"title":"Grant sudo access for a user with Raspberry Pi Raspbian","author":"Chewett","date":"September 30, 2017","format":false,"excerpt":"This blog post describes how you can enable sudo for any user on the Raspberry Pi OS, Raspbian. Why sudo is important Sudo is a command that lets you run a command as the \"Super User\". The super user's username is typically root on Linux machines. Instead of logging in\u2026","rel":"","context":"In &quot;Raspberry Pi Cluster&quot;","block_context":{"text":"Raspberry Pi Cluster","link":"https:\/\/chewett.co.uk\/blog\/category\/raspberry-pi-cluster\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/add_sudo_to_a_user_raspbian.jpg?fit=800%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/add_sudo_to_a_user_raspbian.jpg?fit=800%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/add_sudo_to_a_user_raspbian.jpg?fit=800%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/chewett.co.uk\/blog\/wp-content\/uploads\/2017\/09\/add_sudo_to_a_user_raspbian.jpg?fit=800%2C800&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=430"}],"version-history":[{"count":2,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions"}],"predecessor-version":[{"id":432,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/posts\/430\/revisions\/432"}],"wp:attachment":[{"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chewett.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}