Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can run the shell command:

unionfs-fuse /changedata=RW:/immutedata=RO -o cow /data

This mounts the filesystem exactly how I want to. Now I need to incorporate it into the automounter so that it's remounted upon demand.

What I tried in /etc/auto.misc:

/data -fstype=fuse,cow /changedata=RW:/immutedata=RO

What automount --debug -f /etc/auto.master says when I do ls /data:

handle_packet: type = 5
handle_packet_missing_direct: token 19, name /data, request pid 6063
attempting to mount entry /data
lookup_mount: lookup(file): looking up /data
lookup_mount: lookup(file): /data -> -fstype=fuse,cow /changedata=RW:/immutedata=RO
parse_mount: parse(sun): expanded entry: -fstype=fuse,cow /changedata=RW:/immutedata=RO
parse_mount: parse(sun): gathered options: fstype=fuse,cow
parse_mount: parse(sun): dequote("/changedata=RW:/immutedata=RO") -> /changedata=RW:/immutedata=RO
parse_mapent: parse(sun): gathered options: fstype=fuse,cow
parse(sun): invalid location 
dev_ioctl_send_fail: token = 19
failed to mount /data

Google reveals little. Man pages are rather empty on the incorporation of this filesystem.

Maybe I should just put it in /etc/fstab and ask users to remount?

share|improve this question

I know it is too late to answer but adding the following to /etc/fstab in Ubuntu works,

/dir/A=RW:/dir/B=RO /dir/my-union fuse.unionfs-fuse allow_other,cow,use_ino  0   0
share|improve this answer
Where should that line be written to? edit your answer to amend it! – guntbert Mar 7 '15 at 12:57
I specifically am trying automount since some of this stuff is remote the mount can go stale and/or missing for a variety of reasons – Árni St. Sigurðsson Jan 19 at 16:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.