CDs and DVDs aren't auto-mounted

  • Open
  • quality assurance status badge
Details
8 participants
  • Danny Milosavljevic
  • Luis Felipe
  • Pierre Neidhardt
  • Tobias Geerinckx-Rice
  • pelzflorian (Florian Pelz)
  • raingloom
  • Ricardo Wurmus
  • sirgazil
Owner
unassigned
Submitted by
sirgazil
Severity
normal
S
S
sirgazil wrote on 5 May 2019 18:52
CD/DVD does not work
(name . bug-guix)(address . bug-guix@gnu.org)
16a88e95ddd.d045a49d38463.783261989832782808@zoho.com
Hi,

I installed the GNU system in a real machine using the Guix 1.0 ISO installer (https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.0.x86_64-linux.iso.xz).

When I insert a CD or a DVD the drive light flashes for a moment, then turns off, but it seems the discs are never mounted. GNOME displays no messages, GNOME Files does not list the drive, I don't see anything related to DVD after running "findmnt", and running "lsblk" says:

```
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931,5G 0 disk
??sda1 8:1 0 750M 0 part /boot/efi
??sda2 8:2 0 3,7G 0 part [SWAP]
??sda3 8:3 0 927,1G 0 part /
sr0 11:0 1 1024M 0 rom
```


---
P
P
pelzflorian (Florian Pelz) wrote on 5 May 2019 20:11
(name . sirgazil)(address . sirgazil@zoho.com)(address . 35584@debbugs.gnu.org)
20190505181113.nv2ttnslnmeovp55@pelzflorian.localdomain
On Sun, May 05, 2019 at 11:52:36AM -0500, sirgazil wrote:
Toggle quote (16 lines)
> Hi,
>
> I installed the GNU system in a real machine using the Guix 1.0 ISO installer (https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.0.x86_64-linux.iso.xz).
>
> When I insert a CD or a DVD the drive light flashes for a moment, then turns off, but it seems the discs are never mounted. GNOME displays no messages, GNOME Files does not list the drive, I don't see anything related to DVD after running "findmnt", and running "lsblk" says:
>
> ```
> $ lsblk
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> sda 8:0 0 931,5G 0 disk
> ??sda1 8:1 0 750M 0 part /boot/efi
> ??sda2 8:2 0 3,7G 0 part [SWAP]
> ??sda3 8:3 0 927,1G 0 part /
> sr0 11:0 1 1024M 0 rom
> ```

I can confirm. So sr0 is visible. The same happens for me on an
internal and an external USB DVD drive when I insert a video DVD, but
I can play it with VLC and once I open the drive /dev/sr0 in VLC it
gets auto-mounted in Nautilus. Note that I have gvfs in my packages
field, if that makes a difference.

On Arch the DVD gets mounted by Nautilus immediately on insert.

I have no idea why that happens though.

Regards,
Florian
R
R
Ricardo Wurmus wrote on 5 May 2019 22:17
(name . pelzflorian (Florian Pelz))(address . pelzflorian@pelzflorian.de)
878svkr70f.fsf@elephly.net
pelzflorian (Florian Pelz) <pelzflorian@pelzflorian.de> writes:

Toggle quote (25 lines)
> On Sun, May 05, 2019 at 11:52:36AM -0500, sirgazil wrote:
>> Hi,
>>
>> I installed the GNU system in a real machine using the Guix 1.0 ISO installer (https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.0.x86_64-linux.iso.xz).
>>
>> When I insert a CD or a DVD the drive light flashes for a moment, then turns off, but it seems the discs are never mounted. GNOME displays no messages, GNOME Files does not list the drive, I don't see anything related to DVD after running "findmnt", and running "lsblk" says:
>>
>> ```
>> $ lsblk
>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>> sda 8:0 0 931,5G 0 disk
>> ??sda1 8:1 0 750M 0 part /boot/efi
>> ??sda2 8:2 0 3,7G 0 part [SWAP]
>> ??sda3 8:3 0 927,1G 0 part /
>> sr0 11:0 1 1024M 0 rom
>> ```
>
> I can confirm. So sr0 is visible. The same happens for me on an
> internal and an external USB DVD drive when I insert a video DVD, but
> I can play it with VLC and once I open the drive /dev/sr0 in VLC it
> gets auto-mounted in Nautilus. Note that I have gvfs in my packages
> field, if that makes a difference.
>
> On Arch the DVD gets mounted by Nautilus immediately on insert.

I cannot reproduce this with a slightly older system. On my workstation
CDs could always be mounted by Nautilus immediately. If this doesn’t
work any more it must be a regression.

--
Ricardo
P
P
Pierre Neidhardt wrote on 11 May 2019 22:23
(name . Ricardo Wurmus)(address . rekado@elephly.net)
87h8a0zqna.fsf@ambrevar.xyz
Not sure it's related, but it's awfully similar to the issue I'm having
with CDEmu: I can load images but nothing ever gets mounted.

