Re: [qubes-users] Re: Any way to attach a USB drive to a VM by label?

2018-05-18 Thread Qubes Guy
On Friday, May 18, 2018 at 3:14:57 AM UTC-4, awokd wrote:
> On Fri, May 18, 2018 1:00 am, Qubes Guy wrote:
> > On Thursday, May 17, 2018 at 8:57:09 PM UTC-4, Qubes Guy wrote:
> 
> >> So, I guess I'm asking if there's a way to just persistently attach 2 or
> >> 3 external USB drives and have them consistently available on the same
> >> device names when I start the VM so VeraCrypt doesn't balk?  (VeraCrypt
> >> ultimately doesn't care what device a drive is attached to (it could be
> >> sda - sdj on my system) because it shows the attached drive as
> >> "/media/user/BIG_TOSHIBA, but if a drive isn't where it's supposed to
> >> be, that'll fail.
> 
> > By the way, I'm running version 4.0 of Qubes on a fairly recent laptop
> > with 8GB of RAM...
> 
> Can you make sys-usb's /etc/fstab persistent, then specify /dev names
> there by drive UUID?

I'm not sure what you mean by either of those things. Are you saying I should 
put entries in the fstab file in sys-usb to permanently mount those drives? If 
so, what would the commands look like?  (As a side note, I tried to 
persistently mount a NAS share using the fstab file in my Debian template (and 
various other things) and couldn't get that to work, but I do know about the 
fstab file. I'm gonna try to use NFS instead...)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/74405d5e-a364-4c6d-8c56-b122662e2fe5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Any way to attach a USB drive to a VM by label?

2018-05-18 Thread awokd
On Fri, May 18, 2018 1:00 am, Qubes Guy wrote:
> On Thursday, May 17, 2018 at 8:57:09 PM UTC-4, Qubes Guy wrote:

>> So, I guess I'm asking if there's a way to just persistently attach 2 or
>> 3 external USB drives and have them consistently available on the same
>> device names when I start the VM so VeraCrypt doesn't balk?  (VeraCrypt
>> ultimately doesn't care what device a drive is attached to (it could be
>> sda - sdj on my system) because it shows the attached drive as
>> "/media/user/BIG_TOSHIBA, but if a drive isn't where it's supposed to
>> be, that'll fail.

> By the way, I'm running version 4.0 of Qubes on a fairly recent laptop
> with 8GB of RAM...

Can you make sys-usb's /etc/fstab persistent, then specify /dev names
there by drive UUID?


-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/a7ef7c3a77082a857b0df50d39f66166%40elude.in.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Any way to attach a USB drive to a VM by label?

2018-05-17 Thread Qubes Guy
On Thursday, May 17, 2018 at 8:57:09 PM UTC-4, Qubes Guy wrote:
> I've successfully used qvm-block (in Dom0) to attach USB drives to different 
> VMs (persistently), but I've noticed that Qubes (or Linux) sometimes gives 
> them to different devices over time. In other words, on Monday, my 
> BIG_TOSHIBA drive will be on /dev/sda, but it'll be assigned to /dev/sdj when 
> I boot up on Wednesday. This is throwing off my VeraCrypt / FreeFileSync 
> backup routine. (Another way of saying this is if I say "qvm-block attach 
> MyVM sys-usb:sda --persistent" when one of the three drives I use for MyVM is 
> currently attached to that, this will fail if Qubes moves that drive to a 
> different device-name (during boot) that isn't one of the three I previously 
> attached (when I go to start up that VM).
> 
> I thought about persistently attaching all 10 of my USB drives to the VM 
> (some HDs, some flash, one SSD - I never use all of them at once - don't 
> ask!) because that would certainly fix this problem, but I get the following 
> error when I try to start the VM: "ERROR: Start failed: XML error: target 
> 'xvdi' duplicated for disk sources '/dev/sdc' and '/dev/sde', see 
> /var/log/libvirt/libxl/libxl-driver.log for details".
> 
> Note that I did all the persistent attachment commands while the VM was not 
> running. If I detach all those, start the VM, do the persistent attachments, 
> shut down the VM and then restart it, I get an error along the lines of 
> "qrexec process failed to respond in 60 seconds".
> 
> So, I guess I'm asking if there's a way to just persistently attach 2 or 3 
> external USB drives and have them consistently available on the same device 
> names when I start the VM so VeraCrypt doesn't balk?  (VeraCrypt ultimately 
> doesn't care what device a drive is attached to (it could be sda - sdj on my 
> system) because it shows the attached drive as "/media/user/BIG_TOSHIBA, but 
> if a drive isn't where it's supposed to be, that'll fail.
> 
> In case you're curious, the error messages in 
> /var/log/libvirt/libxl/libxl-driver.log are meaningless to me, but if you 
> want me to post it, I can.
> 
> Any help you guys can give me would be greatly appreciated! Thanks...

By the way, I'm running version 4.0 of Qubes on a fairly recent laptop with 8GB 
of RAM...

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/592ec7f7-d1c5-4bf6-871a-3863fec8ff0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.