GNU bug report logs - #35584
CDs and DVDs aren't auto-mounted

Previous Next

Package: guix;

Reported by: sirgazil <sirgazil <at> zoho.com>

Date: Sun, 5 May 2019 16:54:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: 35584 <at> debbugs.gnu.org
Cc: raghavgururajan <at> disroot.org, luis.felipe.la <at> protonmail.com
Subject: bug#35584: CD/DVD does not work
Date: Wed, 29 Jul 2020 15:18:49 +0200
[Message part 1 (text/plain, inline)]
Hi,

On Wed, 29 Jul 2020 00:15:39 +0000
Luis Felipe via Bug reports for GNU Guix <bug-guix <at> gnu.org> wrote:

> There is one thing I hadn't noticed before, though. If I insert a DVD while I'm in a GNOME session, it doesn't work (that's the bug), but if I reboot with the DVD still in, log in to GNOME and open Nautilus, the DVD is listed and it works correctly. After doing this, if I extract the DVD and insert it again, it still doesn't work.

Checking nautilus sources, it uses GVolumeMonitor which is part of glib (gio).
That uses GUnixMountMonitor, and that checks /proc/mounts and fstab.

fstab is found like this:

static char *
get_fstab_file (void)
{
#ifdef HAVE_LIBMOUNT
  return (char *) mnt_get_fstab_path ();
#else
#if defined(HAVE_SYS_MNTCTL_H) && defined(HAVE_SYS_VMOUNT_H) && defined(HAVE_SYS_VFS_H)
  /* AIX */
  return "/etc/filesystems";
#elif defined(_PATH_MNTTAB)
  return _PATH_MNTTAB;
#elif defined(VFSTAB)
  return VFSTAB;
#else
  return "/etc/fstab";
#endif
#endif
}

libmount is part of util-linux, which has:

/**
 * mnt_get_fstab_path:
 *
 * Returns: path to /etc/fstab or $LIBMOUNT_FSTAB.
 */
const char *mnt_get_fstab_path(void)
{
        const char *p = safe_getenv("LIBMOUNT_FSTAB");
        return p ? : _PATH_MNTTAB;
}

In order to debug this problem, please try setting the environment variable
before starting nautilus, like this:

killall nautilus
export LIBMOUNT_FSTAB=/etc/fstab
nautilus

Then check whether detecting changes in CD/DVD state work fine like this.
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.