--
Pierre Neidhardt
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlzXL1kACgkQm9z0l6S7
zH+o/Qf9Hng1BnXW5TdKnn3uni3rFL5Bs98hTAUhm94vVjjk8lcSo0tWYgcX07aM
pINeGxJckPXBBEtcRhpepJVXzRsriCqK0OB6GUItPNauXgcl0jwXFdw9F6Q07BHo
T+e0kS7JMBdaxktoPuzusKC0PsRMbK6/B+r8WUb1fsswczjwEcAytqoXzz1gXxon
ESkLnS42kjm5B4R2pgtScSK+EOUQpDBu9Eyklk7rsAQNcguirwm2HgnQK2ALh+yz
Kie0NSsiox3fVV3CBazyXkf1YIfYsbsspXWglzLwdGn553gkns8e10icyx8IZr+N
prfqv8JrnjVTkgFe4N6H53ncg+Bz4w==
=87Rf
-----END PGP SIGNATURE-----

S
S
sirgazil wrote on 5 Nov 2019 00:05
CD/DVD does not work
(name . 35584)(address . 35584@debbugs.gnu.org)
16e38aa8c71.11a92611910596.7946703777565996051@zoho.com
Just to add that the problem is still present today on:



$ LANG=C guix describe
Generation 5    Nov 04 2019 14:24:15    (current)
  guix bf7b08c
    branch: master
    commit: bf7b08c4fe7d14c25a83bde99f19eca1119d88ff


Also, I was able to use the drive successfully from a Trisquel 8 Live USB stick. So, at least I know the drive works.





---

Attachment: file
L
L
Luis Felipe wrote on 29 Jul 2020 02:15
(name . 35584@debbugs.gnu.org)(address . 35584@debbugs.gnu.org)
AZCGxCSn22wfzWlkCYXFgOY6376tUGSNgMtxsf2Vvvs-n9VbciDvBYnyZzhXaxNp-Ejd3RpmzgnYWwhG1nbBTfcWg1F1j4uyZAnBvV9fTnc=@protonmail.com
This bug persist on the Guix version I'm using:

??????????
$ guix describe
Generation 4 Jul 05 2020 13:40:24 (current)
guix 6ee7468
branch: master
commit: 6ee7468758d7c043692ae8c0b5e130fa4eabe94c
??????????

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.
D
D
Danny Milosavljevic wrote on 29 Jul 2020 15:18
(name . Luis Felipe via Bug reports for GNU Guix)(address . bug-guix@gnu.org)
20200729151849.084ac748@scratchpost.org
Hi,

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

Toggle quote (2 lines)
> 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.
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl8hdzkACgkQ5xo1VCww
uqWEOQf9GQFXP/oPRxozzhv469IwJbK4IbxwkVKCBlZ7gIoi74yNYPfCcDXMcnyv
tYMkXsIOSDYdBMsttX2ZzRzGBkN7kaTXMfFTGOsJomWLIjIJ2sRJRgbD42PYFp8P
By+tbjq+Rih9KTWSjqF82Y3M/Z6yHGsBr+t5W7hw7kbA9sukLCISxJ4Uv5FnfoA4
I5g3R51Au/dkRMJNiSSpEudH2XUyHT3kfaC8eJzbIaXAl3Ez0GImN4tu/sgpd0e4
KdkPbi5Geq60ckOJY10n5kauXdclMc4sXqQppGyGoFmAmQviE2to/fvAjL1AIEux
j7i/gYBCM5IatXOijasdheojLvk9OQ==
=Mfev
-----END PGP SIGNATURE-----


L
L
Luis Felipe wrote on 29 Jul 2020 15:42
(name . Danny Milosavljevic)(address . dannym@scratchpost.org)
AbINLSmpPnkztMKDg0trqDT2h7KmFf2ZtuxXIucvUyFKeeksVfzj4qu3VijHpbN2LhoxXs4IB_aeGWWsVKWUD9sA_pSJbnCnV_lGU0vQOs8=@protonmail.com
Hi, Danny.

Toggle quote (10 lines)
> 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.
>

Unfortunately not. I got this:

$ killall nautilus
nautilus: no process found

So I closed any visible instance of Nautilus instead, exported the LIBMOUNT_FSTAB variable, started nautilus, inserted a DVD, and it didn't work.
L
L
Luis Felipe wrote on 8 Dec 2020 16:56
CD/DVD does not work
(name . 35584@debbugs.gnu.org)(address . 35584@debbugs.gnu.org)
TP4zevFp9MfFnX5bFeeI5obVHcsH4vPxsJmohGxLSnszB2FBjn_rmVvobNlX9l5HmudTIWaFn-iUNt6mU9KMs0WdZtrqFrtAiA1hpBHo_IQ=@protonmail.com
This bug persists in the Guix System version I'm using:

guix 08d8c2d
linux-libre 5.9.12-gnu
T
T
Tobias Geerinckx-Rice wrote on 8 Dec 2020 18:12
(no subject)
(address . control@debbugs.gnu.org)
87360gjk6p.fsf@nckx
retitle 35584 CDs and DVDs aren't auto-mounted
R
R
raingloom wrote on 25 Mar 2021 20:45
CDs and DVDs aren't auto-mounted
(address . 35584@debbugs.gnu.org)
20210325204545.19d2ae6e@riseup.net
This persists. System commit from about 1-2 weeks ago. (built from
private branch, so commit name wouldn't mean much)

Not sure how to investigate, because last time I tried looking into
GVFS issues it turned out to be a huge mess.
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 35584@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 35584
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch