cannot mount - "run fsck" message

87 views
Skip to first unread message

kurt

unread,
Nov 5, 2012, 12:42:13 PM11/5/12
to s3...@googlegroups.com
I finally figured out what this error is and how to fix it, but I have another question.
First the solution:
When mounting the s3ql file system you might get and error saying something like it wasn't mounted correctly and run fsck on the file system to fix the problem.
Unfortunately, when running "fsck" you'll likely get an error.  Mine occured because the 'default' fsck assumed a ext4 file system.
 
The other key is that the fsk is run on your bucket: s3://<mybucket>
 
so, type:
> fsck.s3ql s3://<mybucket> to 'fix' your file system.
 
then mount
> sudo mount s3://<mybucket> s3ql
 
I'm unclear on how to set permissions correctly though.
I do a mount, using sudo, but when I do an "ls s3ql", I get a permissions denied, despite having permissions on that directory as:
 
drwxrwsr-x  1 root users 0M 2012-09-30 09:17 s3ql
myname@tyr:/mnt$ groups
myname adm dialout cdrom plugdev users lpadmin admin sambashare mediatomb
 
Does anyone have any idea why I should be getting the permissions denied error?
 
Regards,
Kurt

kurt

unread,
Nov 5, 2012, 12:52:27 PM11/5/12
to s3...@googlegroups.com
Here's an example of the problem with permissions:
myname:/mnt$ ls -la
ls: cannot access s3ql: Permission denied
total 1M
drwxr-xr-x  6 root root  1M 2012-10-23 22:18 .
drwxr-xr-x 23 root root  1M 2012-09-16 00:25 ..
drwxrwxr-x 15 root users 1M 2012-08-13 14:10 bigdrive
drwxr-xr-x  2 root root  1M 2012-10-15 14:39 hgfs
d?????????  ? ?    ?      ?                ? s3ql
drwxr-xr-x  2 root root  1M 2012-09-07 19:54 usb
myname:/mnt$ sudo ls -la
total 20
drwxr-xr-x  6 root root  4096 2012-10-23 22:18 .
drwxr-xr-x 23 root root  4096 2012-09-16 00:25 ..
drwxrwxr-x 15 root users 4096 2012-08-13 14:10 bigdrive
drwxr-xr-x  2 root root  4096 2012-10-15 14:39 hgfs
drwxrwsr-x  1 root users    0 2012-09-30 09:17 s3ql
drwxr-xr-x  2 root root  4096 2012-09-07 19:54 usb 

Nikolaus Rath

unread,
Nov 5, 2012, 2:09:14 PM11/5/12
to s3...@googlegroups.com
On 11/05/2012 12:42 PM, kurt wrote:

> I'm unclear on how to set permissions correctly though.
> I do a mount, using sudo, but when I do an "ls s3ql", I get a
> permissions denied, despite having permissions on that directory as:


From http://www.rath.org/s3ql-docs/mount.html:

"Normally, only the user who called mount.s3ql can access the mount
point. This user then also has full access to it, independent of
individual file permissions. If the --allow-other option is specified,
other users can access the mount point as well and individual file
permissions are taken into account for all users."

Best,

-Nikolaus

--
�Time flies like an arrow, fruit flies like a Banana.�

PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
Reply all
Reply to author
Forward
0 new messages