Hello folks, I have a backup script for my computer running ubuntu 8.10. The script itself is great. It maps the drive and everything but during a shutdown in ubuntu i seem to hit a little bit of a glitch. When shutting down/rebooting the pc...
Hello folks,
I have a backup script for my computer running ubuntu 8.10. The script itself is great. It maps the drive and everything but during a shutdown in ubuntu i seem to hit a little bit of a glitch. When shutting down/rebooting the pc seems to hit a hangup point. It shows the ubuntu splash screen, then it shows this on a blank screen:
acpid : exiting
[259.882553] CIFS VFS: SERVER NOT RESPONDING
[259.525205]CIFS VFS: no response for smd 50 mid 11174
To that end i have discovered that this is to do with the mounts not closing properly. So what i want to do is create a script that will automatically unmount the network shares when the pc either a user logs off or the machine shuts down or reboots. The only thing is the umount command requires root, and i want this to happen automatically. But i have no idea how to begin. I know how to configure the umount command however. If someone can explain to me how to create a script that will run when the user ends their session or reboots/shuts down a pc. If someone could tell me where to start it would be appreciated. Like i said the script needs to run as root so the umount will function.
Thanks for all the help in advance.