Mount Return Code for CIFS mount
- by laikadad101
When I run the following command (as root or via sudo) from a bash script I get an exit status (or return code in mount man page parlance) of 1:
mount -v -t cifs //nasbox/volume /tmpdir/ --verbose -o credentials=/root/cifsid & /tmp/mylog
It outputs the following into the myflog file:
parsing options: rw,credentials=/root/cifsid
mount.cifs…