CIFS mounts hang on read

I would highly suggest AutoFS. This will dynamically mount and unmount your network shares in the background, all transparent to the user. I used to have problems with unmounting and remounting mobile devices until I made the switch. Unfortunately, there are far too many guides which overly complicate autofs setup. Assuming you’re on an Ubuntu … Read more

CIFS mount in fstab succeeds on IP, fails on hostname written in /etc/hosts

By default, the samba (cifs) package on some distributions doesn’t use the hosts file to resolve the name. Instead, it uses the NetBIOS name to resolve to the IP. There are two ways to go about this: Set samba to use the hosts file for resolution. In your smb.conf file, find and modify or create … Read more

Debugging fstab problems on reboot

There’s a few things you could try: Assuming that they are still not mounted when you can login, does a mount -a cause any errors to get printed to your terminal? This will only use information available in the fstab to mount all available mounts, and should provide details of any mounts that are still … Read more

/etc/fstab skip on error

I created a partition called /dev/sdb1 in my Ubuntu VM. But I didn’t create a filesystem for this partition and so of course it will not get mounted. Then put following entry in fstab. /dev/sdb1 /mnt/ auto defaults,nobootwait 0 2 And rebooted VM. Server got rebooted with following error msg in syslog suku@ubuntu-vm:~$ grep sdb1 … Read more