mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-29 09:16:22 -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:
|
1. In a dom0 console (running as normal user), list all available block devices:
|
||||||
|
|
||||||
{% highlight trac-wiki %}
|
|
||||||
qvm-block -l
|
qvm-block -l
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
This will list all available block devices connected to any USB controller
|
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
|
in your system, no matter in which VM hosts the controller. The name of the
|
||||||
@ -32,16 +30,12 @@ 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):
|
**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
|
sudo udevadm trigger --action=change
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
|
|
||||||
1. Assuming our USB stick is sdb, we attach the device to an AppVM like so:
|
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
|
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.
|
||||||
|
|
||||||
@ -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:
|
1. In a dom0 console, detach the stick:
|
||||||
|
|
||||||
{% highlight trac-wiki %}
|
|
||||||
qvm-block -d <device> <vmname>
|
qvm-block -d <device> <vmname>
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
1. You may now remove the device.
|
1. You may now remove the device.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user