The following command correctly mounts a network drive for me:

sudo mount /media/data  

Yet the following entry in /etc/fstab does not work. Why?

 //  /media/data/ cifs    uid=1000    0   0


Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
FAIL: 32
  • Is the trailing slash in /media/data/ tripping it up?
    – Jeff Schaller
    Mar 24, 2016 at 0:23
  • 2
    dynamic syntax look nfs mount to me not cifs. if you issue mount or mount -p which protocol is used ?
    – Archemar
    Mar 24, 2016 at 4:23
  • you were correct archemar I did not realise the drive was nfs. This works: /media/data nfs defaults 0 0
    – andy boot
    Mar 27, 2016 at 9:56

1 Answer 1


Usually a network drive is not written in /etc/fstab like this:

//  /media/data/ cifs    uid=1000    0   0

I would use  /media/data cifs    uid=1000    0   0

i.e., the same form as used on the command-line. Presumably the network is cifs, and there's no problem with the uid clause (because we cannot determine that without checking the output of your successful mount command).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .