It is necessary when you start the server on ubuntu 16.04 automatically mount the disk. I tried to implement it via the / etc / fstab file , adding lines to it:

//192.168.1.1/'asusware.arm (at My_Passport)' /mnt/WDPass/Download cifs user=***,password=***,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 //192.168.1.1/'Video (at My_Passport)' /mnt/WDPass/Video cifs user=***,password=***,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 

After launching the / mnt / WDPass / Video and / mnt / WDPass / Download folders are empty.

If mounted manually ...

 mount //192.168.1.1/'asusware.arm (at My_Passport)' /mnt/WDPass/Download -o username=***,password=***,dir_mode=0777,file_mode=0777,iocharset=utf8 mount //192.168.1.1/'Video (at My_Passport)' /mnt/WDPass/Video -o username=***,password=***,dir_mode=0777,file_mode=0777,iocharset=utf8 

... then everything works.

 mount -a mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 12. mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 13. 

(12 and 13 as I understood it my lines in fstab)

I tried to change the spaces on the tabs and back, remove and put quotes. I did not find a solution to the problem.

  • And what does he write in logs? If parsing error, then /var/log . - don Rumata
  • don Rumata, and what file in the log folder do I need? - Opossum
  • What is the /var/log/syslog type thread - don Rumata
  • Mar 5 03:03:29 OPS-Server systemd[1]: Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling. Mar 5 03:03:29 OPS-Server systemd[1]: Started udev Kernel Device Manager. Mar 5 03:03:29 OPS-Server systemd[1]: Starting Remount Root and Kernel File Systems... Mar 5 03:03:29 OPS-Server systemd-remount-fs[443]: mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 12. Mar 5 03:03:29 OPS-Server systemd-remount-fs[443]: mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 13. Mar 5 03:03:29 OPS-Server systemd[1]: Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling. Mar 5 03:03:29 OPS-Server systemd[1]: Started udev Kernel Device Manager. Mar 5 03:03:29 OPS-Server systemd[1]: Starting Remount Root and Kernel File Systems... Mar 5 03:03:29 OPS-Server systemd-remount-fs[443]: mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 12. Mar 5 03:03:29 OPS-Server systemd-remount-fs[443]: mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 13. is Mar 5 03:03:29 OPS-Server systemd[1]: Started Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling. Mar 5 03:03:29 OPS-Server systemd[1]: Started udev Kernel Device Manager. Mar 5 03:03:29 OPS-Server systemd[1]: Starting Remount Root and Kernel File Systems... Mar 5 03:03:29 OPS-Server systemd-remount-fs[443]: mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 12. Mar 5 03:03:29 OPS-Server systemd-remount-fs[443]: mount: /etc/fstab: ошибка разбора: игнорируется запись в строке 13. - Opossum
  • This is the first mention of this line in the syslog.1 file - Opossum

1 answer 1

Good day! and try instead of spaces - \ 040, i.e. something in the spirit

 //192.168.1.1/asusware.arm\040(at\040My_Passport) /mnt/WDPass/Download cifs user=***,password=***,iocharset=utf8,file_mode=0777,dir_mode‌​=0777 0 0 //192.168.1.1/Video\040(at\040My_Passport) /mnt/WDPass/Video cifs user=***,password=***,iocharset=utf8,file_mode=0777,dir_mode‌​=0777 0 0