Bug 281289 - KDE doesn't read the label partition of a flash memory device without a partition table
Summary: KDE doesn't read the label partition of a flash memory device without a parti...
Status: RESOLVED FIXED
Alias: None
Product: solid
Classification: Unmaintained
Component: libsolid-udisks (show other bugs)
Version: 4.6.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: 4.11
Assignee: Lukáš Tinkl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-03 21:03 UTC by Francesco
Modified: 2014-03-16 23:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco 2011-09-03 21:03:37 UTC
Version:           1.6.1 (using KDE 4.6.5) 
OS:                Linux

KDE doesn't read the label partition of a flash memory device without a partition  table

When I insert/connect a newUSB flash memory device (without a partition table) KDE doesn't read correctly the partition label but show the device name

This happens with some ebook reader (for example Onyx Boox 60) 

KDE 4.3.x showed me the correct label name (or the dimension of the partition)

Reproducible: Always

Steps to Reproduce:
prepare ad-hoc the device:

for example a flash usb device pointed by /dev/sdd

mkfs.vfat -I -l A_casual_name /dev/sdd

connect the new device and see the name assigned by dolphin and/or the device-notifier of KDE


Actual Results:  
The showed name of the device is the name of the phisical device

Expected Results:  
The showed name of the device should be the label of the partition
Comment 1 Francesco 2011-09-09 20:04:08 UTC
Some additional info:

My ebook reader (Onyx Boox 60) have a storage capacity of about 300 MB, formatted as FAT32 and without a partition table (in this case the entire /dev/sdd) 

udisks detect the label of the FAT32 partition (it is "boox") but KDE shows me a disk labeled as "Linux File-Stor Gadget"


this is the output of the command 

udisks --monitor-detail

when I plug my ebook reader


added:     /org/freedesktop/UDisks/devices/sdd
Showing information for /org/freedesktop/UDisks/devices/sdd
  native-path:                 /sys/devices/pci0000:00/0000:00:16.2/usb3/3-2/3-2:1.0/host14/target14:0:0/14:0:0:0/block/sdd
  device:                      8:48
  device-file:                 /dev/sdd
    presentation:              /dev/sdd
    by-id:                     /dev/disk/by-id/usb-Linux_File-Stor_Gadget_372041756775-0:0
    by-id:                     /dev/disk/by-uuid/B873-47A7
    by-path:                   /dev/disk/by-path/pci-0000:00:16.2-usb-0:2:1.0-scsi-0:0:0:0
  detected at:                 ven 09 set 2011 21:23:28 CEST
  system internal:             0
  removable:                   1
  has media:                   1 (detected at ven 09 set 2011 21:23:28 CEST)
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        325058560
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        vfat
  version:                     FAT32
  uuid:                        B873-47A7
  label:                       boox
  drive:
    vendor:                    Linux
    model:                     File-Stor Gadget
    revision:                  0322
    serial:                    372041756775
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available
Comment 2 Alex Fiestas 2013-03-03 18:12:07 UTC
Is this still happening with 4.10?
Comment 3 Francesco 2013-03-03 20:53:45 UTC
Yes, still happens. I have tried with the latest unstable version of Kubuntu (Live distro, version alpha 2 with KDE 4.10) 

The disk is again labeled as "Linux File-Stor Gadget"
Comment 4 Alex Fiestas 2013-03-05 20:24:12 UTC
Ah wait, this is a known issues and there is a fix WIP:
http://www.afiestas.org/extra-mile-device-handling/

Will try to add it for 4.10.2
Comment 5 Francesco 2013-08-28 14:27:32 UTC
I'm using KDE 4.10.5 and the problem still exists. Hence I think the patch was not applied yet
Comment 6 Francesco 2014-03-16 23:03:33 UTC
on KDE 4.11.5 the problem seems solved