Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: baz on January 13, 2010, 12:02:46 AM

Title: Shutdown Very Long due to NFS Mounts - Un-Mounting in Shutdown.sh Doesn't Work?
Post by: baz on January 13, 2010, 12:02:46 AM
At boot I mount NFS drives to my NAS and it works great. However at shutdown, I noticed that it hangs on "Unmounting all filesystems" (over a minute), and intermittently would generate some sort of RPC error. It is not unimaginable for it to take long unmounting since manually running umount.nfs for each mount takes about as long. But I still wanted to shorten this, so I decided to force unmount the drives in shutdown.sh by adding these lines:

umount.nfs /mount1 -f
umount.nfs /mount2 -f
umount.nfs /mount3 -f

If I manually run those commands they are executed instantly and all drives are unmounted in a second. However placing them in shutdown.sh seems to have no effect. Either the commands are being run at the wrong time of the shutdown process, or the -f option is being ignored. Does anyone have any insight into this?

Cheers,
Baz
Title: Re: Shutdown Very Long due to NFS Mounts - Un-Mounting in Shutdown.sh Doesn't Wo
Post by: danielibarnes on January 13, 2010, 08:47:08 AM
I use the "-l" switch when I have that problem. Try using it instead of "-f".