You are not logged in.
This used to p... me off no end - until I found the /etc/rc.local.shutdown
Honestly - this is _wrong_; eg slackware always umounts any nfs-mounts first - then it takes down the network!
My own li'l solution (incase anyone else has the same problem):
for d in $(awk '$3 == "nfs" { print $2 }' /etc/mtab); do
echo -en ":: umounting $d "
umount $d && echo -e "\t[ok]" || echo -e "\t-- error!"
done
I guess the same is the case for cifs-mounts, but I only use nfs so cant tell.
Last edited by perbh (2010-03-25 20:42:52)
Offline
i think you missed the netfs daemon in rc.conf.
Give what you have. To someone, it may be better than you dare to think.
Offline
i think you missed the netfs daemon in rc.conf.
nope - here it is:
DAEMONS=(syslog-ng network netfs crond hal xinetd rpcbind nfs-common nfs-server sshd gpm cups)
For the sake of clarity - my nfs-mounts _are_ in my /etc/fstab but with the 'noauto' option - then immediately after a boot (I always boot into the cli) I manually mount those I need and before I go into X (some times I forget and do it from a terminal in X - doesn't matter when)
Last edited by perbh (2010-03-25 16:40:31)
Offline
Shouldn't netfs unmount them indeed?
I have "umount -a -t nfs" in /etc/rc.local.shutdown, but I don't use netfs.
Offline
The script looks good but I'm wondering why you didn't follow the auto mount wiki instructions as the order matters to start up but also shutdown (startup = left to right for starting daemons; shutdown = reverse order).
I'm curious as to why you placed nfs-common & nfs-server away from netfs?
Arch linux i686 | Dell XPS m1530 | Intel Core 2 Duo 2 GHz | 3 GB RAM | 250GB HDD
Offline
The script looks good but I'm wondering why you didn't follow the auto mount wiki instructions as the order matters to start up but also shutdown (startup = left to right for starting daemons; shutdown = reverse order).
I'm curious as to why you placed nfs-common & nfs-server away from netfs?
For one thing - as indicated above, I _do not_ want them automounted; depending on what I'm doing after any boot, I mount one or more and not always the same ones.
But ... I have missed out on that part of the wiki. I never really change anything and those entries go from wayyyyy back - only got updated when nfs-common and nfs-server were introduced - guess I screwed it up a bit :-(
I'll try it out with netfs being _after_ nfs-common and nfs-server ... thanks for the tip.
Offline
Cool, I am curious as well if that does help with your scenario. Can't wait to hear back on if it helps or not.
Arch linux i686 | Dell XPS m1530 | Intel Core 2 Duo 2 GHz | 3 GB RAM | 250GB HDD
Offline
Thank you! That worked a treat! No more worries and/or grumpiness. Guess I just didn't quite know what 'netfs' was for ... (I know, silly me)
Offline