LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-11-2005, 08:38 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Slackware does not unmount NFS before going singleuser


Shouldn't slackware umount all NFS mounted disks before entering single-user? It already kills the RPC daemons required for proper NFS operation, thus causing massive errors when going from runlevel 3/4 to runlevel 1.

I don't know if there's such a thing as a "standard behaviour" associated with entering runlevel 1/single user mode, but this seems to make good sense anyway.

Does anyone have any views on this?

-Y1
 
Old 12-11-2005, 09:39 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Yalla-One
Shouldn't slackware umount all NFS mounted disks before entering single-user? It already kills the RPC daemons required for proper NFS operation, thus causing massive errors when going from runlevel 3/4 to runlevel 1.

I don't know if there's such a thing as a "standard behaviour" associated with entering runlevel 1/single user mode, but this seems to make good sense anyway.

Does anyone have any views on this?

-Y1
By default the rc.S for single user mode appears to be mainly for single user startups at boot time. If you're just going directly from runlevel 3 or 4 to 1, just add something like this to your rc.S script:

Code:
echo "Unmounting remote NFS shares if they are mounted:"
if cat /etc/mtab | grep -w nfs 1> /dev/null 2> /dev/null ; then
    /sbin/umount -a -r -t nfs
fi
Which will unmount any NFS shares..
 
Old 12-11-2005, 09:46 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks much - looks perfect!

Wouldn't it be a good idea to have this added to Slackware anyhow - the time penalty associated on direct booting into single-user is near-nil, and it's quite common to enter run-level 1 for maintenance before taking the system back to 3 or 4?

Would you mind emailing your excellent addition to the proud father Volkerding for general inclusion ?

-Y1
 
Old 12-11-2005, 10:00 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Yalla-One
Thanks much - looks perfect!

Wouldn't it be a good idea to have this added to Slackware anyhow - the time penalty associated on direct booting into single-user is near-nil, and it's quite common to enter run-level 1 for maintenance before taking the system back to 3 or 4?

Would you mind emailing your excellent addition to the proud father Volkerding for general inclusion ?

-Y1
Actually looking at it now, I forgot that single user mode uses rc.K where the few lines I posted above would be more suitable. And right at the top, it actually states that filesystems are kept mounted.. hmm.. perhaps a clean umount would do it some good when entering runlevel 1.
 
Old 12-11-2005, 10:10 AM   #5
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
I noticed it stated that it kept the filesystems mounted, but I assumed this refers to the local filesystems, which makes sense as one would need them mounted to be able to get any work done while in singleuser.
Keeping NFS shares mounted however does not make any sense, as they cannot be accessed anyway when the RPC portmapper is taken down (as it should), and thus leaving the NFS shares without unmounting them will only cause concern and problems rather than offer any benefit.

However, I'm no expert, which is why I asked
 
Old 12-11-2005, 10:19 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by Yalla-One
I noticed it stated that it kept the filesystems mounted, but I assumed this refers to the local filesystems, which makes sense as one would need them mounted to be able to get any work done while in singleuser.
Keeping NFS shares mounted however does not make any sense, as they cannot be accessed anyway when the RPC portmapper is taken down (as it should), and thus leaving the NFS shares without unmounting them will only cause concern and problems rather than offer any benefit.

However, I'm no expert, which is why I asked
I just finished emailing Patrick the possible addition to the rc.K script to umount any remote filesystems.

We'll see what happens, maybe I'll get my name in the rc.K script if it's added..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware Won't Correctly Unmount CD-Roms njbrain Slackware 6 10-17-2004 09:17 PM
Can't unmount NFS. Remote NFS system was down. PeteRossi Linux - Software 3 10-05-2003 02:23 PM
command 'unmount' not found - how can i unmount??? GloVe Linux - General 1 10-04-2003 06:33 AM
slackware 9 NFS red21 Slackware 1 05-08-2003 11:40 PM
nfs unmount error mathfeel Linux - General 7 12-13-2002 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration