Merge pull request #22 from marmarek/stick-mounting-update

Stick mounting update
This commit is contained in:
Hakisho Nukama 2015-07-27 11:36:47 +00:00
commit bcbdedd2d9

View File

@ -24,13 +24,17 @@ A command-line tool, `qvm-block`, is also available. This tool can be used to as
qvm-block -l
{% endhighlight %}
> This will list all available block devices connected to any USB controller in your system, no matter in which VM hosts the controller. The name of the VM hosting the USB controller is displayed before the colon in the device name. The string after the colon is the name of the device used within the VM.
This will list all available block devices connected to any USB controller
in your system, no matter in which VM hosts the controller. The name of the
VM hosting the USB controller is displayed before the colon in the device
name. The string after the colon is the name of the device used within the
VM.
> **Note:** If your device is not listed here, you may refresh the list by calling (from the VM to which device is connected):
>
> {% highlight trac-wiki %}
> sudo udevadm trigger --action=change
> {% endhighlight %}
**Note:** If your device is not listed here, you may refresh the list by calling (from the VM to which device is connected):
{% highlight trac-wiki %}
sudo udevadm trigger --action=change
{% endhighlight %}
1. Connect the device to an AppVM:
@ -40,17 +44,20 @@ A command-line tool, `qvm-block`, is also available. This tool can be used to as
**Note:** The order of these parameters was changed in Qubes 1.0-rc1.
> This will attach the device as "/dev/xvdi" in the AppVM.
This will attach the device as "/dev/xvdi" in the AppVM.
1. The USB stick is now attached to the AppVM. If using a default AppVM, you may open Nautilus file manager in the AppVM, and your stick should be visible in the **Devices** panel on the left.
1. When you finish using your USB stick, click the eject button or right-click and select **Unmount**.
1. In a dom0 console, unmount the stick:
1. In a dom0 console, detach the stick:
{% highlight trac-wiki %}
qvm-block -d <device> <vmname>
{% endhighlight %}
{% highlight trac-wiki %}
qvm-block -d <device> <vmname>
{% endhighlight %}
1. You may now remove the device.
**Warning: Do not remove the device before detatching it from the VM!** Otherwise you
will not be able to attach it anywhere later. See [this
ticket](https://github.com/QubesOS/qubes-issues/issues/1082) for details.