Bug 1054629 - Dolphin error mount external drive, inappropriate device information used (?udev problem)
Summary: Dolphin error mount external drive, inappropriate device information used (?u...
Status: RESOLVED DUPLICATE of bug 1046268
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: KDE Applications (show other bugs)
Version: Leap 42.2
Hardware: x86-64 openSUSE 42.2
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-Mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-20 12:24 UTC by Forgotten User XWo4TAePVm
Modified: 2017-08-23 09:56 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forgotten User XWo4TAePVm 2017-08-20 12:24:36 UTC
Hi,

I had a drive with the following settings:

lsblk --output NAME,KNAME,FSTYPE,LABEL,UUID,SIZE
NAME   KNAME FSTYPE LABEL                  UUID                                   SIZE
sda    sda   udf    UDF-Externe-Festplatte 589edd3fLinuxUDF                     931,5G
├─sda1 sda1  ntfs   NTFS1000MB             6D1B61A41DAB9E71                      1000M
└─sda2 sda2  ext4   Linux-Externe-FP       c8442952-f42a-4e91-baf6-6957e30e345c 930,5G

In Dolphin it got mounted the wrong way: by clicking and mounting /dev/sda2, the corresponding mount command used instead the parent device information (i.e udf not ext4) an caused an error:

Error mounting /dev/sda2 at /run/media/andreas/UDF-Externe-Festplatte: Command-line `mount -t "udf" -o "uhelper=udisks2,nodev,nosuid,uid=0,gid=0,iocharset=utf8" "/dev/sda2"  "/run/media/andreas/UDF-Externe-Festplatte"' exited with non-zero exit  status 32: mount: wrong system filetype […]

The mount command (whatever put this together) should use the *actual* partition information and not the parent one. 

Trying « mount /dev/sda2 /run/media » works just fine, but the compositing of the command above needs to be revisited, I guess somewhere in the udev framework.

On https://forums.opensuse.org/showthread.php/526602-automount-USB-external-drive-Error-mounting-dev-sda2-(wrong-filtype-udf-vs-ext4)-udev-problem we fixed it by backup data, erasing the drive with command 

dd if=/dev/zero of=/dev/sda  bs=4096 count=8

… and partitioned it anew with gparted (previously it had some UDF history that got not erased but now its properly set due to the dd step).
Comment 1 Wolfgang Bauer 2017-08-23 09:56:26 UTC
Unlikely to be a KDE problem though, as it only uses udisks2 for that.

I rather think this is a duplicate of bug 1046268.

*** This bug has been marked as a duplicate of bug 1046268 ***