[Bug 441454] Re: mountall fails on loop-device without losetup

nivlac 441454 at bugs.launchpad.net
Thu Jan 26 20:15:20 UTC 2012


Scott,

mount and its options in fstab will not mount a raid device attached to
a file.

/somefile /somelocation ext4 loop 0 0

because mdadm must assemble and start the array first:

mdadm --assemble --scan /dev/someloopdevice

and losetup needs to setup that loop device first:

losetup /somefile /dev/someloopdevice

Any idea what the right way to do this is on boot!

More background:

This device won't be mounted in the host os.

the array gets mounted in an lxc container

yet the host OS must do the losetup and the array assemble

and start for the container to use the device...

-- 
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/441454

Title:
  mountall fails on loop-device without losetup

Status in “mountall” package in Ubuntu:
  Fix Released
Status in “mountall” source package in Karmic:
  Fix Released

Bug description:
  Binary package hint: mountall

  My /etc/fstab contains the following line for an encrypted partition:
  /dev/loop1     /backup         reiserfs defaults        0 2
  mountall seems to see that /dev/loop1 is there and attempts to mount without prior invocation of losetup.  Hence, the mount fails.
  In Jaunty, I had a script /etc/rcS.d/S08losetup, which did a proper setup of the loop device, before it was mounted later in the boot process. On Karmic, this script is still executed but too late (due to upstart). I tried to use /etc/init/losetup with "start on startup". However, this fails as the underlying device (/dev/hdb1) is not yet created.

  ProblemType: Bug
  Architecture: i386
  Date: Sat Oct  3 17:02:33 2009
  DistroRelease: Ubuntu 9.10
  NonfreeKernelModules: nvidia
  Package: mountall 0.1.8
  ProcEnviron:
   PATH=(custom, user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature:
   
  SourcePackage: mountall
  Uname: Linux 2.6.31.1 i686
  XsessionErrors:
   (gnome-settings-daemon:3726): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
   (gnome-settings-daemon:3726): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
   (nautilus:3761): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
   (polkit-gnome-authentication-agent-1:3802): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

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




More information about the foundations-bugs mailing list