Advertisement
Guest User

ecryptfs mounted as read-only

a guest
May 3rd, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. I just mounted postgres home(/var/lib/postgresql) with ecryptfs. After rebooting the machine, it is mounted for me automatically, but if I try to do any writes it tells me that it's a read-only filesystem. It's very weird coz mount shows it mounted as read/write.
  2.  
  3. # output of mount:
  4. /var/lib/.postgresql on /var/lib/postgresql type ecryptfs (rw)
  5.  
  6. # when trying to start the service
  7. root@sandbox:/var/lib/postgresql# service postgresql start
  8. * Starting PostgreSQL 9.1 database server
  9. * The PostgreSQL server failed to start. Please check the log output:
  10. 2014-05-04 04:20:55 GMT FATAL: could not create lock file "postmaster.pid": Read-only file system
  11. ...fail!
  12.  
  13.  
  14. # as postgres
  15. postgres@sandbox:~$ pwd
  16. /var/lib/postgresql
  17. postgres@sandbox:~$ touch a.txt
  18. touch: cannot touch `a.txt': Read-only file system
  19.  
  20. # as root
  21. root@sandbox:/var/lib/postgresql# touch a.txt
  22. touch: cannot touch `a.txt': Read-only file system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement