A Raspberry Pi 3 had a problem after I had performed a number of system changes.
When booting it would hang for around 2 minutes showing:
systemd-hostnamed.service
I examined system messages from the boot process with:
dmesg
Part of the result was:
[ 98.748722] CIFS VFS: Send error in SessSetup = -13 [ 98.749092] CIFS VFS: cifs_mount failed w/return code = -13 [ 125.427742] usb 1-1.5.2.3: reset high-speed USB device number 9 using dwc_otg [ 188.946712] Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
I remembered that I had experimented with various ways to mount a Samba share in: /etc/fstab
This didn’t work because of authentication problems and (as a side effect) it delayed startup significantly.
I decided to solve the problem by:
1. Removing the non-functional line from /etc/fstab
2. Creating a script to be run on demand:
mount_RPServer_shared.sh
With content similar to this:
#/bin/bash sudo mount -t cifs -o user=pi //server/shared /mnt/server_shared/
The script relies on the mount.cifs command.
For Debian based Linux distributions this is part of the cifs-utils package.