Bug 167108
Summary: | nautilus Computer window does not update when usb2 harddrive is plugged in | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Jef Spaleta <jspaleta> | ||||||||
Component: | nautilus | Assignee: | Alexander Larsson <alexl> | ||||||||
Status: | CLOSED RAWHIDE | QA Contact: | |||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | rawhide | CC: | jon.nettleton, maestronn, rodd | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2006-03-26 00:37:11 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Jef Spaleta
2005-08-30 13:28:34 UTC
Instead of opening a new bug.. I'd like to update this one. I now have nautilus-2.12.0-1 installed and nautilus is completely ignoring ALL the mountable drives. hal is updating fstab correctly and I can mount all my devices via a terminal. But nautilus isn't showing any of them... even if they are mounted. floppy,cd-recorder,usb harddrive, usb compact flash, ipod all no longer show up in nautilus Computer window nor in the disk mounter panel applet. All these devices are still mountable via the cmdline and get appropriate fstab entries and /media/ mountpoints. Is this a dbus issue? Some people thought this behavior was related to the seg faulting gnome-vfs-daemon but appearently it is not. Today's rawhide updates fixed the gnome-vfs-daemon crash. I am rawhide synced as of sep 29 and the Computer window still doesn't correctly update itself with regard to removable devices. An additional behavior that I have seen is the following 1) insert usb drive 2) Disk Mounter applet shows that the drive is present 3) click Mount "usb drive name" ( Open "usb drive name" not a selectable option) 4) error box pops up with the following message mount: /dev/sda1 already mount or /media/usbdisk busy mount: according to mtab, /dev/sda1 is already mounted on /media/usbdisk This error is true. The drive is mounted and accessible from commandline. Nautilus is able to see the drive, but cannot browse it. Created attachment 120391 [details]
Workaround race condition between sysfs and /proc/mounts
This problem comes from a race condition in hal between the time that sysfs
creates the mount notification and when /proc/mounts is updated. We talked
about this on the Hal dev list and it appears this can't be fixed in the
kernel. We have worked out a proposed patch that I will attach. CVS should be
updated with it tonight.
Has this been applied, and released into rawhide? If so then I'm not seeing any improvements today. My USB key (for example) mounts, but neither appears in computer or on the desktop. Created attachment 120553 [details]
More complete and robust fix for the race condition
I have sent this out to the Hal mailing list as a more robust fix for this race
condition. It tries to minimize the time spent sleeping, and taking into
consideration mount and unmount requests.
Created attachment 120561 [details]
Properly read netlink messages as individual datagrams
This is a second problem that could cause your drive to not mount. If the
mount requests happen close enough the first one would be parsed from netlink
and the second message would be thrown out.
Good news: Okay as of today's rawhide... nautilus sees my usb-storage device mountpoints. Bad news: when I unmount and remove the usb storage devices, nautilus isn't removing those listing from the Computer window. It's just Bad News for me. The device mounts and unmounts, but I don't see anything in either computer or in the disk mounter applet. Interestingly, looking at /etc/fstab I see: # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/1 / ext3 defaults 1 1 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 LABEL=/home /home ext3 defaults 1 2 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 LABEL=/var /var/www ext3 defaults 1 2 LABEL=SWAP-sda8 swap swap defaults 0 0 /dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0 /dev/uba1 /media/KINGSTON vfat pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t:s0,managed 0 0 It appears the USB device is being detected as /dev/uba1 which I've never seen before. In the past it's always been /dev/sd? I'm not sure if this is a USB2 device, or if that matters. It's a USB Key. I'm closing this out as the original reporter, I no longer see the problem with my device and we've moved away from the fstab entry stuff anyways with the new hal implementation now in -devel and fc5. Please refile new bug reports instead of reopening this one if you have similar symptoms with current -devel or fc5. -jef |