Bug 364476

Summary: partitionmanager can't identify iso9660 partition
Product: [Applications] partitionmanager Reporter: skierpage <info>
Component: generalAssignee: Andrius Štikonas <andrius>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: LO    
Version First Reported In: 1.2.1   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description skierpage 2016-06-18 23:02:19 UTC
I'm running KDE Frameworks 5.22.0 & QT 5.5.1 from the KDE backport PPA on Kubuntu 16.04.

I inserted a SanDisk USB flash drive I had partitioned a few years ago in Ubuntu and mounted its partitions from the plasma panel's Device Notifier, which showed one as "Ubuntu 14.04 LTS amd64".

Then I ran KDE Partition Manager and clicked on the SanDisk Ultra. It showed up as /dev/sdg, with /dev/sdg1's type as "unknown"

But /etc/mtab displays the partition as 
   /dev/sdg1 /media/skierpage/Ubuntu\04014.04\040LTS\040amd64 iso9660 ro,nosuid,nodev,relatime,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500 0 0

and `df -T` agrees it's an iso9660 file system. This isn't an obscure file system, so it would be nice if partitionmanager knew about it.

Reproducible: Always

Steps to Reproduce:
1. Create an iso9661 partition on a USB, probably by dd-ing an CD-ROM image
2. Insert the USB flash drive
3. Open it in KDE Partition Manager

Actual Results:  
partitionmanager displays Type as "unknown".

Expected Results:  
/etc/mtab and `df -t`knows it's an iso9661 partition, so should partitionmanager.

Although partitionmanager doesn't know the type, it can tell that (in my case) 964.00 MiB are Used, so it is using some API to get information about the partition.

Its Log Output includes
"Using backend plugin: pmlibpartedbackendplugin (1)"
so maybe the problem lies in that. I have libparted2 Version: 3.2-15 installed.
Comment 1 Andrius Štikonas 2016-06-18 23:17:40 UTC
Changing to wishlist.

Detection support might be nice but I don't think anything else would be possible (e.g. resize). Looks like Gparted also doesn't support it.
Comment 2 Andrius Štikonas 2017-09-08 10:42:56 UTC
Git commit 5a83e741cb1af5e2a8130dd7b539de3b1fd8296b by Andrius Štikonas.
Committed on 08/09/2017 at 10:42.
Pushed by stikonas into branch 'master'.

Add support for detecting ISO9660 file systems.

M  +2    -0    src/fs/CMakeLists.txt
M  +3    -1    src/fs/filesystem.cpp
M  +2    -1    src/fs/filesystem.h
M  +3    -0    src/fs/filesystemfactory.cpp
A  +28   -0    src/fs/iso9660.cpp     [License: GPL (v3+)]
A  +43   -0    src/fs/iso9660.h     [License: GPL (v3+)]
M  +1    -0    src/plugins/libparted/libpartedbackend.cpp
M  +2    -1    src/plugins/libparted/libpartedpartitiontable.cpp

https://commits.kde.org/kpmcore/5a83e741cb1af5e2a8130dd7b539de3b1fd8296b