mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-28 16:59:40 -05:00
StickMounting: formatting
This commit is contained in:
parent
d84879411d
commit
0a64f016ed
@ -20,9 +20,7 @@ The command-line tool you may use to mount whole USB sticks or their partitions
|
||||
|
||||
1. In a dom0 console (running as normal user), list all available block devices:
|
||||
|
||||
{% highlight trac-wiki %}
|
||||
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
|
||||
@ -32,20 +30,16 @@ The command-line tool you may use to mount whole USB sticks or their partitions
|
||||
|
||||
**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. Assuming our USB stick is sdb, we attach the device to an AppVM like so:
|
||||
|
||||
{% highlight trac-wiki %}
|
||||
qvm-block -a personal dom0:sdb
|
||||
{% endhighlight %}
|
||||
|
||||
This will attach the device as "/dev/xvdi", if not already taken by another attached device, in the AppVM. You may also mount one partition at a time by using the same command with the partition number after sdb.
|
||||
This will attach the device as "/dev/xvdi", if not already taken by another attached device, in the AppVM. You may also mount one partition at a time by using the same command with the partition number after sdb.
|
||||
|
||||
**Warning: when working with single partitions, it is possible to assign the same partition to multiple VMs.** For example, you could attach sdb1 to VM1 and then sdb to VM2. It is up to the user not to make this mistake. Xen block device framework currently does not provide an easy way around this. Point 2 of [this ticket comment](https://github.com/QubesOS/qubes-issues/issues/1072#issuecomment-124119309) gives details on this.
|
||||
**Warning: when working with single partitions, it is possible to assign the same partition to multiple VMs.** For example, you could attach sdb1 to VM1 and then sdb to VM2. It is up to the user not to make this mistake. Xen block device framework currently does not provide an easy way around this. Point 2 of [this ticket comment](https://github.com/QubesOS/qubes-issues/issues/1072#issuecomment-124119309) gives details on this.
|
||||
|
||||
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.
|
||||
|
||||
@ -53,9 +47,7 @@ This will attach the device as "/dev/xvdi", if not already taken by another atta
|
||||
|
||||
1. In a dom0 console, detach the stick:
|
||||
|
||||
{% highlight trac-wiki %}
|
||||
qvm-block -d <device> <vmname>
|
||||
{% endhighlight %}
|
||||
|
||||
1. You may now remove the device.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user