After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 132797 - Mounting CDROM's don't work if fstab entry is a symlink
Mounting CDROM's don't work if fstab entry is a symlink
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Other
cvs (head)
Other All
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-01-28 17:50 UTC by John McCutchan
Modified: 2008-09-06 19:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Ubuntu fix for this bug (1014 bytes, patch)
2004-11-23 16:42 UTC, Martin Pitt
none Details | Review

Description John McCutchan 2004-01-28 17:50:20 UTC
My fstab:
/dev/hdd /cdrom ....

/cdrom is actually a symlink to /cdrom0

so when nautilus mounts the disk it checks mtab, which contains /cdrom0
not /cdrom and assumes that /cdrom isn't mounted.
Comment 1 Martin Pitt 2004-11-23 16:42:40 UTC
Created attachment 34072 [details] [review]
Ubuntu fix for this bug

I just uploaded a new Ubuntu package which fixes this by resolving symlinks in
_gnome_vfs_get_unix_mount_table(). However, I used realpath() for this which
might not be safe on OSes other than Linux. Does glib provide something similar
and more portable?
Comment 2 Martin Wehner 2005-02-17 03:22:32 UTC
Patch for gnome-vfs, reassigning.
Comment 3 Mantas Kriaučiūnas 2006-08-01 16:00:00 UTC
Don't forget to check situation, when /etc/fstab contains line like
/dev/cdrom /media/cdrom iso9660,udf noauto,users,defaults,ro 0 0

and /dev/cdrom is symlink to actual device:
~:/# ls -la /dev/cdrom
lrwxrwxrwx 1 root root 3 2006-08-01 16:29 /dev/cdrom -> hdc

Latest Ubuntu Dapper doesn't mount CD disk when I press on CD-ROM icon in Computer://

Installing updated gnome-vfs package from dapper-updates doesn't help :(

Look at this bugreport for more info:

http://launchpad.net/distros/ubuntu/+source/nautilus/+bug/54808
Comment 4 André Klapper 2008-09-06 19:17:40 UTC
gnome-vfs has been deprecated and superseded by gio/gvfs since GNOME 2.22, hence mass-closing many of the gnome-vfs requests/bug reports. This means that gnome-vfs is NOT actively maintained anymore, however patches are still welcome.

If your reported issue is still valid for gio/gvfs, please feel free to file a bug report against glib/gio or gvfs.

@Bugzilla mail recipients: query for gnome-vfs-mass-close to get rid of these notification emails all together.


General further information: http://en.wikipedia.org/wiki/GVFS 
Reasons behind this decision are listed at http://www.mail-archive.com/gnome-vfs-list@gnome.org/msg00899.html