Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to automount my Windows home directory over my Cygwin home directory. If I run the mount command manually it works fine, but putting the mountpoint into /etc/fstab doesn't seem to work:

$ cat /etc/fstab
<snip comments>
c:/Users/slim /home/slim/ binary,posix=0,user 0 0

$ mount c:/Users/slim
mount: can't find c:/Users/slim in /etc/fstab or in /etc/fstab.d/$USER

$ mount /home/slim/
mount: can't find /home/slim/ in /etc/fstab or in /etc/fstab.d/$USER

$ # ... and to demonstrate it works calling mount directly:
$ mount -obinary,posix=0,user c:/Users/hartnupj /home/hartnupj/
$ mount
C:/Users/hartnupj on /home/hartnupj type ntfs (binary,posix=0,user)
<snip>

Any ideas?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Your fstab entry is missing the (unused) third field for the filesystem type. Try this:

c:/Users/slim /home/slim/ ntfs binary,posix=0,user 0 0

(You could also set your Cygwin home directory to the Windows one in /etc/passwd.)

share|improve this answer
    
Doh! I feel stupid now. Thanks! –  slim Jul 19 '12 at 14:55

Your Answer

 
discard

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.