What is the path to the usb drive in sys-usb?

59 views
Skip to first unread message

oak...@gmail.com

unread,
Jul 8, 2019, 11:14:41 AM7/8/19
to qubes-users
Easy question, but I'm a noob: What is the path to the usb drive that is connecting through sys-usb? I am trying to get the usb to startup with a certain vm. Thanks.

brenda...@gmail.com

unread,
Jul 8, 2019, 3:55:08 PM7/8/19
to qubes-users
On Monday, July 8, 2019 at 11:14:41 AM UTC-4, oak...@gmail.com wrote:
> Easy question, but I'm a noob: What is the path to the usb drive that is connecting through sys-usb? I am trying to get the usb to startup with a certain vm. Thanks.

Since the VMs use /dev/xvd[a-d] as the operational drives, the entire /dev/sd_ list isn't used unless you attach a USB driver.

Therefore, your first USB drive will be dev/sda (/dev/sda1 for the first partition, etc.).

If you're feeling lazy like I do, try running gnome-disks and it'll show you.

Brendan

brenda...@gmail.com

unread,
Jul 8, 2019, 3:56:51 PM7/8/19
to qubes-users

Oops, my bad. In sys-usb it is /dev/sdX.

In the VM that you pulled it from sys-usb into, it's going to be "/dev/xvd[i-z]".

[a-d] are taken by the Qubes-owned LVs. [e,f,g,h] are skipped. [i-z] are available for storage pass through.

B

oak...@gmail.com

unread,
Jul 8, 2019, 4:31:03 PM7/8/19
to qubes-users

Ok, much thanks, last line is gibberish to me, but I think the path is all I need. Is Gnome-disks in the Settings somewhere?

oak...@gmail.com

unread,
Jul 8, 2019, 5:38:21 PM7/8/19
to qubes-users

I can't find a terminal for my Windows 7 Qube (maybe because it's a standalone vm, idk). In sys-usb terminal, I typed in "qvm-start win7new --hddisk sys-usb: /dev/sdk" and it said "bash: qvm-start: command not found."

oak...@gmail.com

unread,
Jul 8, 2019, 5:40:55 PM7/8/19
to qubes-users

Sorry, forgot to mention, I want the USB to show up in a Windows 7 VM, which is a Standalone VM.

awokd

unread,
Jul 8, 2019, 10:39:34 PM7/8/19
to qubes...@googlegroups.com
oak...@gmail.com:

> Sorry, forgot to mention, I want the USB to show up in a Windows 7 VM, which is a Standalone VM.
>
Don't know if you can attach a USB drive directly to a Win7 VM like
that. Think I tried it before and had problems. Have heard of people
passing through a USB controller and that working, but what I did
instead was transfer files via a LAN FTP server. Eventually I converted
nearly all my workflows to open-source instead, so haven't powered up
the Win7 VM in months.

brenda...@gmail.com

unread,
Jul 9, 2019, 5:54:08 AM7/9/19
to qubes-users
On my machine I have a sys-usb for only the usb 2.0 controller and a separately set up sys-usb-3 for the usb 3.0 controller.

I found the I/O performance of using qvm-usb ok for moving small amounts of data on and off the system. For heavier I/O, I ensure the sys-usb-3 VM is shut down and connect the USB 3.0 PCI device to the target VM in its Qubes Settings before starting the VM up. Effectively, that gives the VM native IO capability between the VM and the USB 3 device.

That should work for a Windows VM.

B

unman

unread,
Jul 9, 2019, 9:04:38 AM7/9/19
to qubes...@googlegroups.com
It's much easier to start the StandaloneVM with the drive attached:
qvm-start StandaloneVM --hddisk sys-usb:/dev/sda

That seems to match your requirement exactly.
(You can, of course, pass in a single partition rather than the whole
drive.)

oak...@gmail.com

unread,
Jul 9, 2019, 9:56:52 AM7/9/19
to qubes-users

It says "Failed to setup loop device for /dev/sda" when I type that in.

unman

unread,
Jul 9, 2019, 10:37:40 AM7/9/19
to qubes-users
What's the output of qvm-block ?
Message has been deleted

oak...@gmail.com

unread,
Jul 9, 2019, 10:43:59 AM7/9/19
to qubes-users
On Tuesday, July 9, 2019 at 10:43:02 AM UTC-4, oak...@gmail.com wrote:
> On Tuesday, July 9, 2019 at 9:04:38 AM UTC-4, unman wrote:
> YES, BABY - YEEAAAAGH! Ignore my last comment - it worked! drive showed up in Windows, copied files over. Thanks for your help!...Except for some reason it's going to take 2 hours and 45 minutes to copy 2GB of data over for some reason, but not sure what to do about that.

oak...@gmail.com

unread,
Jul 9, 2019, 11:26:00 AM7/9/19
to qubes-users
On Tuesday, July 9, 2019 at 10:37:40 AM UTC-4, unman wrote:
> On Tue, Jul 09, 2019 at 06:56:51AM -0700,

Last question: Is there any way to set it up so whenever I plug a flash drive into the USB port, it will automatically show up in windows 7 Qube?

unman

unread,
Jul 9, 2019, 11:41:04 AM7/9/19
to qubes-users
Now that's a different call - I used to use udev triggers when USB
devices were introduced, but havent looked at them for a while.
If you want to automatically start a Windnows qube with device attached
when you plug it in to sys-usb, I may be able to help tomorrow.

Also, there's a suggestion here that you want to attch the device to a
running Windows qube - honestly, I have never succeeded in doing that,
but I dont use Windows to any real extent. Maybe someone else has done?

O K

unread,
Jul 9, 2019, 12:11:34 PM7/9/19
to unman, qubes-users
Yeah if my only option is to start the qube with usb already attached, then that's fine.  I would like to figure out how to do that, thanks.

--
You received this message because you are subscribed to a topic in the Google Groups "qubes-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qubes-users/P2NrVXywuVw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20190709154101.eju2yvrz6ob6crq5%40thirdeyesecurity.org.
For more options, visit https://groups.google.com/d/optout.

panina

unread,
Jul 14, 2019, 9:36:01 AM7/14/19
to qubes-users mailing list
If you are looking for the path to a storage USB:
Open a terminal in sys-usb, and run:

lsblk

This command will list all disk drives on the VM, and their path
(mountpoint). It's a generally useful linux command.
Hope it helps you!

/panina
0x6648B5C5E394CC24.asc
signature.asc
Reply all
Reply to author
Forward
0 new messages