JRA Posted September 8, 2017 Posted September 8, 2017 Hello all - following disabling SMBv1 AND recently changing my domain admin password I've hit a few snags with some of my secondary backup servers. They're not totally vital, but they provide secondary backups in case of dire emergencies. I'd also like to understand what on earth it wants from me at this point too! Lol. Anyways, rsnapshot governs this and grabs the data off each host with lines such as the following: #STINKYPRINTSERVERbackup_script /bin/mount -t cifs //stinkyprintserver.mydomain.sch.uk/papercut$ /mnt/remotesmb -o credentials=/root/backup/.admin-credentials unused21/backup /mnt/remotesmb/ stinkyprintserver/backup_script /bin/umount /mnt/remotesmb unused22/ The details in .admin-credentials are indeed correct, in smb.conf min protocol=SMB2 is set. Dunno. Had a trial with the following: [i]# /bin/mount -t cifs //stinkyprintserver.mydomain.sch.uk/papercut$ /mnt/remotesmb -o credentials=/root/backup/.admin-credentials[/i] But all I get is: [i]mount error(112): Host is downRefer to the mount.cifs(8) manual page (e.g. man mount.cifs) [/i] Pest. So, I try manually entering that: [i]# /bin/mount -t cifs //stinkyprintserver.mydomain.sch.uk/papercut$ /mnt/remotesmb -o username=MYDOMAIN\\Administrator [/i]And get prompted for a password, but all I get is the same error back. Yes the host is there and does ping btw!I've read that you can force versions by appending eg "vers=2.0" or even "vers=3.0" to the command, but I get the standard, lengthy options and switches output when I try the following: [i]# /bin/mount -t cifs //stinkyprintserver.mydomain.sch.uk/papercut$ /mnt/remotesmb -o username=MYDOMAIN\\Administrator vers=2.0 Usage: mount -V : print version mount -h : print this help mount : list mounted filesystems mount -l : idem, including volume labelsSo far the informational part. Next the mounting.The command is `mount [-t fstype] something somewhere'.Details found in /etc/fstab may be omitted. mount -a [-t|-O] ... : mount all stuff from /etc/fstab mount device : mount device at the known place mount directory : mount known device here mount -t type dev dir : ordinary mount commandNote that one does not really mount a device, one mountsa filesystem (of the given type) found on the device.One can also mount an already visible directory tree elsewhere: mount --bind olddir newdiror move a subtree: mount --move olddir newdirOne can change the type of mount containing the directory dir: mount --make-shared dir mount --make-slave dir mount --make-private dir mount --make-unbindable dirOne can change the type of all the mounts in a mount subtreecontaining the directory dir: mount --make-rshared dir mount --make-rslave dir mount --make-rprivate dir mount --make-runbindable dirA device can be given by name, say /dev/hda1 or /dev/cdrom,or by label, using -L label or by uuid, using -U uuid .Other options: [-nfFrsvw] [-o options] [-p passwdfd].For many more details, say man 8 mount .[/i] Anyone know what's up with my stinky cifs situation? Thanks in advance for about anything!
PyROm Posted September 8, 2017 Posted September 8, 2017 The vers=2.0 is still an option, so you need a comma between username and vers=2.0 eg. # /bin/mount -t cifs //stinkyprintserver.mydomain.sch.uk/papercut$ /mnt/remotesmb -o username=MYDOMAIN\\Administrator,vers=2.0 I believe you can use vers=2.1 as well. 1
JRA Posted September 8, 2017 Author Posted September 8, 2017 Aaagghhh I could JUMP THROUGH THE SCREEN AND HUG YOU! That worked a treat, thanks so so much! :)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now