encfs filesystem is mounting as read only instead of read write
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
encfs filesystem is mounting as read only instead of read write
I created an encrypted file system a couple years ago on a NFS share on my NAS drive. I mount and unmount the filesystem the same way every time. For some reason it's now coming up as read only. I do not know what might have changed to cause this. What might I look at to get this to mount as writeable again.
mount the nfs share
Code:
sudo mount -t nfs 192.168.0.99:SecureMedia /media/securemedia
mount the encrypted file system
Code:
encfs /media/securemedia/enc ~/decrypted
UnMount
Code:
fusermount -u ~/decrypted
Some permissions
/media
Code:
drwxrwxrwx 4 root root 4096 Oct 2 2016 securemedia
Did not see anything in the NAS logs other than the notice to run the file check which I did.
I used the file manager in the NAS to create a new folder withint he same share on the NAS then tried to access it from Linux
Code:
root@debhome:/media/securemedia# ls -al
total 20
drwxrwxrwx 5 root root 4096 Aug 14 21:57 .
drwxr-xr-x 8 root root 4096 Sep 10 2018 ..
drwxr-xr-x 5 farslayer farslayer 4096 Apr 1 2017 enc
drwxrwxrwx 2 root root 4096 Mar 22 15:10 @Recycle
drwxrwxrwx 2 root root 4096 Aug 14 21:57 trial
root@debhome:/media/securemedia# cd trial
root@debhome:/media/securemedia/trial# touch test.txt
touch: cannot touch 'test.txt': Read-only file system
I did log into the NAS and run the file system check before originally posting here. I was hoping that would resolve the issue but it did not.
That is not exactly what syg00 requested.
Also are you sure that fsck actually repaired something? I believe the fs in question must not be mounted for that to succeed.
Give us some (much) more output to work with.
To wrap this up... the snafu was caused by DHCP and an IP restriction on the NFS share.
for whatever reason my PC got a different IP address recently from the router, and I did not recall setting an IP restriction on the share, so.....
Tech support requested the contents of the following file
I did not recall setting the IP address restriction on the NFS share, and the page to configure the setting is not obvious in the web interface.
Once tech support requested the contents of the nfssetting file from the NAS the issue became apparent.
Updated the host IP and remounted, access is now Read / Write again.
I must say Qnap Tech support is pretty responsive, even willing to do a remote team viewer session to work on an issue for a home NAS without any charge or support contract. I wasn't expecting that so I did not go to them right away. I've dealt with some paid enterprise support that was less responsive.
Anyway, Thanks to those who replied for taking a look at my issue, maybe this will help someone else with a Qnap NAS in the future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.