LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2007, 03:38 PM   #1
M$ISBS
Member
 
Registered: Aug 2003
Posts: 820

Rep: Reputation: 30
Unmounting remote filesystems, is there a way to stop that?


I dont have any remote filesystems and when I reboot, that takes quite a long time. Is there a way to disable that? Or is that supposed to do that?
Thanks.
 
Old 05-10-2007, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
it takes a ong time to not unmount non-existant remote file systems?
 
Old 05-10-2007, 03:59 PM   #3
KeithE
Member
 
Registered: Jan 2003
Location: Phoenix, AZ
Distribution: Mint, Slackware
Posts: 88

Rep: Reputation: 19
Quote:
Originally Posted by M$ISBS
I dont have any remote filesystems and when I reboot, that takes quite a long time. Is there a way to disable that? Or is that supposed to do that?
Thanks.
Are these filesystems in /etc/fstab for some reason? If so, remove them.
 
Old 05-10-2007, 04:03 PM   #4
M$ISBS
Member
 
Registered: Aug 2003
Posts: 820

Original Poster
Rep: Reputation: 30
Do I need remote filesystems? Thats only if your running a server right? My fstab looks like this:

/dev/hda1 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom auto noauto,users,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
/dev/sda1 /mnt/flash auto noauto,users,ro 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 05-10-2007, 04:07 PM   #5
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
take a look in /etc/rc.d/rc.6

# Unmount any NFS, SMB, or CIFS filesystems:
echo "Unmounting remote filesystems."
/bin/umount -a -r -t nfs,smbfs,cifs

if you haven't got any of them, you can comment it out

tobyl
 
Old 05-10-2007, 04:17 PM   #6
M$ISBS
Member
 
Registered: Aug 2003
Posts: 820

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tobyl
take a look in /etc/rc.d/rc.6

# Unmount any NFS, SMB, or CIFS filesystems:
echo "Unmounting remote filesystems."
/bin/umount -a -r -t nfs,smbfs,cifs

if you haven't got any of them, you can comment it out

tobyl
So if I comment that line out then it will not try to unmount anmore at reboot? Could I go ahead and comment out other stuff in /etc/rc.d/rc.6 like mysql, apache web server since I dont use them?
Thanks.
 
Old 05-10-2007, 04:24 PM   #7
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
actually, that line appears in rc.0 and rc.6
so for shutdown and reboot, comment out both, for reboot only, rc.6

Quote:
So if I comment that line out then it will not try to unmount anmore at reboot? Could I go ahead and comment out other stuff in /etc/rc.d/rc.6 like mysql, apache web server since I dont use them?
yes indeed :-)
 
Old 05-10-2007, 04:57 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Don't know why, but it doesn't take much time in my pc.
 
Old 05-10-2007, 05:06 PM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,925

Rep: Reputation: Disabled
If there's nothing to unmount, then that's not the command taking a long time. Look at what occurs *after* that command to see what is potentially tying up the box. Consider adding some echo statements and/or logger(1) commands before each subsequent block in the init script. For example:
Code:
echo Something is happening
do something
echo Something is finished

echo Something else now
do something else
echo Something else finished
That should enable you to pinpoint where the problem actually is.
 
Old 05-10-2007, 05:07 PM   #10
M$ISBS
Member
 
Registered: Aug 2003
Posts: 820

Original Poster
Rep: Reputation: 30
I commented out the part in /etc/rc.d/rc.0 and that worked.
thanks.
 
Old 05-10-2007, 07:13 PM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by tobyl
actually, that line appears in rc.0 and rc.6
so for shutdown and reboot, comment out both, for reboot only, rc.6



yes indeed :-)

You do realize that (in Slackware 11.0) rc.0 is a symlink to rc.6. It's just that rc.6 "knows" when it is called as 0 or as 6.
 
Old 05-10-2007, 08:33 PM   #12
M$ISBS
Member
 
Registered: Aug 2003
Posts: 820

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by H_TeXMeX_H
You do realize that (in Slackware 11.0) rc.0 is a symlink to rc.6. It's just that rc.6 "knows" when it is called as 0 or as 6.
That must explain why when I changed rc.6, then went to change rc.0 it was already changed? Does that make sense?
What exactly is a symlink anyway?
 
Old 05-11-2007, 12:55 AM   #13
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
You can think symlink is the same as the shortcut to the file.
 
Old 05-11-2007, 01:05 PM   #14
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 743

Rep: Reputation: 51
Quote:
You do realize that (in Slackware 11.0) rc.0 is a symlink to rc.6
hmm, silly me, my mind is going...

tobyl
 
  


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
Difficulty unmounting NFS exported filesystems rperlberg Linux - Server 2 05-11-2007 02:12 PM
Hang at "Unmounting remote filesystems" lagartoflojo Slackware 7 03-07-2005 03:13 PM
Unmounting remote filesystems? BajaNick Linux - General 2 05-18-2004 12:22 AM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 01:10 AM
unmounting NFS filesystems failed??? matjaz85 Linux - General 1 05-02-2002 07:19 PM


All times are GMT -5. The time now is 05:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration