Can't mount removable devices

Yesterday something happened. I was configuring a HUION tablet, as described here and when i finally was working I realized I could not mount any removable device: usb or CD… the error is the same, with a 14.9 GB pendrive, trying to mount it with dolphin:


 An error occurred while accessing '14,9 GiB Removable Media', the system responded: An unspecified error has occurred: Adding read ACL for uid 1001 to `/run/media/fernando' failed: Invalid argument


The device is detected fine


2016-10-28T08:26:52.092805+02:00 andromeda kernel:   912.104296] scsi 7:0:0:0: Direct-Access     SanDisk  Extreme          0001 PQ: 0 ANSI: 6
2016-10-28T08:26:52.094521+02:00 andromeda kernel:   912.106037] sd 7:0:0:0: Attached scsi generic sg3 type 0
2016-10-28T08:26:52.098427+02:00 andromeda kernel:   912.109989] sd 7:0:0:0: [sdc] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB)
2016-10-28T08:26:52.100467+02:00 andromeda kernel:   912.112261] sd 7:0:0:0: [sdc] Write Protect is off
2016-10-28T08:26:52.100486+02:00 andromeda kernel:   912.112268] sd 7:0:0:0: [sdc] Mode Sense: 53 00 00 08
2016-10-28T08:26:52.101409+02:00 andromeda kernel:   912.113384] sd 7:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
2016-10-28T08:26:52.108448+02:00 andromeda kernel:   912.119561]  sdc: sdc1
2016-10-28T08:26:52.112450+02:00 andromeda kernel:   912.123613] sd 7:0:0:0: [sdc] Attached SCSI removable disk
2016-10-28T08:28:40.345303+02:00 andromeda su: (to root) fernando on pts/1



I think when rebooting the system while while configuring the tablet it was an automatic kernel update. The directory /run/media is empty and it seems the kernel dos not create /run/media/fernando when I insert the usb

creating manually the directory seems to solve the problem for my personal user, but I guess it should be done automatically by the system.


andromeda:/home/fernando # mkdir /run/media/fernando
andromeda:/home/fernando # ls /run/media -l
total 0
drwxr-xr-x 3 root root 60 Oct 28 08:35 fernando
andromeda:/home/fernando # 

May be some rights problem?

regards

Did you install the 13.2 Kernel update which was published earlier this week?

  • “openSUSE-2016-256 - Security update for the Linux Kernel” from So 23 Oct 2016 22:03:42 CEST.

Please show us which kernel version you are using:


 > uname -a
Linux eck001 3.16.7-45-desktop #1 SMP PREEMPT Fri Oct 21 12:20:02 UTC 2016 (f3e3fc4) x86_64 x86_64 x86_64 GNU/Linux
 > 

If you installed the openSUSE-2016-256 patch then, it is possible that this Bug Report is relevant: <https://bugzilla.opensuse.org/show_bug.cgi?id=1007035>.


fernando@andromeda:~> uname -a
Linux andromeda 3.16.7-45-desktop #1 SMP PREEMPT Fri Oct 21 12:20:02 UTC 2016 (f3e3fc4) x86_64 x86_64 x86_64 GNU/Linux
fernando@andromeda:~> 


If you installed the openSUSE-2016-256 patch then, it is possible that this Bug Report is relevant: <1007035 – POSIX ACL support broken by kernel-desktop-3.16.7-45.

I have the system up to date. It’s the same kernel described in bugzilla, so I guess this is the cause. As I have done a temporary solution creating /run/media/fernando, I will wait for the fix in the next patch.

thanks

Use the previous kernel via the advanced option in grub boot menu

I believe a fixed kernel is available now so force an update in yast

would mean that user fernando has no rights to write in that folder …

Well indeed he has not, but booting with a previous kernel


fernando@andromeda:~> uname -a
Linux andromeda 3.16.7-42-desktop #1 SMP PREEMPT Tue Jun 28 12:20:57 UTC 2016 (35ab731) x86_64 x86_64 x86_64 GNU/Linux
fernando@andromeda:~> 

/run/media not even exists


andromeda:/home/fernando # ls /run/media            
ls: cannot access /run/media: No such file or directory
andromeda:/home/fernando #

But when I plug in a usb stick, it mounts ok with dolphin and then


andromeda:/home/fernando # ls /run/media -l
total 0
drwxr-x---+ 3 root root 60 Oct 29 00:41 fernando
andromeda:/home/fernando #

And user fernando does not have rights to write in /run/media, but the system has created /run/media/fernando


andromeda:/home/fernando # ls /run -l      
total 48
.............................................
drwxr-xr-x  3 root       root     60 Oct 29 00:41 media
.........................


So definitely is a bug.

I have done a zypper up but I am up to date and the bus is still not fixed
so booting with the old kernel or creating manually /var/run/fernando will fix the problem temporarily

regards

It’s created on-demand.
But when I plug in a usb stick, it mounts ok with dolphin and then

andromeda:/home/fernando # ls /run/media -l
total 0
drwxr-x—+ 3 root root 60 Oct 29 00:41 fernando
andromeda:/home/fernando #

Notice the ‘+’?
This means that there are additional ACLs (“access control lists”) applied that contain finer grained permissions on a user/group basis, and in this case give your user (and only that user) write access.
Run “getfacl /run/media/fernando” to see them.

So definitely is a bug.

Yes, the bug is that ACL support in the kernel is broken.

The fix should be in the update repo any minute now though.

Meanwhile it is.
So update and the problems should be gone.

Kernel updated, problem solved


fernando@andromeda:~> uname -a
Linux andromeda 3.16.7-48-desktop #1 SMP PREEMPT Wed Oct 26 18:09:22 UTC 2016 (8c027f6) x86_64 x86_64 x86_64 GNU/Linux