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

Full log


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

Received: (at submit) by bugs.x2go.org; 10 Jan 2014 13:21:39 +0000
From newsgroups.mail2@stefanbaur.de  Fri Jan 10 14:21:38 2014
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS
	autolearn=ham version=3.3.2
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171])
	by ymir (Postfix) with ESMTP id ADF105DB11
	for <submit@bugs.x2go.org>; Fri, 10 Jan 2014 14:21:38 +0100 (CET)
Received: from appserv1.stefanbaur.home (dslb-188-105-132-099.pools.arcor-ip.net [188.105.132.99])
	by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis)
	id 0LtjF3-1VI0BT1WIH-0115fZ; Fri, 10 Jan 2014 14:21:38 +0100
Message-ID: <52CFF456.4020504@stefanbaur.de>
Date: Fri, 10 Jan 2014 14:23:34 +0100
From: Stefan Baur <newsgroups.mail2@stefanbaur.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10
MIME-Version: 1.0
To: submit@bugs.x2go.org
Subject: Automounter only mounts first partition of USB media (at least in
 certain cases)
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Provags-ID: V02:K0:tRC/mXqJOh7pscmAmYBTsVvFGsLsQMu2kx//nlDcYmv
 tJYhLzm5TrV5fIG0UjP5RgPXNLfWC1xwbloAQvQtXAtcAxGyn/
 jpQmj+wWrLaQkHjfSkOln7QjW0f3qwN0W0+gqPtHp8I5ny4mAa
 W9UyOdGZ6WbntP0APq7RfpJcGq38GgWDlS5ZjXRD9eaxf+vp18
 fSkoEs+k2jUYnXXCf3ogAO0NsoD0n/LI4H2Zw4UAoorXZkFYIj
 lkAutzdfOIGaHdzRlsVePDRDiaHfiC1fWMmrcHfWy5xr0NcYoX
 lFf1C6c+g9AFPR2grvxcbMDXEeQTkm4UPlHGKmPAvuusu3zgio
 75z2Z9RMQC+9NXE51sG96mcG067ZpfpdlUr4cjubxuFul2rF0G
 p4lQ5llvF4NoA==
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: Thu Nov 21 14:24:05 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.