SD card goes attached to Dom0 rather than sys-usb

480 views
Skip to first unread message

Franz

unread,
Jun 8, 2016, 11:21:51 AM6/8/16
to qubes...@googlegroups.com
Hello,

I noted that when I insert a SD card into the corresponding slot of my Lenovo x230, it is automatically attached to Dom0 rather then sys-usb (default configuration). Well I use the SD card only for my Nikon camera and I have no reason to trust Nikon less then Lenovo, so no problem for me, but wonder if this is expected behaviour.

Best
Fran

Andrew David Wong

unread,
Jun 8, 2016, 11:36:52 AM6/8/16
to Franz, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
It's probably that the associated hardware device is not assigned to
any domU (e.g., your USB qube, if you use one). On my ThinkPad, the
device is labeled "PCI Express Card Reader." Assigning it to my USB
qube results in any inserted SD card showing up in the USB qube.

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXWDuJAAoJENtN07w5UDAwWvgP/1E9KJAJnMDxBvzqt1qekVSm
srxBKOiP3oa14BQ58cW+w9DQq13XliumXfv/CdEHUM8+aVsQ52xKAn7u5VUFHk8V
SWB3+z/p+cVWL3hg6SpzT6r/SVCF6bYXAI921tQkK2//BajFahv8A/uKgkyBnu5+
gHSefo+8qHd9RSzDffDz1Z7/PA9TNbnV1JS5QBhwiDTtFU20vNMe1m3zpJT3c6mu
aMlmQPb3u6wim1Udmua061MmnYxHrc8xHSLibOI6UMlpcMDuGLA04XDJMClt6yOy
d8oIP3Sl/+OQeiUlpwE/aubifXMNUdOYgXg/oA1j8aoD3gX3wSRiivfmQBX4Wt+c
De0EW7eNhDnBBkoam0Jwfpx3t/Uw5z2x/qIJUvywaG2fKU5ZyvS+UL2FzAcoQVtU
aLBkevWF29nros2xDm6KGIGJ1zRtCFpgBr0PGkorM0g6YaLEbYH44QdQw0Y/4oZx
CWbjc3PbsZnc//BIBK7VifT2HUWGR687uRSjOGSi9yH6XIiPzAbBkwri+0B9EC9d
omGHkPC/8Z6h1zJRQaNh1X3WHJa+wmnaHD947hBgIo1uLuiwZo9tsHbO/JmXsmx6
+Uv0hf+x4q2fAmWdv27hqRfvpVXegh5askjEOwALoJtSj2cUBAGzzrw03MJkbMse
DSy00c7n0GplC34sJrrV
=gX2g
-----END PGP SIGNATURE-----

Andrew David Wong

unread,
Jun 8, 2016, 11:44:20 AM6/8/16
to Franz, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 2016-06-08 08:36, Andrew David Wong wrote:
> On 2016-06-08 08:21, Franz wrote:
>> Hello,
>
>> I noted that when I insert a SD card into the corresponding slot
>> of my Lenovo x230, it is automatically attached to Dom0 rather
>> then sys-usb (default configuration). Well I use the SD card only
>> for my Nikon camera and I have no reason to trust Nikon less then
>> Lenovo, so no problem for me, but wonder if this is expected
>> behaviour.
>
>> Best Fran
>
>
> It's probably that the associated hardware device is not assigned
> to any domU (e.g., your USB qube, if you use one). On my ThinkPad,
> the device is labeled "PCI Express Card Reader." Assigning it to my
> USB qube results in any inserted SD card showing up in the USB
> qube.
>

Issue for implementing an option to have this performed for the user
when the USB qube is first created:

https://github.com/QubesOS/qubes-issues/issues/2055

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXWD1JAAoJENtN07w5UDAwa0YP/Rdb0qlMttyudH+VjExiibgX
wf1RsNHeqeO2gG2lne18ejXE1E+KvIWFKROJYoKwLxspLH12VAkUVhgpcV2j0z4b
LYF8T/AFBSOryFiI6Yv2s63pFocNrOesAfG3PRwXttBHbouH5RZ0EIxPfkwwvpFd
XTYvPL2k9oDrWeXVOxBQOtkzgjZMQjoI96p6wJBFh8SQYbxI2L5YFklkl12wb3ng
8/6a6pIAMdOgQvtOv8GqF4u2f1yjaZRiCvzpBA8/ihbt9rlZFMxk8hr0yMYxboSQ
ROQDshLfHGvc4A7xJh8MEQawP4Fh8P0nWHfesTch/p16QJW5d3yfQbU/Svh/PwfN
tcQYTsBXgSVGMVUYNUZrV2jUCkFV7mkcxgkOO+PBxh212zYdrbrsH352XRzcfG6z
2DI3fFtyfAQSR5Fvlv6/g+dzI5sGipqktikMfW7wnEnXEbKHIf7P+Wsm1naHw6Ii
8LQ4sRkEb0VKcnWdcMuiXO2eRAvd88PSHF//dtBFNoUXcqNlhvQJiXE0JSS6OUGT
B6dm8fk7OsUhvBXuPPzLEXeNqv42M2UETlWEMW6r26LxX9souA7bcqEEr8q/2xaF
IIS1OZvxcEUUCFUQQTFOZpXKcwDFNcRCuHKPiO1JmlL6huRfvRhc43JLdro7TyN4
bmMcIM90BXvFI9VDCAbN
=5x7p
-----END PGP SIGNATURE-----

