X2Go Bug report logs - #398
Automounter only mounts first partition of USB media (at least in certain cases)

version graph

Package: x2gousbmount; Maintainer for x2gousbmount is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2gousbmount is src:x2gothinclient.

Reported by: Stefan Baur <newsgroups.mail2@stefanbaur.de>

Date: Fri, 10 Jan 2014 13:25:02 UTC

Severity: normal

Found in version 1.1.0.2-0x2go2~git20131217.483+wheezy.heuler.1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.berlios.de, owner@bugs.x2go.org:
Bug#398; Package x2gousbmount. (Fri, 10 Jan 2014 13:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Baur <newsgroups.mail2@stefanbaur.de>:
New Bug report received and forwarded. Copy sent to owner@bugs.x2go.org. (Fri, 10 Jan 2014 13:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.x2go.org (full text, mbox):

From: Stefan Baur <newsgroups.mail2@stefanbaur.de>
To: submit@bugs.x2go.org
Subject: Automounter only mounts first partition of USB media (at least in certain cases)
Date: Fri, 10 Jan 2014 14:23:34 +0100
package: x2gousbmount
severity: normal
version: 1.1.0.2-0x2go2~git20131217.483+wheezy.heuler.1

Hi, I have a USB device with several partitions.

It's being detected by the automounter and shows up under /media like so:

ls -lah /media/USB2.0_Mobile_Disk/
total 16K
drwxr-xr-x 5 root           root 100 Jan 10 12:16 .
drwxr-xr-x 4 root           root  80 Jan 10 12:16 ..
drwxr-xr-x 2 root           root  40 Jan 10 12:16 sdb
drwxr-xr-x 4 x2gothinclient root 16K Jan  1  1970 sdb1
drwxr-xr-x 2 root           root  40 Jan 10 12:16 sdb2

As you can already see from the ownership tag, only sdb1 is actually 
mounted.

file -s /dev/sdb1:
/dev/sdb1: sticky x86 boot sector, mkdosfs boot message display, code 
offset 0x3c, OEM-ID " mkdosfs", sectors/cluster 16, root entries 512, 
Media descriptor 0xf8, sectors/FAT 208, heads 17, sectors 802816 
(volumes > 32 MB) , serial number 0x90e07535, label: "           ", FAT 
(16 bit)

I have to admit that the content of sdb2 is a bit unusual - it's an 
ISO9660 filesystem like the one you usually find on a CD.
file -s /dev/sdb2:
/dev/sdb2: sticky # ISO 9660 CD-ROM filesystem data 'Debian wheezy 
20131213-23:56    '

Still, it's perfectly possible to mount it manually:
mount /dev/sdb2 /media/USB2.0_Mobile_Disk/sdb2:
mount: block device /dev/sdb2 is write-protected, mounting read-only

mount
[...]
/dev/sdb1 on /media/USB2.0_Mobile_Disk/sdb1 type vfat 
(ro,relatime,sync,uid=104,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,shortname=mixed,uni_xlate,errors=remount-ro)
/dev/sdb2 on /media/USB2.0_Mobile_Disk/sdb2 type iso9660 (ro,relatime)

So this should be supported by the automounter as well.

Note: I haven't tried what happens when you insert USB media with 
several "regulary formatted" (FAT, ext_, ...) partitions, so I don't 
know if the automounter is limited to mounting the first partition in 
general, or if it is simply confused by the fact that this particular 
USB medium contains an ISO9660-formatted partition.

-Stefan


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Wed Dec 12 02:52:34 2018; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.