Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-09 Thread Andrew Sullivan


On Monday, 8 June 2020 00:50:58 UTC+1, brend...@gmail.com wrote:
>
> On Sunday, June 7, 2020 at 12:29:28 PM UTC-4, Andrew Sullivan wrote:
> ...
>
> On the fedora-based VMs, the tool `gnome-disks` is a gui way of manually 
> mounting filesystems.
>
> [I tend to forget the order of operations and/or flags for things like 
> mount (which is the mountpoint? which is the source device?) so either 
> script it or use GUI tools when my brain is a bit fuzzy.]
>
> Brendan
>

Brendan - that certainly is an easy way to do it (even if it doesn't 
present the mental challenges of the method described earlier!).  It can be 
made permanent, and it can use the UUID as recommended above.  Thanks. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1331b7be-77ac-406d-8dcb-62cc2139379co%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread brendan . hoar
On Sunday, June 7, 2020 at 12:29:28 PM UTC-4, Andrew Sullivan wrote:
...

On the fedora-based VMs, the tool `gnome-disks` is a gui way of manually 
mounting filesystems.

[I tend to forget the order of operations and/or flags for things like 
mount (which is the mountpoint? which is the source device?) so either 
script it or use GUI tools when my brain is a bit fuzzy.]

Brendan

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/230048f2-5bb9-469b-8e0c-153285ad37e9o%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread Andrew Sullivan


On Sunday, 7 June 2020 16:28:54 UTC+1, unman wrote:
>
> On Sun, Jun 07, 2020 at 04:04:25AM -0700, Andrew Sullivan wrote: 
> > 
> > 
> > On Sunday, 7 June 2020 07:12:23 UTC+1, haaber wrote: 
> > > 
> > > On 6/6/20 6:33 PM, Andrew Sullivan wrote: 
> > > > 
> > > > If you use qvm-block in dom0 can you see the 
> disk/partitions? 
> > > > 
> > > > 
> > > >   Don't know, I'll give it a try and post back. 
> > > > 
> > > > 
> > > > OK, if I click on the  Devices widget I can indeed see all the 
> > > > partitions on my internal SSD, with an arrow next to each.  If I 
> click 
> > > > the arrow I get a list of qubes, which I believe allows me to attach 
> the 
> > > > selected partition to where I want.  However, when I do this I can't 
> > > > find the partition in the Files application in the qube.  Think I'm 
> > > > still missing something...  Also, am I correct that this attachment 
> will 
> > > > only persist until I close the qube? 
> > > 
> > > they will be inserted in the appvm-qube as /dev/xvdi, /dev/xvdk ... 
> > > [vd = virtual device, I guess]. The existence of a device does not 
> mean 
> > > mounting it. I do that by hand: in a terminal, type 
> > > 
> > > sudo mount /dev/xvdi /media 
> > > 
> > > will mount the attached device to /media and allow file access. If it 
> is 
> > > a luks-encrypted system, do 
> > > 
> > > sudo crypsetup luksOpen  /dev/xvdi  MYSSDVOL 
> > > sudo mount  /dev/mapper/MYSSDVOL/media 
> > > 
> > > cheers 
> > > 
> > 
> > Many thanks for that, works exactly as described!  Seems a bit strange 
> that 
> > the partition isn't mounted at the time it was attached (not sure why 
> you'd 
> > want to attach it if you didn't plan to read or write to it?).   
> Anyways... 
>
> You may want to read/write *without* mounting - for example, when using 
> dd to write a disk image. 
>
> > 
> > Is there any way the attachment and mounting can be made permanent? 
> > 
>
> `man` is your friend - specifically `man qvm-block`. 
> You will see that there is indeed a `--persistent` option. 
>
> Mounting could be a simple (and standard) entry in /etc/fstab - nothing 
> Qubes 
> specific here. Or simply a call to `mount`. 
> Make sure that you use a good identifier - /dev/xvdi may or may not work 
> - a label or UUID would be much better. 
> Again `man fstab` and `man mount` will help. 
>
> The Qubes specific part will be to make sure that any changes you  make 
> to /etc/fstab are persistent - you could do this using bind-dirs or by 
> an entry in /rw/config/rc.local 
>
>
>
>
> > Next challenge - access files on another Linux laptop on the same 
> network! 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/qubes-users/da8f0bd7-8736-4e32-b64c-9721ab8fabaco%40googlegroups.com.
>  
>
>