Marek Marczykowski-Górecki

unread,
Jun 8, 2016, 6:33:55 PM6/8/16
to Andrew David Wong, Franz, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wed, Jun 08, 2016 at 08:44:11AM -0700, Andrew David Wong wrote:
> On 2016-06-08 08:36, Andrew David Wong wrote:
> > On 2016-06-08 08:21, Franz wrote:
> >> Hello,
> >
> >> I noted that when I insert a SD card into the corresponding slot
> >> of my Lenovo x230, it is automatically attached to Dom0 rather
> >> then sys-usb (default configuration). Well I use the SD card only
> >> for my Nikon camera and I have no reason to trust Nikon less then
> >> Lenovo, so no problem for me, but wonder if this is expected
> >> behaviour.
> >
> >> Best Fran
> >
> >
> > It's probably that the associated hardware device is not assigned
> > to any domU (e.g., your USB qube, if you use one). On my ThinkPad,
> > the device is labeled "PCI Express Card Reader." Assigning it to my
> > USB qube results in any inserted SD card showing up in the USB
> > qube.
> >
>
> Issue for implementing an option to have this performed for the user
> when the USB qube is first created:
>
> https://github.com/QubesOS/qubes-issues/issues/2055

Indeed may be a good idea. On the other hand, I remember that for some
Realtek devices it is impossible to attach the card reader to a
different VM than the (somehow bundled?) network card.

I guess it doesn't apply to your model, could you provide more details?
Also worth collecting info on problematic models to set appropriate
default depending on the hardware.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXWJ1KAAoJENuP0xzK19csPYcH/3jbEvJoLE8Rnc61sAmslpol
DIfXZzTfNt4Ag6bDyOS6zRCzSGiaeCRO+c6K+PLllhq8/dVGhlMIVMute/BfFUDh
6i/N4kSkefG/53Xm/Q7DhGaJTvMlkBmOF4yLI1MTe/RMdRzGscn2nDhaX+7tJejD
vClwZJumFyxPDylvEb42guAtdzJH2l9IcuGeHZGZgjJlwwxOeLi76OBnF4/lryMe
B8Tf42MDyPoyico7TUfg3jN2fSDxjRm4i/+C1LFA58zW5iziOtjTP2U/so//m4Ed
4+XPov7amb3fmXUUst9+zTAL1e00293hOaabtPyoftRV+MwLDAF0fOXM1VFQ9TA=
=pSCz
-----END PGP SIGNATURE-----

Franz

unread,
Jun 9, 2016, 3:58:22 AM6/9/16
to Marek Marczykowski-Górecki, Andrew David Wong, qubes...@googlegroups.com
Not sure if I understand your question, but my SD cards are SanDisk Extreme 32 and 16 G

When I insert it in the slot an alert appears telling that it is attached to Dom0

if I digit lspci in dom0 nothing changes before and after inserting the SD card (so not sure how to follow Andrew suggestion)
If I digit lsusb in dom0  it gives: unable to initialize libusb: -99

ls /dev  shows addition devices mmcblk0 and mmcblk0p1, if I attach the first one to a VM using Qubes Manager, it works perfectly. Well it works now, years ago it did not.

Best
Fran

Marek Marczykowski-Górecki

unread,
Jun 9, 2016, 4:47:09 AM6/9/16
to Franz, Andrew David Wong, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I had card reader details in mind, not cards itself.

> When I insert it in the slot an alert appears telling that it is attached
> to Dom0
>
> if I digit lspci in dom0 nothing changes before and after inserting the SD
> card (so not sure how to follow Andrew suggestion)
> If I digit lsusb in dom0 it gives: unable to initialize libusb: -99
>
> ls /dev shows addition devices mmcblk0 and mmcblk0p1, if I attach the
> first one to a VM using Qubes Manager, it works perfectly. Well it works
> now, years ago it did not.

