[Bug 1093901] Re: Does not automount hotplugged storage device - no USB, no CD/DVD

Jan Cejka jan.cejka at gmail.com
Sun Dec 30 22:14:35 UTC 2012


Solution - workaround that worked for me (no need to patch udisks).

Root cause of udisks problem is "bug" in partition table - nested
partition on extended partition. System is functional, however, udisks
reports wrong partition type because of this.

How you can find out if you are affected?
After running:
$ sudo fdisk -l /dev/sda
first line in otput is:
"omitting empty partition (5)" - message can be localized

If you have more hard disks, problematic disk is the one that gives
"ommitting empty partition (5)" error.

Workaround - how I solved the issue?
My disk with problem was /dev/sda

$ sudo fdisk /dev/sda

Now type these fdisk commands:
x - go to expert mode
f - fix partition order (I did not do this since I did not have problem with order of partitions, however this can also cause problems)
w - write partition table back to the disk and exit - fdisk writes partitions back to disk correctly without nested partition and complains because some partitions are used ;-) - this was my case

$ sudo partprobe

Last I did update of grub

$ sudo update-grub

and then cross your fingers and restart... ;-)

One more observation - Nautilus - I have the impression that before
fixing partition table I did not see in Nautilus any hdd partitions that
are not mounted (in Places or Devices or what is the name in english
version). These partitions were not visible even after applying
Mikhail's patch (when all the automount was working correctly for newly
inserted devices - new devices were visible in Nautilus). After fixing
partition table all is working correctly, non-mounted partitions are
visible in Nautilus and can be mounted by single click.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udisks in Ubuntu.
https://bugs.launchpad.net/bugs/1093901

Title:
  Does not automount hotplugged storage device - no USB, no CD/DVD

Status in “udisks” package in Ubuntu:
  Confirmed

Bug description:
  I have fresh install of Ubuntu Precise on new disk and automount
  doesn't work on any USB storage device nor on CD/DVD.

  The only possibility that "mounts" disk "automatically" is opening and
  closing usb-creator-gtk. Then disk is available (and mounted) in
  Nautilus. USB disk disappears from Nautilus after unmounting it using
  click to "open" button next to disk name in Nautilus. Using trick with
  usb-creator-gtk dosn't help everytime - e.g. Garmin Oregon 550
  normally connects as 2 USB disks - main device + inserted sd card.
  However, usb-creator-gtk mounts only sd card.

  I am able to mount disks manually.

  I had the same behaviour on the same computer with my old installation
  (originally Ubuntu 5.10 or 6.06 with regular upgrades to Precise) -
  originally everything was working properly, problem with automounting
  has appeared probably sometimes between July and September (I don't
  remember exactly since I have attributed this to me messing up somehow
  my installation).

  If you need any additional info, I can provide it from my current and
  also from old installation.

  Jan

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: gvfs 1.12.1-0ubuntu1.1
  ProcVersionSignature: Ubuntu 3.2.0-35.55-generic-pae 3.2.34
  Uname: Linux 3.2.0-35-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu15.1
  Architecture: i386
  Date: Wed Dec 26 22:45:43 2012
  GvfsMonitorError:
   (gvfs-mount:7200): GVFS-RemoteVolumeMonitor-WARNING **: invoking IsSupported() failed for remote volume monitor with dbus name org.gtk.Private.GduVolumeMonitor: org.freedesktop.DBus.Error.Spawn.ChildSignaled: Process /usr/lib/gvfs/gvfs-gdu-volume-monitor received signal 6
  GvfsMonitorLog: Monitoring events. Press Ctrl+C to quit.
  HotplugNewDevices: /dev/sdc /dev/sdc1
  HotplugNewMounts:
   
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.1)
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=cs_CZ.UTF-8
   SHELL=/bin/bash
  SourcePackage: gvfs
  Symptom: storage
  Title: Does not detect hotplugged storage device
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/1093901/+subscriptions




More information about the foundations-bugs mailing list