Hi,
I know there is mount.cifs for direct mounting cifs, but maybe not everybody knows it and also I would like to use the default well known mount -t command for that, so here is the quite simple how to for that.
Issue:
mount the cifs (samba share) isn’t working
root@turris:~# mount -t cifs //raspi/storage/ /mnt/raspi/
mount: wrong fs type, bad option, bad superblock on //raspi/storage/,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so.
according to error, the /sbin/mount.cifs is missing
solution:
create the symlink for mount.cifs binary from /usr/sbin into /sbin
root@turris:~# ln -s /usr/sbin/mount.cifs /sbin
root@turris:~# ll /sbin/mount.cifs
lrwxrwxrwx 1 #root root 20 Dec 31 17:49 /sbin/mount.cifs -> /usr/sbin/mount.cifs
root@turris:~# mount -t cifs //raspi/storage/ /mnt/raspi/
Password for root@//raspi/storage/:
root@turris:~# mount |grep raspi
//192.168.0.99/storage/ on /mnt/raspi type cifs (rw,relatime,vers=1.0,cache=strict,username=root,domain=RASPBERRYPI,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.0.99,unix,posixpaths,serverino,mapposix,acl,rsize=1048576,wsize=65536,actimeo=1)