View Full Version : Mounted Samba Shares; long shutdown

21st September 2011, 04:20 AM
So the last couple days I finaly got a workable home file server, I added the share to my fstab (below) so that it'd be automatically mounted on boot. Works fine; except for when I go to shutdown.


# /etc/fstab
# Created by anaconda on Sat Sep 17 20:35:35 2011
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=94e08223-ddf6-4624-870b-bd6a055e9fcd / ext4 defaults 1 1
UUID=db3dd8eb-4483-455c-92a6-0697088a08ef /personal ext4 defaults 1 2
UUID=ecdb6dd5-16a5-4b2d-804f-d73b2d49a81f swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

//SERVER/Home_Server /media/Server cifs users,nofail,noatime,workgroup=(workgroup),ip=192. 168.0.197 0 0

if I change the nofail option to noauto so its not actually mounted, let it fully boot, and then do a reboot. Everything's fine, reboot time is normal.

Only thing i can think of is that shutdown is hanging until the share just times out, which I cant really have that be happening, now can I?

So, is there anyway to add

umount /media/Server

Or something similar, to the shutdown process?