Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: fstab #8

Closed
hasse69 opened this issue Mar 13, 2015 · 7 comments
Closed

Documentation: fstab #8

hasse69 opened this issue Mar 13, 2015 · 7 comments

Comments

@hasse69
Copy link
Owner

hasse69 commented Mar 13, 2015

Explaination how to add rar2fs to fstab:

create /sbin/mount.rar2fs:
#!/bin/bash
OPTIONS="`echo $* |  sed 's/,--/ --/g'`"
sudo rar2fs --seek-length=1 $OPTIONS

In fstab:
/mnt/files    /mnt/rar    rar2fs    ro,noatime,--seek-length=1      0       0

Original issue reported on code.google.com by irbanur on 2011-06-21

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

Ooops!

it should read:
sudo rar2fs $OPTIONS

Original issue reported on code.google.com by irbanur on 2011-06-21 23:24:21

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

Interesting post. But what about that sudo business?
I think this is how it should be done
http://www.debuntu.org/2006/04/27/39-mounting-a-fuse-filesystem-form-etcfstab

Remember, if you mount your fs as root you need to use -oallow_other to allow for normals
users to access the mount point. A proper fuse installation should allow mounting from
non-root users.

Original issue reported on code.google.com by hans.beckerus on 2011-06-22 06:38:30

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

(No text was entered with this change)

Original issue reported on code.google.com by hans.beckerus on 2011-06-22 06:43:41

  • Labels added: Type-Other
  • Labels removed: Type-Defect

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

Using "normal" fuse-mount you can't (AFAIK) pass rar2fs parameters in fstab.
rar2fs#/mnt/files /mnt/rar ro,noatime,--seek-length=1 0 0
doesn't work. either does ro,noatime,seek-length=1. Hence the sed command.

I can't remember why I'm using sudo; might be because of one of my own special cases
for my system at home, so it can most probably be omitted.

Original issue reported on code.google.com by irbanur on 2011-06-22 11:05:01

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

Have you tried the afuse utility for auto-mounting FUSE file systems when mount points
are accessed ? Maybe it is not what you want though.

Original issue reported on code.google.com by hans.beckerus on 2011-08-25 06:23:12

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

Here is an update to this issue.

The latest version of rar2fs has an updated argument parser. The new parser makes sure
options are treated in the same way as native fuse options. For fuse the following
two examples are both valid and will start fuse in the foreground:

  a) rar2fs -f x y -o ro
  b) rar2fs x y -o ro,-f

That means that mounting fuse through /etc/fstab is possible, still when providing
non-standard mount options. This is now also the case for the 'longopts' as defined
by rar2fs.

The below is thus syntactically correct and will properly mount from /etc/fstab and
setting seek length to 2.

  rar2fs#/mnt/files /mnt/rar fuse ro,noatime,--seek-length=2 0 0

All this provided of course that fuse is correctly installed and there is a '/sbin/mount.fuse'
and 'fusermount' utility available. Also rar2fs must be accessible through the systems
path.


Original issue reported on code.google.com by hans.beckerus on 2012-01-09 20:37:48

@hasse69
Copy link
Owner Author

hasse69 commented May 23, 2015

 Case closed.

Original issue reported on code.google.com by hans.beckerus on 2013-01-26 15:19:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant