Find the answer to your Linux question:
Results 1 to 10 of 10
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie schwim's Avatar
    Join Date
    May 2005
    Location
    Denial
    Posts
    146

    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.

  2. #2
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    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

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    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

  4. #4
    Linux Newbie schwim's Avatar
    Join Date
    May 2005
    Location
    Denial
    Posts
    146
    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:

    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.

  5. #5
    Linux Newbie schwim's Avatar
    Join Date
    May 2005
    Location
    Denial
    Posts
    146
    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.

  6. #6
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    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

  7. #7
    Linux Newbie schwim's Avatar
    Join Date
    May 2005
    Location
    Denial
    Posts
    146
    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.

  8. #8
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    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

  9. #9
    Linux Newbie schwim's Avatar
    Join Date
    May 2005
    Location
    Denial
    Posts
    146
    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.

  10. #10
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •