bug: 451613 title: all disks and partitions are automounted in the live session date-reported: Wed, 14 Oct 2009 20:34:11 -0000 date-updated: Tue, 27 Nov 2012 19:43:17 -0000 reporter: Tormod Volden (tormodvolden) duplicate-of: duplicates: 386990 attachments: https://bugs.launchpad.net/bugs/451613/+attachment/827749/+files/Dependencies.txt text/plain; charset="utf-8" https://bugs.launchpad.net/bugs/451613/+attachment/827750/+files/XsessionErrors.txt text/plain; charset="utf-8" https://bugs.launchpad.net/bugs/451613/+attachment/828249/+files/gvfs-mount-li.txt text/plain https://bugs.launchpad.net/bugs/451613/+attachment/828250/+files/mount.txt text/plain patches: tags: apport-bug i386 subscribers: Tormod Volden (tormodvolden) Evan (ev) andbelo (andbelo) task: gvfs status: Fix Released date-created: Mon, 19 Oct 2009 11:38:57 -0000 reporter: Martin Pitt (pitti) watch: https://gitlab.gnome.org/598914 importance: Medium assignee: milestone: task: gvfs (Ubuntu) status: Fix Released date-created: Wed, 14 Oct 2009 20:34:11 -0000 date-left-new: Wed, 14 Oct 2009 21:05:43 -0000 date-confirmed: Thu, 15 Oct 2009 11:05:36 -0000 date-triaged: Thu, 15 Oct 2009 11:05:36 -0000 date-assigned: Wed, 14 Oct 2009 20:34:33 -0000 date-inprogress: Thu, 15 Oct 2009 16:45:31 -0000 date-closed: Mon, 19 Oct 2009 12:13:53 -0000 date-fix-committed: Mon, 19 Oct 2009 11:42:27 -0000 date-fix-released: Mon, 19 Oct 2009 12:13:53 -0000 reporter: Tormod Volden (tormodvolden) importance: High component: main assignee: Martin Pitt (pitti) milestone: ubuntu-9.10 task: gvfs (Ubuntu Karmic) status: Fix Released date-created: Thu, 15 Oct 2009 15:10:54 -0000 date-left-new: Wed, 14 Oct 2009 21:05:43 -0000 date-confirmed: Thu, 15 Oct 2009 11:05:36 -0000 date-triaged: Thu, 15 Oct 2009 11:05:36 -0000 date-assigned: Wed, 14 Oct 2009 20:34:33 -0000 date-inprogress: Thu, 15 Oct 2009 16:45:31 -0000 date-closed: Mon, 19 Oct 2009 12:13:53 -0000 date-fix-committed: Mon, 19 Oct 2009 11:42:27 -0000 date-fix-released: Mon, 19 Oct 2009 12:13:53 -0000 reporter: Martin Pitt (pitti) importance: High assignee: Martin Pitt (pitti) milestone: ubuntu-9.10 Content-Type: multipart/mixed; boundary="===============8070346682924628210==" MIME-Version: 1.0 --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Binary package hint: gvfs On the 20091014.1 Desktop CD, all partitions are automounted. ProblemType: Bug Architecture: i386 Date: Wed Oct 14 20:32:38 2009 DistroRelease: Ubuntu 9.10 LiveMediaBuild: Ubuntu 9.10 "Karmic Koala" - Alpha i386 (20091014.1) Package: gvfs 1.4.0-0ubuntu3 ProcEnviron: LANG=3Den_US.UTF-8 SHELL=3D/bin/bash ProcVersionSignature: Ubuntu 2.6.31-14.46-generic SourcePackage: gvfs Uname: Linux 2.6.31-14-generic i686 --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Tormod Volden (tormodvolden) Date: Wed, 14 Oct 2009 20:34:11 -0000 Message-Id: <20091014203414.22223.13635.malone@palladium.canonical.com> --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Martin Pitt (pitti) Date: Wed, 14 Oct 2009 21:05:34 -0000 Message-Id: <20091014210535.23493.99727.malone@gangotri.canonical.com> Hm, I cannot reproduce this on the current live CD. I have two HD partitions there, and neither is mounted automatically. Just when I browse them in nautilus and click on them they get mounted (without an authorization dialog, since the ubuntu user is an admin and has no password). Can you please submit the output of "mount" and "gvfs-mount -li" right after booting the live system? I get can_mount=3D1 should_automount=3D0 for the internal hd partitions. --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Tormod Volden (tormodvolden) Date: Wed, 14 Oct 2009 21:22:37 -0000 Message-Id: <20091014212237.7831.33361.malone@potassium.ubuntu.com> Too late, I have rebooted :) I will check tomorrow. --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Tormod Volden (tormodvolden) Date: Wed, 14 Oct 2009 22:12:15 -0000 Message-Id: <20091014221216.23493.2572.malone@gangotri.canonical.com> Ah with the freeze tomorrow, one last effort :) --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Tormod Volden (tormodvolden) Date: Wed, 14 Oct 2009 22:12:56 -0000 Message-Id: <20091014221256.23493.3014.malone@gangotri.canonical.com> --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Martin Pitt (pitti) Date: Wed, 14 Oct 2009 22:57:01 -0000 Message-Id: <20091014225701.23493.34741.malone@gangotri.canonical.com> So, let's first confirm that it is nautilus, and not something else. Please boot the live CD, unmount all the partitions, then log out and back in in gdm with the "xterm" session. Run "metacity &" to get a WM, and perhaps "gnome-terminal" to get a multi-tab terminal. Run "gnome-mount -oi" in one terminal, and then first check in another if you get any automounts (then it'd be gvfs, but I don't quite believe that). Then start nautilus, and check again if that mounted your drives. After that, please copy&paste the "gnome-mount -oi" output (just in case; I figure it will just show that the partitions where mounted, but let's see). Thanks! --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Martin Pitt (pitti) Date: Thu, 15 Oct 2009 11:05:35 -0000 Message-Id: <20091015110535.23321.2653.malone@gangotri.canonical.com> Ah, I can reproduce this on my wife's computer, but not in kvm. How odd. --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Martin Pitt (pitti) Date: Thu, 15 Oct 2009 11:58:27 -0000 Message-Id: <20091015115827.23646.99322.malone@palladium.canonical.com> So it seems to happen if gvfs-gdu-volume-monitor starts up and triggers dk-disks to start. --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Martin Pitt (pitti) Date: Thu, 15 Oct 2009 19:34:00 -0000 Message-Id: <20091015193401.24785.57362.malone@gandwana.canonical.com> I'm going to mark this RC, since this has the potential of damaging file systems (hibernated ones, changing fsck timestamps, etc.), and the live system isn't supposed to touch your existing system. --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Martin Pitt (pitti) Date: Mon, 19 Oct 2009 11:13:29 -0000 Message-Id: <20091019111329.27658.52386.malone@gangotri.canonical.com> Ah, I figured out why it only happens sometimes. gdu monitor's update_volume() sets automount flag to TRUE in general. However, it is set to FALSE if the media detection time is older than the "new volume" detection by 5 seconds or more. Thus if dk-disks was already running, starting gvfs will usually set automount to FALSE since the difference will be more than 5 seconds. The rationale is: /* If a volume (partition) appear _much later_ than when media was in= sertion it * can only be because the media was repartitioned. We don't want to = automount * such volumes. */ But if gvfs-gdu-volume-monitor triggers dk-disks startup, the "last media detection" time will be almost equal to "new volume", and automount will be TRUE. I think we should generally disable automounting for system internal drives. --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Launchpad Janitor (janitor) Date: Mon, 19 Oct 2009 12:13:51 -0000 Message-Id: <20091019121354.23031.85288.malone@cocoplum.canonical.com> This bug was fixed in the package gvfs - 1.4.0-0ubuntu6 --------------- gvfs (1.4.0-0ubuntu6) karmic; urgency=3Dlow * Add 04_dont_automount_internal_partitions.patch: Disable automounting f= or internal partitions. This avoids automounting them on the live system. This does not change behaviour in installed system, since internal partitions require polkit authorization, and those do not get automount= ed. (LP: #451613) -- Martin Pitt Mon, 19 Oct 2009 13:54:30 +0200 --===============8070346682924628210== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Author: Yuan Chao (yuanchao) Date: Tue, 27 Nov 2012 19:43:16 -0000 Message-Id: <20121127194316.1665.20941.malone@soybean.canonical.com> On 12.10, the live session also mounts all my harddisk partitions. (disk icons show up on the unity left panel) As the ext4 partitions are still mounted in a hibernated session, the mounting caused file system error after resuming and failed to boot. (recover mode fails too) I would suggest that this kind of behavior in live session should be done in read only mode if it's really needed. Same for hibernated windows partitions. --===============8070346682924628210==--