[Bug 584301] Re: Mounting cifs drive in /etc/fstab stalls boot

Steve Langasek steve.langasek at canonical.com
Mon May 21 01:00:55 UTC 2012


> I tried adding the 'nobootwait' command to each drive,
> but it only lets me press 'S' to skip the first drive, then
> goes back to not letting me do anything.

This is bug #654545, which will be fixed for 12.10 and should be
backported to 12.04.

> Commenting out the network drives every time I want
> to reboot doesn't seem like a viable option.

"noauto" seems like the more logical choice, then.

> init: mythtv-backend main process (866) terminated with status 254
> init: mythtv-backend main process ended, respawning

The mythtv-backend job has the following start condition:

start on (local-filesystems and net-device-up IFACE!=lo and started
udev-finish)

However, the mysql service doesn't start until the full filesystem is up
- and the 'filesystem' event is being blocked by these filesystems not
being available yet.  So I think the mythtv-backend job definition is
buggy here, it needs to start on 'filesystem' like an ordinary service.

That explains the mythtv job respawning, but doesn't explain the hang
you saw.  mountall is designed to retry mounting the network filesystems
every time a new network interface comes up.  If your interface is being
configured in /etc/network/interfaces, that should be sufficient.

Are you still experiencing this issue?  And in particular, do you still
see it in 12.04?  If so, please add --verbose to the options to mountall
in /etc/init/mountall.conf, and capture the boot-time output.  (You may
want to redirect mountall's output to a file under /run, rather than
trying to screen-scrape it.)  I don't know what caused this issue, so
we'd need that debugging info.

** Changed in: mountall (Ubuntu)
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to mountall in Ubuntu.
https://bugs.launchpad.net/bugs/584301

Title:
  Mounting cifs drive in /etc/fstab stalls boot

Status in “mountall” package in Ubuntu:
  Incomplete

Bug description:
  Version: Ubuntu 10.04 LTS
  samba:
    Installed: 2:3.4.7~dfsg-1ubuntu3
    Candidate: 2:3.4.7~dfsg-1ubuntu3
    Version table:
   *** 2:3.4.7~dfsg-1ubuntu3 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
          100 /var/lib/dpkg/status
  mountall:
    Installed: 2.15
    Candidate: 2.15
    Version table:
   *** 2.15 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          100 /var/lib/dpkg/status
       2.14 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
  What you expected to happen:
  I expect that the cifs drives I have listed in /etc/fstab will mount at boot.

  What happened instead:
  Boot stalls, OS doesn't load.

  I just upgraded my 9.10 mythbuntu machine to 10.04. I have 3 network
  drives listed in fstab that previously had no issues at boot. They
  wouldn't mount there since the upgrade from 9.04 to 9.10, but at least
  I could login to the system and manually mount them. Now, no such
  luck.

  I get as far in the boot process as attempting to mount all the drives
  in fstab and them am unable to do anything else.

  mount error: could not resolve address for nas-02-58-EE: Name or service not found
  No ip address specified and hostname not found
  mountall: mount /var/lib/mythtv/videos/nas_videos [948] terminated with status 1

  I get that error repeated with all 3 network drives and cannot get
  past it. I get no option to skip attempting to mount those drives and
  load the OS. It just halts there, no prompt, no way to run any
  commands, just stops.

  I've always thought it ridiculous that it would attempt to mount
  network drives before there is a network connection, but never
  expected it to halt the boot and make the system unusable.

  Are there any workarounds to this problem? I cannot get to a prompt to
  run any commands in the current state so cannot run any debug on it.

  Edit: I can boot by loading the liveCD, manually mounting the first
  drive and commenting out the network drives in /etc/fstab. I tried
  adding the 'nobootwait' command to each drive, but it only lets me
  press 'S' to skip the first drive, then goes back to not letting me do
  anything.

  contents of fstab below
  Quote:
  #//nas-02-58-EE/media /var/lib/mythtv/videos/nas_videos cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,nobootwait 0 0
  #//nas-02-58-EE/media1 /var/lib/mythtv/videos/nas_videos1 cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,nobootwait 0 0
  #//DiskStation/video /var/lib/mythtv/videos/diskstation1 cifs user,uid=mythtv,guid=users,rw,suid,credentials=/etc/cifspwd,nobootwait 0 0 

  Commenting out the network drives every time I want to reboot doesn't
  seem like a viable option.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mountall/+bug/584301/+subscriptions




More information about the foundations-bugs mailing list