Take a look at kernel messages - you should have some hint about the
reader there.

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXWS0EAAoJENuP0xzK19cseAIH/3Y9RsBKl8t3JLtdovPxmKWP
RP+fC6JsKrkTjnCmMolYm4FTJ/ZlGzS3skZPSRDBkStgXYmIUKltt4ASz6GRv2ge
bVCt5np9V+Ad7vr+fCHEjqHhSrJQ1Km9By9dz/1QxJYIQUXtFihd4/MWyUm6AvJv
dd+nPd/Mb4XjUfy9PR+r3gM6ACczhKQEBKlMOkF5YH9d5Alf7i4om3oM7CgIsT7/
IHRxs7n+kri4hV+D5KA+uqL+a6b5uHchyi1TiBer0Q8Njd3/mCkpW8WWN56T1kLB
CntMiptl/FDuoAW/qRy14+N2QFlYstzwWrMeinlnc8E7Qk2T80R7GrHE5gt0Up8=
=wcyh
-----END PGP SIGNATURE-----

Andrew David Wong

unread,
Jun 9, 2016, 6:16:52 AM6/9/16
to Marek Marczykowski-Górecki, Franz, qubes...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Marek has already seen this, but for anyone else reading this, the
device lspci details are provided here:

https://github.com/QubesOS/qubes-issues/issues/2055#issuecomment-
224846969

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXWUIJAAoJENtN07w5UDAwz/AQALg/TveWtfuT9KD5P/VczsWW
Ov2fR0TPvXcSagJHDSItH5HHXnCSaATLP7Dgb2cygQ7nmpLqOXqH3TfiIQAK6M1P
UPjC3u/3vYh79suoZ9lNshrTp95J9D5bWPpyIXHOpjNLuDgHdDAU/jYn3n5oIIXM
o3atNdYf3bzVx2pJ2UCKN3UtarO75o6hUevl4NB0QIz1xc+PMBU0p/U69/caPlkk
Jcm5EtboPBYmy83hOIohOsyiVm2lza5B3ZY72kOeshi3twSTIlOykPr2LjchSXGA
XMWJnj7LE5I1AFw+SRpXYYclmKp8KuoOcMJe43wI+qzfbD8sllt7Y6KCZsdGsXww
Wuf+Y8UIiRlPM6kEo+Mi0FvUM3RTle6knEZel2v+LNAE6+bidl0w71w+4SOF/sfN
IT6Z1XzdZ1Vy1hkunMxSXRLy+MYfaQzvJlCDXsIDHdph2S1xjg3/pEIE/6bB9u5u
/N+9VCLt8vHsdj6TtPEDwSV9cIDB+ABJ+Xa4zFl9pQ5o+kWmEXadVOxx44xgKHM6
JkTvKtNbQLrWZDch0brx16Fa+GhUvkAGmxczu6/gDokognuEVFpEBFcLo7ya4bQP
tD4vczLbodVkg+8DTON0620CKvL7DzDTVnWV0asHOP/hGgHGT2Pg+75ip1uirSNc
0cX7M8mh9KWz11k3OMVt
=Sfnr
-----END PGP SIGNATURE-----

Franz

unread,
Jun 9, 2016, 10:41:16 AM6/9/16
to Marek Marczykowski-Górecki, Andrew David Wong, qubes...@googlegroups.com
dmesg:

[165374.133574] xen-blkback: ring-ref 10, event-channel 11, protocol 1 (x86_64-abi) persistent grants
[165374.211106] xen-blkback: ring-ref 11, event-channel 12, protocol 1 (x86_64-abi) persistent grants
[165931.292131] mmc0: new high speed SDHC card at address aaaa
[165931.323942] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[165931.326278]  mmcblk0: p1
[165932.478396] mmc0: card aaaa removed
[165934.677370] mmc0: new high speed SDHC card at address aaaa
[165934.677708] mmcblk0: mmc0:aaaa SD32G 29.7 GiB
[165934.680518]  mmcblk0: p1
[165987.993391] xen-blkback: ring-ref 4855, event-channel 49, protocol 1 (x86_64-abi) persistent grants
[170771.103298] mmc0: card aaaa removed
[170818.395315] mmc0: new high speed SDHC card at address aaaa
[170818.395698] mmcblk0: mmc0:aaaa SD16G 14.8 GiB
[170818.397933]  mmcblk0: p1
[170818.900536] mmc0: card aaaa removed
[170821.580970] mmc0: new high speed SDHC card at address aaaa
[170821.581707] mmcblk0: mmc0:aaaa SD16G 14.8 GiB
[170821.585080]  mmcblk0: p1
[171136.265353] xen-blkback: ring-ref 4855, event-channel 49, protocol 1 (x86_64-abi) persistent grants
 
Reply all
Reply to author
Forward
0 new messages