Bug 37202

Summary: Document mount behaviour
Product: Z_Univention Corporate Client (UCC) Reporter: Moritz Muehlenhoff <jmm>
Component: DocumentationAssignee: Moritz Muehlenhoff <jmm>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: normal    
Priority: P5 CC: grandjean, jmm
Version: UCC 2.0   
Target Milestone: UCC 2.0-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:
Bug Depends on: 36717    
Bug Blocks:    

Description Moritz Muehlenhoff univentionstaff 2014-12-05 12:32:14 CET
+++ This bug was initially created as a clone of Bug #36717 +++

This also applies to UCC 2.0

+++ This bug was initially created as a clone of Bug #36716 +++

When plugging in a USB pendrive the partitions are mounted to /run/drives and then shown in drive Z: in the remote session:

> root@ucc-veriton:~# ls -l /run/drives/
> insgesamt 4
> drwxr-xr-x 2 root root   40 Nov 14 16:27 usbdisk-sdb
> drwxrwxrwx 1 root root 4096 Nov 14 16:27 usbdisk-sdb1

If one unplugs the USB pendrive, sdb1 is removed, but sdb is not:

root@ucc-veriton:~# ls -l /run/drives/
insgesamt 0
drwxr-xr-x 2 root root 40 Nov 14 16:27 usbdisk-sdb

Thus, sdb is also still visible in the remote session, although the pendrive is not available anymore (see attached screenshot).

I don't see the necessity to mount sdb in the first place: it's always empty and the needed data partitions are always followed by a digit (e.g. sdb1). 

For a customer I adapted the blacklisting for ram and loop devices to also blacklist exact matches of 'sda', 'sdb', 'sdc' ... (Ticket#2014110321000159)

I have seen this in Citrix XenApp sessions where sdb doesn't seem to disappear at all and in RDP sessions, where sdb disappeared after a couple if minutes. 
I used at least two different USB pen drives and different combinations of fat32, ntfs, formatted with gparted and formatted with windows.
Comment 1 Moritz Muehlenhoff univentionstaff 2014-12-05 12:32:58 CET
This should be mentioned in the manual.
Comment 2 Moritz Muehlenhoff univentionstaff 2014-12-09 11:08:06 CET
Documented in revision 56573
Comment 3 Erik Damrose univentionstaff 2014-12-10 09:48:23 CET
The new paragraph is -> Verified