Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nfs and umount problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
luca
Guru
Guru


Joined: 11 Feb 2004
Posts: 374

PostPosted: Mon May 10, 2004 9:32 am    Post subject: nfs and umount problem Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Mon May 10, 2004 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message
luca
Guru
Guru


Joined: 11 Feb 2004
Posts: 374

PostPosted: Mon May 10, 2004 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Mon May 10, 2004 4:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
luca
Guru
Guru


Joined: 11 Feb 2004
Posts: 374

PostPosted: Tue May 11, 2004 10:46 am    Post subject: Reply with quote

yep, short after the message unmounting filesystems

Luca
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Tue May 11, 2004 5:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
luca
Guru
Guru


Joined: 11 Feb 2004
Posts: 374

PostPosted: Thu Jul 15, 2004 7:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum