mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-28 16:59:40 -05:00
34 lines
1.2 KiB
Markdown
34 lines
1.2 KiB
Markdown
---
|
|
layout: wiki
|
|
title: StickMounting
|
|
permalink: /wiki/StickMounting/
|
|
---
|
|
|
|
This requires qubes-core-appvm-1.0.1 of higher.
|
|
|
|
1. Insert your USB stick.
|
|
|
|
1. In Dom0 konsole (running as normal user) do:
|
|
|
|
``` {.wiki}
|
|
xl block-attach <vmname> phy:/dev/sdb1 xvdi w
|
|
```
|
|
|
|
This assumes that your stick is seen by Dom0 kernel as **/dev/sdb** and you're mounting its first partition, so **/dev/sdb1** (the usual case); "w" means read/write, if you not want that, use "r" for read only.
|
|
|
|
This will attach the device as "/dev/xvdi" in VM. You can also choose different name (eg. xvdj) to connect multiple devices, but the others (not xvdi) will require mounting from cmdline in VM...
|
|
|
|
1. Open Nautilus file manager in the AppVM. Your stick should be visible in the "Places" panel on the left. Just click on the device.
|
|
|
|
1. When you finish using your USB stick, right-click its icon in Dolphin and chose "Safely Remove \<Your stick name\>".
|
|
|
|
1. Back to Dom0 konsole -- in order to unmount the stick do the following:
|
|
|
|
``` {.wiki}
|
|
xl block-detach <vmname> xvdi
|
|
```
|
|
|
|
1. You can remove the device.
|
|
|
|
Needless to say, we will be adding support for USB mounting to our GUI Qubes Manager so that the user will not need to use console in Dom0 -- just click a button. Coming soon, stay tuned!
|