Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Misc > networked drives and shutdown/startup order--need help altering

Forgot Password?
 Misc   Any questions or Linux discussion that does not fit in any of the other technical areas.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 4 Weeks Ago   #1 (permalink)
Linux Newbie
 
schwim's Avatar
 
Join Date: May 2005
Location: Denial
Posts: 132
networked drives and shutdown/startup order--need help altering

Hi there everyone,

I'm having an issue with Ubuntu. To be honest, this problem has always existed, it's nothing new. Nobody seems willing to squash the bug though.

With networked shares, shutdown is stalled by the fact that the OS shuts down the network interface, then attempts to unmount the networked drives. This causes stalls in the shutdown that can last minutes. I've managed to resolve the issue with this post.

However, I'm still having a problem on startup. The network isn't alive when it tries to mount my shares and the mount fails. If I manually mount the drives through a terminal after startup, it works fine. Now here's the oddity. If I reboot(and not cold start), the drives do mount properly, leading me to believe that reboot uses a different process order than startup. Is this true?

How might I get my startup to follow reboot's lead, where network is brought up prior to the drives being mounted?

thanks,
json
__________________
Aloof linux user #whatever.

I tested off the charts for MENSA. Unfortunately, it was off the wrong end of the chart.
schwim is offline  


Reply With Quote
Old 4 Weeks Ago   #2 (permalink)
Linux Guru
 
reed9's Avatar
 
Join Date: Feb 2009
Location: Boston, MA
Posts: 2,201
Are you using Ubuntu's networkmanager?

I would guess that could be part of the problem. As far as I know, it starts with the desktop session, so anything requiring internet connectivity during the boot process is out of luck. You can switch to WICD, which should start up the network during the boot (at least it does for me on arch), or setup the network in /etc/network/interfaces
reed9 is offline   Reply With Quote
Old 4 Weeks Ago   #3 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Look in your rc#.d directories. There you should see files starting with K## or S## K=Kill/stop S=Start. Just re-arrange the numbers after S to start the process in the order you need stated. Make sure your network is staring before you netfs/autofs. Lower numbers start first. Same thing with the shutdown process, rc6.d, make sure the netfs is shutting down before the network.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 4 Weeks Ago   #4 (permalink)
Linux Newbie
 
schwim's Avatar
 
Join Date: May 2005
Location: Denial
Posts: 132
Hi there guys and thanks for the replies.

Lazy, I looked in my rc.d directories and didn't find netfs, but rc6.d seems to hold all of the file file unmounting commands as well as networking:

Quote:
K20kerneloops
S01linux-restricted-modules-common
S35networking
K25hwclock.sh
S10unattended-upgrades
S40umountfs
K50alsa-utils
S15wpa-ifupdown
S60umountroot
K74bluetooth
S20sendsigs
S90reboot
K99laptop-mode
S30urandom
README
S31umountnfs.sh
Is S31umountnfs.sh the one I need to move to rc.5d?

Thanks for your thoughts,
json
__________________
Aloof linux user #whatever.

I tested off the charts for MENSA. Unfortunately, it was off the wrong end of the chart.
schwim is offline   Reply With Quote
Old 4 Weeks Ago   #5 (permalink)
Linux Newbie
 
schwim's Avatar
 
Join Date: May 2005
Location: Denial
Posts: 132
Also, for clarification, does startup use this list as well, just in reverse order?
__________________
Aloof linux user #whatever.

I tested off the charts for MENSA. Unfortunately, it was off the wrong end of the chart.
schwim is offline   Reply With Quote
Old 4 Weeks Ago   #6 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Quote:
Originally Posted by schwim View Post
Hi there guys and thanks for the replies.

Lazy, I looked in my rc.d directories and didn't find netfs, but rc6.d seems to hold all of the file file unmounting commands as well as networking:



Is S31umountnfs.sh the one I need to move to rc.5d?

Thanks for your thoughts,
json

How about you post what is in rc5.d that way we know what you already have and what needs to be changed.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 4 Weeks Ago   #7 (permalink)
Linux Newbie
 
schwim's Avatar
 
Join Date: May 2005
Location: Denial
Posts: 132
README
S20speech-dispatcher
S90binfmt-support
S01policykit
S25bluetooth
S99acpi-support
S10apmd
S50cups
S99grub-common
S10sysklogd
S50pulseaudio
S99laptop-mode
S11klogd
S50rsync
S99ondemand
S20dkms_autoinstaller
S50saned
S99rc.local
S20hotkey-setup
S70dns-clean
S99stop-readahead
S20kerneloops
S70pppd-dns
__________________
Aloof linux user #whatever.

I tested off the charts for MENSA. Unfortunately, it was off the wrong end of the chart.
schwim is offline   Reply With Quote
Old 4 Weeks Ago   #8 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
Do not see where your network is being loaded. I don't know Ubuntu hopefully someone who knows Ubuntu better can help you with this. I guess all distros don't manage things the same way.
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Old 4 Weeks Ago   #9 (permalink)
Linux Newbie
 
schwim's Avatar
 
Join Date: May 2005
Location: Denial
Posts: 132
Thanks very much for taking a look at it Robert. I appreciate the effort!
__________________
Aloof linux user #whatever.

I tested off the charts for MENSA. Unfortunately, it was off the wrong end of the chart.
schwim is offline   Reply With Quote
Old 4 Weeks Ago   #10 (permalink)
Linux Engineer
 
Lazydog's Avatar
 
Join Date: Jun 2004
Location: The Key Stone State
Posts: 1,187
You might want to try on the Ubuntu above in Your Distro
__________________

Regards
Robert

Linux
The adventure of a life time.

Linux User #296285
Get Counted
Lazydog is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 01:36 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2