[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Changed in: oem-priority Status: Fix Committed => Fix Released ** Changed in: oem-priority/oneiric Status: Fix Committed => Fix Released ** Also affects: oem-priority/precise Importance: Undecided Status: New ** Changed in: oem-priority/precise Status: New => Fix Released ** Changed in: oem-priority/precise Importance: Undecided => Medium ** Changed in: oem-priority/precise Assignee: (unassigned) => Chris Van Hoof (vanhoof) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Changed in: linux (Ubuntu Precise) Assignee: Ayan George (ayan) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
This bug was fixed in the package linux - 3.0.0-16.28 --- linux (3.0.0-16.28) oneiric-proposed; urgency=low [Herton R. Krzesinski] * Release Tracking Bug - LP: #922692 [ Upstream Kernel Changes ] * Revert "drm/i915/dp: Fix the math in intel_dp_link_required" - LP: #919350 linux (3.0.0-16.27) oneiric-proposed; urgency=low [Brad Figg] * Release Tracking Bug - LP: #920735 [ Paolo Pisati ] * Revert "SAUCE: omap3: beagle: if rev unknown, assume xM revision C" - LP: #912199 * Revert "SAUCE: omap3: beagle: detect new xM revision C" - LP: #912199 * Revert "SAUCE: omap3: beagle: detect new xM revision B" - LP: #912199 * Revert "SAUCE: omap3: beaglexm: fix DVI initialization" - LP: #912199 * [Config] DEFAULT_MMAP_MIN_ADDR=32k on arm - LP: #903346 [ Upstream Kernel Changes ] * Revert "rtc: Disable the alarm in the hardware" - LP: #913373 * Support for Terratec G1 - LP: #821061 * drm/radeon/kms: fix DP detect and EDID fetch for DP bridges - LP: #825777 * drm/radeon/kms/DCE4.1: fix Select_CrtcSource EncodeMode setting for DP bridges (v2) - LP: #825777 * drm/radeon/kms: cleanup atombios_adjust_pll() - LP: #825777 * drm/radeon/kms/atom: rework encoder dpms - LP: #825777 * drm/radeon/kms: check for DP MST mode in a few more places (v2) - LP: #825777 * drm/radeon/kms: rework DP bridge checks - LP: #825777 * drm/radeon/kms: fix DP setup on TRAVIS bridges - LP: #825777 * ALSA: sis7019 - give slow codecs more time to reset - LP: #907778 * ALSA: hda/realtek - Fix Oops in alc_mux_select() - LP: #907778 * alarmtimers: Fix time comparison - LP: #907778 * ARM: davinci: da850 evm: change audio edma event queue to EVENTQ_0 - LP: #907778 * arm: mx23: recognise stmp378x as mx23 - LP: #907778 * ARM: at91: fix clock conid for atmel_tcb.1 on 9260/9g20 - LP: #907778 * ARM: davinci: dm646x evm: wrong register used in setup_vpif_input_channel_mode - LP: #907778 * ASoC: Provide a more complete DMA driver stub - LP: #907778 * fs/proc/meminfo.c: fix compilation error - LP: #907778 * thp: add compound tail page _mapcount when mapped - LP: #907778 * thp: set compound tail page _count to zero - LP: #907778 * ptp: Fix clock_getres() implementation - LP: #907778 * mm: Ensure that pfn_valid() is called once per pageblock when reserving pageblocks - LP: #907778 * mm: vmalloc: check for page allocation failure before vmlist insertion - LP: #907778 * fix apparmor dereferencing potentially freed dentry, sanitize __d_path() API - LP: #907778 * target: Handle 0 correctly in transport_get_sectors_6() - LP: #907778 * intel-iommu: fix return value of iommu_unmap() API - LP: #907778 * intel-iommu: set iommu_superpage on VM domains to lowest common denominator - LP: #907778 * intel-iommu: fix superpage support in pfn_to_dma_pte() - LP: #907778 * percpu: fix chunk range calculation - LP: #907778 * iwlwifi: do not re-configure HT40 after associated - LP: #907778 * mac80211: fix race condition caused by late addBA response - LP: #907778 * linux/log2.h: Fix rounddown_pow_of_two(1) - LP: #907778 * hwmon: (jz4740) fix signedness bug - LP: #907778 * mmc: mxcmmc: fix falling back to PIO - LP: #907778 * x86, hpet: Immediately disable HPET timer 1 if rtc irq is masked - LP: #907778 * jbd/jbd2: validate sb->s_first in journal_get_superblock() - LP: #907778 * hfs: fix hfs_find_init() sb->ext_tree NULL ptr oops - LP: #907778 * hwmon: (coretemp) Fix oops on CPU offlining - LP: #907778 * xfs: fix nfs export of 64-bit inodes numbers on 32-bit kernels - LP: #907778 * xfs: avoid synchronous transactions when deleting attr blocks - LP: #907778 * md/raid5: fix bug that could result in reads from a failed device. - LP: #907778 * xen: only limit memory map to maximum reservation for domain 0. - LP: #907778 * ext4: display the correct mount option in /proc/mounts for [no]init_itable - LP: #907778 * ext4: avoid hangs in ext4_da_should_update_i_disksize() - LP: #907778 * ext4: avoid potential hang in mpage_submit_io() when blocksize < pagesize - LP: #907778 * ext4: handle EOF correctly in ext4_bio_write_page() - LP: #907778 * fuse: fix fuse_retrieve - LP: #907778 * staging: r8712u: Add new USB ID - LP: #907778 * drm/radeon/kms: add some new pci ids - LP: #907778 * ibft: Fix finding IBFT ACPI table on UEFI - LP: #907778 * USB: cdc-acm: add IDs for Motorola H24 HSPA USB module. - LP: #907778 * usb: option: Add Huawei E398 controlling interfaces - LP: #907778 * USB: option: Removing one bogus and adding some new Huawei combinations - LP: #907778 * ASoC: core: Don't schedule deferred_resume_work twice - LP: #907778 * Linux 3.0.14 - LP: #907778 * drm/i915:
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Verified fixed with linux-image-3.0.0-16-generic rev. 3.0.0-16.28 on Xubuntu 11.10. Thunar exposed the underlying issue with usb-creator-gtk and earlier kernels the same way Nautilus did. 3.0.0-16.28 fixes it, thank you. ** Tags removed: verification-needed-oneiric ** Tags added: verification-done-oneiric -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
This bug is awaiting verification that the kernel for Oneiric in -proposed solves the problem (3.0.0-16.28). Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed-oneiric' to 'verification-done-oneiric'. If verification is not done by one week from today, this fix will be dropped from the source code, and this bug will be closed. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you! ** Tags added: verification-needed-oneiric -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Branch linked: lp:ubuntu/oneiric-proposed/linux-ti-omap4 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Changed in: usb-creator (Ubuntu Oneiric) Status: New => Invalid ** Changed in: oem-priority Status: Incomplete => Fix Committed ** Changed in: oem-priority/oneiric Status: Triaged => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Also affects: linux (Ubuntu Oneiric) Importance: Undecided Status: New ** Also affects: usb-creator (Ubuntu Oneiric) Importance: Undecided Status: New ** Also affects: linux (Ubuntu Precise) Importance: Medium Assignee: Ayan George (ayan) Status: In Progress ** Also affects: usb-creator (Ubuntu Precise) Importance: Medium Status: Invalid ** Changed in: linux (Ubuntu Precise) Status: In Progress => Fix Released ** Changed in: linux (Ubuntu Oneiric) Status: New => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Err -- I'll work on backporting and testing on lucid and maverick. ** Changed in: linux (Ubuntu) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Commits 4c823cc and 8a9c594 in the current mainline linux kernel should fix this issue. I will work on backporting and testito lucid and maverick -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Changed in: oem-priority Status: Confirmed => Incomplete ** Changed in: oem-priority/oneiric Status: New => Triaged ** Changed in: oem-priority/oneiric Importance: Undecided => Medium ** Changed in: oem-priority/oneiric Assignee: (unassigned) => Chris Van Hoof (vanhoof) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Patches made it into -mm branch this weekend. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Also affects: oem-priority/oneiric Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
The patch to fix the issue currently is queued in linux-next: commit 23e2632cc815fb6cc38560805a12be586e23a8f1 Author: Phillip Susi Date: Sat Jul 16 23:31:06 2011 +1000 Fix the loopback device to emit a uevent on auto release. The loopback driver failed to emit the change uevent when auto releasing the device. Fix lo_release() to pass the bdev to loop_clr_fd() so it can emit the event. Cc: Jens Axboe Signed-off-by: Phillip Susi Signed-off-by: Andrew Morton As the merge window has opened, it should likely get into 3.1 from where we could pick it. I am no sure Ayan's patch would make it (sure one could try to send it upstream (after removing the unnecessary whiespace change)) upstream. From the lo_ioctl side bdev is the known (passed in argument) while lo is not. Theoretically clear could be called before set and that may or may not be checked for under all circumstances. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
The parameters taken by loop_clr_fd() are confusing -- the block device isn't necessary since struct loop_device has a block device member (lo_device) that gets set when loop_set_fd() is called. An instance of a struct loop_device is the only thing required to clear the fd. Perhaps the attached patch fixes the API issue as well as the bug? ** Patch added: "loop.c.patch" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/548546/+attachment/2203726/+files/loop.c.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
@Phillip -- Fixed that up, was doing some batch updates across other projects. Cheers, Chris ** Changed in: linux (Ubuntu) Status: Confirmed => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Chris, why did you drop the status from Triaged to Confirmed? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
** Changed in: linux (Ubuntu) Assignee: (unassigned) => Ayan George (ayan) ** Changed in: linux (Ubuntu) Importance: Undecided => Medium ** Changed in: oem-priority Assignee: (unassigned) => Chris Van Hoof (vanhoof) ** Changed in: linux (Ubuntu) Status: Triaged => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
That indeed looks straightforward, thanks! Kernel team, could we get that upstream and into oneiric? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Fixed it. Attaching simple one line patch that seems to work for me on Natty. ** Patch added: "fixloop.patch" https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/548546/+attachment/2183116/+files/fixloop.patch ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
The patch doesn't quite fix the problem because it only generates the event when bdev != NULL, but the kernel auto detach machinery passes NULL for the bdev in loop.c:1525. In util-linux mount.c:1270 checks if the kernel version is >= 2.6.37 and if it is, enables SETLOOP_AUTOCLEAR which causes the kernel to auto detach instead of umount. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it To manage notifications about this bug go to: https://bugs.launchpad.net/oem-priority/+bug/548546/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Unfortunately the trick with the udevadm trigger doesn't work around the problem. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
I straced umount, and found that it actually does not do anything with the loop device itself, or calls losetup. I suppose what happens is that the kernel itself tears down the loop device when you umount() a device which was mounted with -o loop (I don't see a mount option in /proc/mounts which would indicate this, so there must be some internal housekeeping flag?). I guess this code path is simply missing the kobject_uevent() call. ** Changed in: linux (Ubuntu) Assignee: Martin Pitt (pitti) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Sorry, in above patch the --verbose should be dropped, that was just for debugging. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Ayan and I investigated this, and found out an interesting thing: When I explicitly use losetup/mount/umount/losetup -d as in comment 40, the aforementioned kernel patch [1] takes care to send a "change" uevent when the losetup -d happens. However, when I use the approach that usb-creator uses, things still go wrong: sudo mount -o loop ~/download/ubuntu/natty-desktop-amd64.iso /mnt This sends a "change" event on loop0 which causes udev/udisks/etc. to re-read the device, and see that there's an iso9660 file system on it. sudo umount /mnt This does NOT send a change event on loop0, although it does tear down the loop device. So after that, udev/udisks (and thus the gvfs stack) still think that /dev/loop0 is a mountable iso9660 file system. A workaround would be to poke the loop device in the usb creator backend: def UnmountFile(self, device, sender=None, conn=None): popen(['umount', device]) +popen(['udevadm', 'trigger', '--verbose', '--sysname-match=loop0']) Ayan is currently testing this. But the proper bug fix would be to either fix umount to tear down loop0 "more properly" so that the kernel patch kicks in, or fix the kernel to also send a change event on the missing case that umount triggers if it unmounts a loop device that was mounted with "-o loop". [1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=c3473c63542d53740f175f3a515257ae159e998b ** Package changed: gnome-disk-utility (Ubuntu) => linux (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Ayan George [2011-04-10 19:52 -]: > I've tried a patch to usb-creator that uses udisks --mount to mount the > temp drive under /media and it works fine under Maverick. That might be a pointer to where the problem actually is, but I don't think we should do this. As this is an internal helper mount, it shouldn't be exposed to users in nautilus at all. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
I can still reproduce the bug under Maverick. If one mounts a loopback filesystem under /media, things work fine. Examining the gvfs code, it appears to explicitly ignores udisks signals for mounts outside of /media. See _g_unix_mount_point_guess_should_display() @ line 631 of gvfs-1.6.4/monitor/gdu/ggduvolumemonitor.c -- notice that this function is used in should_volume_be_ignored() and should_drive_be_ignored(). I've tried a patch to usb-creator that uses udisks --mount to mount the temp drive under /media and it works fine under Maverick. I'm still not familiar with all of the intricacies of how the mount and device events get propagated to nautilus. Please correct me if I'm wrong Martin. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
Not important enough for an SRU. ** Changed in: gnome-disk-utility (Ubuntu Lucid) Status: Confirmed => Won't Fix ** Changed in: gnome-disk-utility (Ubuntu Maverick) Status: Confirmed => Won't Fix -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it
I tried to reproduce this with sudo losetup /dev/loop0 download/ubuntu/natty-desktop-amd64.iso -> Volume/Drive created and appears in palimpsest and nautilus sudo mount /dev/loop0 /mnt -> Volume/Drive disappear in nautilus, as it's hidden from user sessions (not in /media); stays in palimpsest sudo umount /mnt -> Volume/Drive reappear in nautilus, as it's now umounted; still stays around in palimpsest sudo losetup -d -> volume/drive go away in nautilus/palimpsest So it's something more specific to what usb-creator does. Need to investigate that in more detail then (debug cycles are quite long with a full usb-creator write turnaround). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
** Changed in: gnome-disk-utility (Ubuntu Maverick) Assignee: Martin Pitt (pitti) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
bug seems to be reproducible at will ** Changed in: gnome-disk-utility (Ubuntu Lucid) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
Reproduced today after using usb-creator to test an ubuntu-based distro (elementary 0.1, based on maverick 32bit). Request formatting of the ejected volume, listed in nautilus with the distro name, prompts an error message Error creating partition table: helper exited with exit code 1: BLKRRPART ioctl failed for /dev/loop0: Invalid argument but the ghost volume then disappears. So this is another, if less clean, workaround. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
I used usb-creator yesterday to try ubuntu 11.04-beta1 (32bit). After successful creation of the bootable device I unmounted the volume and even chose safely remove after. After I removed the USB stick, Nautilus still displays /dev/loop0 as File 732MB (ubuntu-11.04-beta1-i386.iso). Trying ti mount it then gives this fs driver error: Error mounting: mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error (could this be the IDE device where you in fact use ide-scsi so that sr0 or sda or so is needed?) In some cases useful info is found in syslog - try dmesg | tail or so Workaround: checking it with gnome-disk-utility 2.30.1-1 returns the volume as not safe, but makes it disappear at last. Up-to-date Lucid 64bit here. usb-creator-gtk 0.2.22.1 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
Running Ubuntu 10.10Nautilus is sleeping when using the Places bookmarks. Lunch the folder and nothing happens -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
** Package changed: nautilus (Ubuntu) => gnome-disk-utility (Ubuntu) ** Changed in: gnome-disk-utility (Ubuntu) Status: New => Triaged ** Changed in: gnome-disk-utility (Ubuntu Lucid) Assignee: Canonical Desktop Team (canonical-desktop-team) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/548546 Title: Nautilus does not remove usb drive made with USB-Creator after unmounting it. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
I think the bug is in libgdu. If the event custody chain is: kernel uevent -> udev -> udev uevent -> (udisks sends D-BUS signal) -> (libgdu + gvfs) We can test udisk with: $ udisks --monitor-detail You'll see that the "is mounted" flag is set properly when you mount and unmount a loop device. You can test gvfs with: $ gvfs-mount -io And you'll see the events are backwards there. -- Nautilus does not remove usb drive made with USB-Creator after unmounting it. https://bugs.launchpad.net/bugs/548546 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 548546] Re: Nautilus does not remove usb drive made with USB-Creator after unmounting it.
** Summary changed: - nautilus not removing device after unmount + Nautilus does not remove usb drive made with USB-Creator after unmounting it. ** Changed in: nautilus (Ubuntu Maverick) Status: New => Confirmed -- Nautilus does not remove usb drive made with USB-Creator after unmounting it. https://bugs.launchpad.net/bugs/548546 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs