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

mount: /etc/fstab: parse error ... with the first example of fstab line in README.md #38

Open
mo-han opened this issue Apr 18, 2021 · 0 comments

Comments

@mo-han
Copy link

mo-han commented Apr 18, 2021

the README.md says:

Mount a directory tree by adding a similar line to /etc/fstab:
/usr/local/bin/rofs-filtered /the/read/write/device /the/read/only/mount/point fuse defaults,allow_other 0 0

on my ubuntu 18.04 mount and fstab didn't agree with that and threw an error: mount: /etc/fstab: parse error at line ... -- ignored.

fstab can take at most 6 fields per line:
[Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]
but the above example gave 7, by splitting the [Device] field into 2 string: /usr/local/bin/rofs-filtered and /the/read/write/device
fstab can take something like exec#src-path as a [Device] field, such as sshfs#user@server:/share, so maybe rofs-filtered#/the/source/path is acceptable for fstab, which i haven't tried yet.

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

No branches or pull requests

1 participant