[qubes-users] Re: Trouble reading data CD under Qubes

2016-12-03 Thread raahelps
On Saturday, December 3, 2016 at 7:33:29 AM UTC-5, Pawel Debski wrote:
> W dniu sobota, 3 grudnia 2016 12:53:02 UTC+1 użytkownik Grzesiek Chodzicki 
> napisał:
> > W dniu sobota, 3 grudnia 2016 12:21:49 UTC+1 użytkownik Pawel Debski 
> > napisał:
> > > Folks,
> > > 
> > > I have a PC with two SATA controllers: primary master holds my SDD with 
> > > Qubes, while secondary master has CD drive attached.
> > > 
> > > When I insert a data CD it gets mounted by dom0 and the files are 
> > > accessible. I do not want to open these files in dom0 however. So in the 
> > > VM Manager I right click my favourite perssonal-full-sw appVM that I 
> > > created previously and select:
> > > 
> > > Attach/detach block devices -> Attach dom0:sr0
> > > 
> > > and nothing happens. 
> > > 
> > > Even more: CD content is still visible in dom0 and /dev/sr0 is still 
> > > mounted in /run/media/pdebski/CDTITLE
> > > 
> > > How can I better diagnose the problem?
> > 
> > Try using qvm-block -l and then attach the device using qvm-block. If that 
> > fails, you can attach the entire sata controller (and not just the drive)
> 
> Here is the progress:
> 
> (in dom0)
> qvm-block -l
> dom0:sr0 ... attached to fedora-full-sw as xvdi
> 
> now in fedora-full-sw Konsole I need
> 
> [user@fedora-usb ~]$ su - root
> [root@fedora-usb ~]# mkdir CD
> [root@fedora-usb ~]# mount /dev/xvdi CD
> [root@fedora-usb ~]# df
> Filesystem 1K-blocksUsed Available Use% Mounted on
> ...
> /dev/xvdi   80388038 0 100% /root/CD
> 
> and voilà, I can read the files.
> 
> HOWEVER: can you imagine a normal user doing this?
> (I can't, she/he would kill me with his laughter ;-)
> 
> How can I make Fedora read the CD and mount it automagically so all is 
> visible in AppVM File Manager just after inserting CD?

cdroms are pretty outdated now.  I don't even have one on my latest box.

-- 
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/6f0beec4-280c-4475-9fef-73ff4cba1028%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Trouble reading data CD under Qubes

2016-12-03 Thread Grzesiek Chodzicki
W dniu sobota, 3 grudnia 2016 13:33:29 UTC+1 użytkownik Pawel Debski napisał:
> W dniu sobota, 3 grudnia 2016 12:53:02 UTC+1 użytkownik Grzesiek Chodzicki 
> napisał:
> > W dniu sobota, 3 grudnia 2016 12:21:49 UTC+1 użytkownik Pawel Debski 
> > napisał:
> > > Folks,
> > > 
> > > I have a PC with two SATA controllers: primary master holds my SDD with 
> > > Qubes, while secondary master has CD drive attached.
> > > 
> > > When I insert a data CD it gets mounted by dom0 and the files are 
> > > accessible. I do not want to open these files in dom0 however. So in the 
> > > VM Manager I right click my favourite perssonal-full-sw appVM that I 
> > > created previously and select:
> > > 
> > > Attach/detach block devices -> Attach dom0:sr0
> > > 
> > > and nothing happens. 
> > > 
> > > Even more: CD content is still visible in dom0 and /dev/sr0 is still 
> > > mounted in /run/media/pdebski/CDTITLE
> > > 
> > > How can I better diagnose the problem?
> > 
> > Try using qvm-block -l and then attach the device using qvm-block. If that 
> > fails, you can attach the entire sata controller (and not just the drive)
> 
> Here is the progress:
> 
> (in dom0)
> qvm-block -l
> dom0:sr0 ... attached to fedora-full-sw as xvdi
> 
> now in fedora-full-sw Konsole I need
> 
> [user@fedora-usb ~]$ su - root
> [root@fedora-usb ~]# mkdir CD
> [root@fedora-usb ~]# mount /dev/xvdi CD
> [root@fedora-usb ~]# df
> Filesystem 1K-blocksUsed Available Use% Mounted on
> ...
> /dev/xvdi   80388038 0 100% /root/CD
> 
> and voilà, I can read the files.
> 
> HOWEVER: can you imagine a normal user doing this?
> (I can't, she/he would kill me with his laughter ;-)
> 
> How can I make Fedora read the CD and mount it automagically so all is 
> visible in AppVM File Manager just after inserting CD?

The easiest (although not really obvious) way would be to attach the entire 
SATA controller to the VM. Works for USB, should work for SATA too.

-- 
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/d255e13c-317b-4ff2-a020-adc4455b4180%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Trouble reading data CD under Qubes

2016-12-03 Thread Pawel Debski
W dniu sobota, 3 grudnia 2016 12:53:02 UTC+1 użytkownik Grzesiek Chodzicki 
napisał:
> W dniu sobota, 3 grudnia 2016 12:21:49 UTC+1 użytkownik Pawel Debski napisał:
> > Folks,
> > 
> > I have a PC with two SATA controllers: primary master holds my SDD with 
> > Qubes, while secondary master has CD drive attached.
> > 
> > When I insert a data CD it gets mounted by dom0 and the files are 
> > accessible. I do not want to open these files in dom0 however. So in the VM 
> > Manager I right click my favourite perssonal-full-sw appVM that I created 
> > previously and select:
> > 
> > Attach/detach block devices -> Attach dom0:sr0
> > 
> > and nothing happens. 
> > 
> > Even more: CD content is still visible in dom0 and /dev/sr0 is still 
> > mounted in /run/media/pdebski/CDTITLE
> > 
> > How can I better diagnose the problem?
> 
> Try using qvm-block -l and then attach the device using qvm-block. If that 
> fails, you can attach the entire sata controller (and not just the drive)

Here is the progress:

(in dom0)
qvm-block -l
dom0:sr0 ... attached to fedora-full-sw as xvdi

now in fedora-full-sw Konsole I need

[user@fedora-usb ~]$ su - root
[root@fedora-usb ~]# mkdir CD
[root@fedora-usb ~]# mount /dev/xvdi CD
[root@fedora-usb ~]# df
Filesystem 1K-blocksUsed Available Use% Mounted on
...
/dev/xvdi   80388038 0 100% /root/CD

and voilà, I can read the files.

HOWEVER: can you imagine a normal user doing this?
(I can't, she/he would kill me with his laughter ;-)

How can I make Fedora read the CD and mount it automagically so all is visible 
in AppVM File Manager just after inserting CD?

-- 
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/7f58ba9e-f8fd-4da6-8ab5-3cf321cc85c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Trouble reading data CD under Qubes

2016-12-03 Thread Grzesiek Chodzicki
W dniu sobota, 3 grudnia 2016 12:21:49 UTC+1 użytkownik Pawel Debski napisał:
> Folks,
> 
> I have a PC with two SATA controllers: primary master holds my SDD with 
> Qubes, while secondary master has CD drive attached.
> 
> When I insert a data CD it gets mounted by dom0 and the files are accessible. 
> I do not want to open these files in dom0 however. So in the VM Manager I 
> right click my favourite perssonal-full-sw appVM that I created previously 
> and select:
> 
> Attach/detach block devices -> Attach dom0:sr0
> 
> and nothing happens. 
> 
> Even more: CD content is still visible in dom0 and /dev/sr0 is still mounted 
> in /run/media/pdebski/CDTITLE
> 
> How can I better diagnose the problem?

Try using qvm-block -l and then attach the device using qvm-block. If that 
fails, you can attach the entire sata controller (and not just the drive)

-- 
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/1fab03b7-2acf-4ed5-a355-67dcf58e44f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.