Jump to content

how to unmount stuff at suspend

hi all

i mount my windows shares with this in fstab

//192.168.1.10/backup /mnt/backup cifs username=xxx,password=xxx 0 0

buut when i close my laptop for a while those shares doesnt work any more, are busy or something so they cant be unmounted or mounted, so only reboot will do and that takes few min because mx have mounted drives wich cant be unmounted.. that or button power off..

 

so i look for a way if possible to unmount everything when i close lid on laptop so it doesnt break while in standby, i can easily remount everything with mount -a

umountnfs.sh works well for unmounting but duno how to use it automaticaly when laptop goes to standby

system is mx kde on thinkpad x260

 

thanks ;)

Link to comment
Share on other sites

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×