Comment 3 for bug 1093901

Revision history for this message
Jan Cejka (jan-cejka) wrote :

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.