View previous topic :: View next topic |
Author |
Message |
luca Guru
Joined: 11 Feb 2004 Posts: 374
|
Posted: Mon May 10, 2004 9:32 am Post subject: nfs and umount problem |
|
|
Hi all
I've a problem shuting down my computer. I've sharded my usb-disk with nfs, but somehow my computer (during a reboot/shutdown) it tries to unmount the disk first, which fails --> segmentation fault etc etc --> quits.It makes sense to me, the disk is till busy due to the nfs.
Somehow I like to tell linux that it should shutdown nfs first and next do the umount stuff, but how?
Thanks
Luca |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Mon May 10, 2004 10:26 am Post subject: |
|
|
I'm not sure how exactly (I'm not in front of my box), but if you use some "before" or "after" flags in the init-scripts: that will define the order.
check out the man pages of runscript (if there are any) or let me know... I'll check it then |
|
Back to top |
|
|
luca Guru
Joined: 11 Feb 2004 Posts: 374
|
Posted: Mon May 10, 2004 1:18 pm Post subject: |
|
|
Hi
thanks for your reply
I've looked at the scripts, without any results....
The nfs start/stop script is at /etc/runlevel/default
The problem is that I've to let it stop before linux tries to unmount the usb-disk, which is, of course, not in the runlevel.........So I've no idea what to add to the nfs script!
So please give me more information (if possible)??
Luca |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Mon May 10, 2004 4:31 pm Post subject: |
|
|
if it's not in the runlevel, then linux won't do it;
but I agree, I don't know for sure WHERE it is in the level...
when does he try to umount your USB disk? after which message?
"Unmounting filesystems"? |
|
Back to top |
|
|
luca Guru
Joined: 11 Feb 2004 Posts: 374
|
Posted: Tue May 11, 2004 10:46 am Post subject: |
|
|
yep, short after the message unmounting filesystems
Luca |
|
Back to top |
|
|
nielchiano Veteran
Joined: 11 Nov 2003 Posts: 1287 Location: 50N 3E
|
Posted: Tue May 11, 2004 5:50 pm Post subject: |
|
|
hmm, that message is from halt.sh
I don't realy know how to make it come behind the nfs thing... cause it's not a regular script in the runlevel with dependencies. |
|
Back to top |
|
|
luca Guru
Joined: 11 Feb 2004 Posts: 374
|
Posted: Thu Jul 15, 2004 7:49 am Post subject: |
|
|
Hi All
Here is something that works
One of the last things linux does during booting is to read and execute the commands inside the file /etc/conf.d/local.start
One of the first thing during a halt/reboot is to read /etc/conf.d/local.stop
So here is what my local.stop looks like:
# /etc/conf.d/local.stop:
# This is a good place to unload any misc.
# programs you started above.
# For example, if you are using OSS and have
# "/usr/local/bin/soundon" above, put
# "/usr/local/bin/soundoff" here.
/etc/init.d/nfs stop
/bin/umount /mnt/work
That fixed my problem!!!
Luca |
|
Back to top |
|
|
|