You are not logged in.

#1 2022-08-27 13:10:57

ihitmani
Member
Registered: 2021-05-03
Posts: 83

[SOLVED]bad unit file setting cifs mount

I copied it from wiki, not sure why it does not work.

[Unit]
Description=Mount Share at boot

[Mount]
What=//hmara/julia
Where=/home/v/hmara
Options=_netdev,credentials=/home/v/.sys/hmara-creds,iocharset=utf8,rw
Type=cifs
TimeoutSec=30
ForceUnmount=true

[Install]
WantedBy=multi-user.target

Last edited by ihitmani (2022-08-27 16:08:10)

Offline

#2 2022-08-27 14:34:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: [SOLVED]bad unit file setting cifs mount

not sure why it does not work

Nor are we.
The unit status might help to shed some light…

Offline

#3 2022-08-27 15:29:06

ihitmani
Member
Registered: 2021-05-03
Posts: 83

Re: [SOLVED]bad unit file setting cifs mount

systemctl status mnt-hmara.mount
○ mnt-hmara.mount - Mount Share at boot
     Loaded: bad-setting (Reason: Unit mnt-hmara.mount has a bad unit file setting.)
     Active: inactive (dead)
      Where: /home/v/hmara
       What: //hmara/julia

авг 27 16:08:13 julia-acer-e5-575 systemd[1]: mnt-hmara.mount: Where= setting doesn't match unit name. Refusing.
авг 27 17:12:03 julia-acer-e5-575 systemd[1]: mnt-hmara.mount: Where= setting doesn't match unit name. Refusing.

Offline

#4 2022-08-27 15:38:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,491

Re: [SOLVED]bad unit file setting cifs mount

The error message is pretty clear, isn't?
There's even an explicit note about that in the wiki where you copied the example from.

Offline

Board footer

Powered by FluxBB