Thanks, that's very helpful, I'll give it a try. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/bb4154fe-0d93-440c-bca5-49752b2e8214o%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread unman
On Sun, Jun 07, 2020 at 04:04:25AM -0700, Andrew Sullivan wrote:
> 
> 
> On Sunday, 7 June 2020 07:12:23 UTC+1, haaber wrote:
> >
> > On 6/6/20 6:33 PM, Andrew Sullivan wrote: 
> > > 
> > > If you use qvm-block in dom0 can you see the disk/partitions? 
> > > 
> > > 
> > >   Don't know, I'll give it a try and post back. 
> > > 
> > > 
> > > OK, if I click on the  Devices widget I can indeed see all the 
> > > partitions on my internal SSD, with an arrow next to each.  If I click 
> > > the arrow I get a list of qubes, which I believe allows me to attach the 
> > > selected partition to where I want.  However, when I do this I can't 
> > > find the partition in the Files application in the qube.  Think I'm 
> > > still missing something...  Also, am I correct that this attachment will 
> > > only persist until I close the qube? 
> >
> > they will be inserted in the appvm-qube as /dev/xvdi, /dev/xvdk ... 
> > [vd = virtual device, I guess]. The existence of a device does not mean 
> > mounting it. I do that by hand: in a terminal, type 
> >
> > sudo mount /dev/xvdi /media 
> >
> > will mount the attached device to /media and allow file access. If it is 
> > a luks-encrypted system, do 
> >
> > sudo crypsetup luksOpen  /dev/xvdi  MYSSDVOL 
> > sudo mount  /dev/mapper/MYSSDVOL/media 
> >
> > cheers 
> >
> 
> Many thanks for that, works exactly as described!  Seems a bit strange that 
> the partition isn't mounted at the time it was attached (not sure why you'd 
> want to attach it if you didn't plan to read or write to it?).   Anyways...

You may want to read/write *without* mounting - for example, when using
dd to write a disk image.

> 
> Is there any way the attachment and mounting can be made permanent?
> 

`man` is your friend - specifically `man qvm-block`.
You will see that there is indeed a `--persistent` option.

Mounting could be a simple (and standard) entry in /etc/fstab - nothing Qubes
specific here. Or simply a call to `mount`.
Make sure that you use a good identifier - /dev/xvdi may or may not work
- a label or UUID would be much better.
Again `man fstab` and `man mount` will help.

The Qubes specific part will be to make sure that any changes you  make
to /etc/fstab are persistent - you could do this using bind-dirs or by
an entry in /rw/config/rc.local




> Next challenge - access files on another Linux laptop on the same network!
> 
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/qubes-users/da8f0bd7-8736-4e32-b64c-9721ab8fabaco%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200607152850.GC14422%40thirdeyesecurity.org.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread Andrew Sullivan


On Sunday, 7 June 2020 15:25:02 UTC+1, haaber wrote:
>
> On 6/7/20 1:04 PM, Andrew Sullivan wrote: 
> > 
> > 
> > On Sunday, 7 June 2020 07:12:23 UTC+1, haaber wrote: 
> > 
> > they will be inserted in the appvm-qube as /dev/xvdi, /dev/xvdk ... 
> > [vd = virtual device, I guess]. The existence of a device does not 
> mean 
> > mounting it. I do that by hand: in a terminal, type 
> > 
> >  sudo mount /dev/xvdi /media 
> > 
> > will mount the attached device to /media and allow file access. If 
> > it is 
> > a luks-encrypted system, do 
> > 
> >  sudo crypsetup luksOpen  /dev/xvdi  MYSSDVOL 
> >  sudo mount  /dev/mapper/MYSSDVOL/media 
> > 
> >  cheers 
> > 
> > 
> > Many thanks for that, works exactly as described!  Seems a bit strange 
> > that the partition isn't mounted at the time it was attached (not sure 
> > why you'd want to attach it if you didn't plan to read or write to 
> > it?).   Anyways... 
>
> like any device that lurks in your machine(say a WIN partition. Unless 
> you ask for mounting in fstab it won't be done. 
>
> > Is there any way the attachment and mounting can be made permanent? 
> no clue. never tried that. 
>
> > Next challenge - access files on another Linux laptop on the same 
> network! 
>
> use scp to copy individual files  and use 
>
> rsync -auv --rsh=ssh user@anotherlinuxmachine:path/  new-qubes-path/ 
>
> is your friend to mass-copy data. 
>

Thanks for that - useful to know but not exactly what I need right now.  I 
want to be able to access a folder on another Linux laptop on the same 
network (like I can access another disk in the same laptop).  I currently 
do this (in Linux Mint) using Samba.  I'll give that a try in Qubes and if 
I get problems I probably ought to start a new  thread (I got into trouble 
before when I raised a new topic in a thread...). 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/89ec1490-5409-4b56-954c-17a370fe3b06o%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread haaber

On 6/7/20 1:04 PM, Andrew Sullivan wrote:



On Sunday, 7 June 2020 07:12:23 UTC+1, haaber wrote:

they will be inserted in the appvm-qube as /dev/xvdi, /dev/xvdk ...
[vd = virtual device, I guess]. The existence of a device does not mean
mounting it. I do that by hand: in a terminal, type

     sudo mount /dev/xvdi /media

will mount the attached device to /media and allow file access. If
it is
a luks-encrypted system, do

     sudo crypsetup luksOpen  /dev/xvdi  MYSSDVOL
     sudo mount  /dev/mapper/MYSSDVOL    /media

     cheers


Many thanks for that, works exactly as described!  Seems a bit strange
that the partition isn't mounted at the time it was attached (not sure
why you'd want to attach it if you didn't plan to read or write to
it?).   Anyways...


