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

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

1 Answer 1

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 at 12:57

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.