user2492388
user2492388

Reputation: 181

fstab mount network share with guest

when I mount my network share on Debian 9 with command line it goes with success:

    mount -t cifs -o guest //Server/Share /mnt/sharefolder

But when I add an entry to /etc/fstab:

    //Server/Share    /mnt/sharefolder    cifs    guest    0    0

There comes the error: failed(Result: exit-code) and status=1/FAILURE

What is my mistake?

Upvotes: 1

Views: 5150

Answers (1)

user2492388
user2492388

Reputation: 181

I solved it with these options:

    //Server/Share /mnt/sharefolder cifs guest,_netdev,x-systemd.automount 0 0

Upvotes: 3

Related Questions