like any device that lurks in your machine(say a WIN partition. Unless
you ask for mounting in fstab it won't be done.


Is there any way the attachment and mounting can be made permanent?

no clue. never tried that.


Next challenge - access files on another Linux laptop on the same network!


use scp to copy individual files  and use

rsync -auv --rsh=ssh user@anotherlinuxmachine:path/  new-qubes-path/

is your friend to mass-copy data.

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/392f510b-512c-48aa-759a-09a9111d9698%40web.de.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread Andrew Sullivan


On Sunday, 7 June 2020 07:12:23 UTC+1, haaber wrote:
>
> On 6/6/20 6:33 PM, Andrew Sullivan wrote: 
> > 
> > If you use qvm-block in dom0 can you see the disk/partitions? 
> > 
> > 
> >   Don't know, I'll give it a try and post back. 
> > 
> > 
> > OK, if I click on the  Devices widget I can indeed see all the 
> > partitions on my internal SSD, with an arrow next to each.  If I click 
> > the arrow I get a list of qubes, which I believe allows me to attach the 
> > selected partition to where I want.  However, when I do this I can't 
> > find the partition in the Files application in the qube.  Think I'm 
> > still missing something...  Also, am I correct that this attachment will 
> > only persist until I close the qube? 
>
> they will be inserted in the appvm-qube as /dev/xvdi, /dev/xvdk ... 
> [vd = virtual device, I guess]. The existence of a device does not mean 
> mounting it. I do that by hand: in a terminal, type 
>
> sudo mount /dev/xvdi /media 
>
> will mount the attached device to /media and allow file access. If it is 
> a luks-encrypted system, do 
>
> sudo crypsetup luksOpen  /dev/xvdi  MYSSDVOL 
> sudo mount  /dev/mapper/MYSSDVOL/media 
>
> cheers 
>

Many thanks for that, works exactly as described!  Seems a bit strange that 
the partition isn't mounted at the time it was attached (not sure why you'd 
want to attach it if you didn't plan to read or write to it?).   Anyways...

Is there any way the attachment and mounting can be made permanent?

Next challenge - access files on another Linux laptop on the same network!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/da8f0bd7-8736-4e32-b64c-9721ab8fabaco%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-07 Thread haaber

On 6/6/20 6:33 PM, Andrew Sullivan wrote:


If you use qvm-block in dom0 can you see the disk/partitions?


      Don't know, I'll give it a try and post back.


OK, if I click on the  Devices widget I can indeed see all the
partitions on my internal SSD, with an arrow next to each.  If I click
the arrow I get a list of qubes, which I believe allows me to attach the
selected partition to where I want.  However, when I do this I can't
find the partition in the Files application in the qube.  Think I'm
still missing something...  Also, am I correct that this attachment will
only persist until I close the qube?


they will be inserted in the appvm-qube as /dev/xvdi, /dev/xvdk ...
[vd = virtual device, I guess]. The existence of a device does not mean
mounting it. I do that by hand: in a terminal, type

   sudo mount /dev/xvdi /media

will mount the attached device to /media and allow file access. If it is
a luks-encrypted system, do

   sudo crypsetup luksOpen  /dev/xvdi  MYSSDVOL
   sudo mount  /dev/mapper/MYSSDVOL/media

   cheers

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/6ab43a05-0672-d51d-1496-43a435d9cff9%40web.de.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-06 Thread Andrew Sullivan


On Saturday, 6 June 2020 16:21:35 UTC+1, Andrew Sullivan wrote:
>
>
>
> On Saturday, 6 June 2020 16:13:11 UTC+1, unman wrote:
>>
>> On Sat, Jun 06, 2020 at 07:59:14AM -0700, Andrew Sullivan wrote: 
>> > Well, just done my first Qubes install - onto a USB 3 stick attached to 
>> a 
>> > Dell Latitude E5470 (only a temporary arrangement pending installing a 
>> > second SSD in the laptop).  I was pleasantly surprised how smoothly it 
>> went 
>> > (although it took a while to complete the install and updates seem to 
>> take 
>> > an age) and most things I need to work, do. 
>> > 
>> > One thing I can't figure out...  I have data files on the internal SSD 
>> > which I would like to access from Qubes.  I can find reference in the 
>> > documentation to accessing USB sticks, but not a SSD.  I would like to 
>> have 
>> > the access permanent (in a "conventional" Linux installation, I think I 
>> > would edit fstab appropriately?).  Neither lsblk or fdisk -l seem to 
>> show 
>> > me anything about the internal SSD. 
>> > 
>> > I think I must be missing something, any pointer would be welcome. 
>> > 
>> > Thanks 
>> > 
>>
>> Do you want the SSD partitions permanently attached to one qube? 
>>
>
>   That might work, or maybe better permanently attached to two qubes?
>  
>
>> If you use qvm-block in dom0 can you see the disk/partitions? 
>>
>
>  Don't know, I'll give it a try and post back. 
>

OK, if I click on the  Devices widget I can indeed see all the partitions 
on my internal SSD, with an arrow next to each.  If I click the arrow I get 
a list of qubes, which I believe allows me to attach the selected partition 
to where I want.  However, when I do this I can't find the partition in the 
Files application in the qube.  Think I'm still missing something...  Also, 
am I correct that this attachment will only persist until I close the qube?

Thanks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/01992459-e7c3-43e1-9540-5d0a318ad83fo%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-06 Thread Andrew Sullivan


On Saturday, 6 June 2020 16:13:11 UTC+1, unman wrote:
>
> On Sat, Jun 06, 2020 at 07:59:14AM -0700, Andrew Sullivan wrote: 
> > Well, just done my first Qubes install - onto a USB 3 stick attached to 
> a 
> > Dell Latitude E5470 (only a temporary arrangement pending installing a 
> > second SSD in the laptop).  I was pleasantly surprised how smoothly it 
> went 
> > (although it took a while to complete the install and updates seem to 
> take 
> > an age) and most things I need to work, do. 
> > 
> > One thing I can't figure out...  I have data files on the internal SSD 
> > which I would like to access from Qubes.  I can find reference in the 
> > documentation to accessing USB sticks, but not a SSD.  I would like to 
> have 
> > the access permanent (in a "conventional" Linux installation, I think I 
> > would edit fstab appropriately?).  Neither lsblk or fdisk -l seem to 
> show 
> > me anything about the internal SSD. 
> > 
> > I think I must be missing something, any pointer would be welcome. 
> > 
> > Thanks 
> > 
>
> Do you want the SSD partitions permanently attached to one qube? 
>

  That might work, or maybe better permanently attached to two qubes?
 

> If you use qvm-block in dom0 can you see the disk/partitions? 
>

 Don't know, I'll give it a try and post back. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ead448ea-c4c6-4409-9c03-25e9d3da267fo%40googlegroups.com.


Re: [qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-06 Thread unman
On Sat, Jun 06, 2020 at 07:59:14AM -0700, Andrew Sullivan wrote:
> Well, just done my first Qubes install - onto a USB 3 stick attached to a 
> Dell Latitude E5470 (only a temporary arrangement pending installing a 
> second SSD in the laptop).  I was pleasantly surprised how smoothly it went 
> (although it took a while to complete the install and updates seem to take 
> an age) and most things I need to work, do.
> 
> One thing I can't figure out...  I have data files on the internal SSD 
> which I would like to access from Qubes.  I can find reference in the 
> documentation to accessing USB sticks, but not a SSD.  I would like to have 
> the access permanent (in a "conventional" Linux installation, I think I 
> would edit fstab appropriately?).  Neither lsblk or fdisk -l seem to show 
> me anything about the internal SSD.
> 
> I think I must be missing something, any pointer would be welcome.
> 
> Thanks
> 

Do you want the SSD partitions permanently attached to one qube?
If you use qvm-block in dom0 can you see the disk/partitions?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20200606151308.GE10363%40thirdeyesecurity.org.


[qubes-users] Accessing files on a different SSD on the same laptop...

2020-06-06 Thread Andrew Sullivan
Well, just done my first Qubes install - onto a USB 3 stick attached to a 
Dell Latitude E5470 (only a temporary arrangement pending installing a 
second SSD in the laptop).  I was pleasantly surprised how smoothly it went 
(although it took a while to complete the install and updates seem to take 
an age) and most things I need to work, do.

One thing I can't figure out...  I have data files on the internal SSD 
which I would like to access from Qubes.  I can find reference in the 
documentation to accessing USB sticks, but not a SSD.  I would like to have 
the access permanent (in a "conventional" Linux installation, I think I 
would edit fstab appropriately?).  Neither lsblk or fdisk -l seem to show 
me anything about the internal SSD.

I think I must be missing something, any pointer would be welcome.

Thanks

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/26ffa360-01c3-4b89-849f-cdca7034117ao%40googlegroups.com.