Attach block cards

29 views
Skip to first unread message

Franz

unread,
Jul 29, 2012, 8:44:38 PM7/29/12
to qubes...@googlegroups.com
These are cards used in most common Photo cameras, like SD cards.  This never worked with Qubes, but alway worked with old  Ubuntus on the same notebook. So wanted to try again with RC1.

There are to ways to use these cards. One is with the card reader incorporated into the notebook. When I insert a card in the incorporated card reader Qubes does not seem to recongnize it and calling qvm-block -l nothing changes with the insertion of the card. So it seems there is nothing new with the incorporated card reader.

The second way is an external USB 2.0 card reader. Here something new happens:

[f@dom0 ~]$ qvm-block -l
dom0:sde        STORAGE_DEVICE () 0 B
dom0:sdd        STORAGE_DEVICE () 0 B
dom0:sdg        STORAGE_DEVICE () 0 B
dom0:sdf        STORAGE_DEVICE () 14 GiB
dom0:sdc        My_Passport_0730 () 931 GiB
dom0:sdc1       My_Passport_0730 (1tera) 931 GiB
dom0:sdf1       STORAGE_DEVICE (NIKON_D7000) 14 GiB

The card is sdf-sdf1. So it is recognized. Trying to attach sdf I get:

[f@dom0 ~]$ qvm-block -a personal dom0:sdf
Traceback (most recent call last):
  File "/usr/bin/qvm-block", line 147, in <module>
    main()
  File "/usr/bin/qvm-block", line 107, in main
    block_attach(vm, backend_vm, dev['device'], **kwargs)
  File "/usr/lib64/python2.6/site-packages/qubes/qubesutils.py", line 346, in block_attach
    raise QubesException("Error while connecting block device: " + error)
TypeError: cannot concatenate 'str' and 'NoneType' objects

So there are errors. Trying to attach sdf1 I get the same errors:

[f@dom0 ~]$ qvm-block -a personal dom0:sdf1
Traceback (most recent call last):
  File "/usr/bin/qvm-block", line 147, in <module>
    main()
  File "/usr/bin/qvm-block", line 107, in main
    block_attach(vm, backend_vm, dev['device'], **kwargs)
  File "/usr/lib64/python2.6/site-packages/qubes/qubesutils.py", line 346, in block_attach
    raise QubesException("Error while connecting block device: " + error)
TypeError: cannot concatenate 'str' and 'NoneType' objects

Best
Franz

Marek Marczykowski

unread,
Jul 30, 2012, 2:35:49 PM7/30/12
to qubes...@googlegroups.com, Franz
Actually above error is a bug in error handler...
In /usr/lib64/python2.6/site-packages/qubes/qubesutils.py in line 345 is:
if error is None:
should be:
if error is not None:

This will be fixed in the next qubes-core-dom0 package version, but for now
you can change it manually to have proper error message. Some details can be
also found in /var/log/xen/xen-hotplug.log.

--
Best Regards / Pozdrawiam,
Marek Marczykowski
Invisible Things Lab

signature.asc
Reply all
Reply to author
Forward
0 new messages