From 88a476ef4c84a50559e3e16c6e2cb2a9c5e17588 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 3 Apr 2025 10:31:29 +0200 Subject: [PATCH] docs: Disk pass-through (#240) --- readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/readme.md b/readme.md index ccc1597..756da09 100644 --- a/readme.md +++ b/readme.md @@ -191,6 +191,18 @@ kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/maste - 'c *:* rwm' ``` +### How do I pass-through a disk? + + It is possible to pass-through disk devices or partitions directly by adding them to your compose file in this way: + + ```yaml + devices: + - /dev/sdb:/disk1 + - /dev/sdc1:/disk2 + ``` + + Use `/disk1` if you want it to become your main drive, and use `/disk2` and higher to add them as secondary drives. + ### How do I pass-through a USB device? To pass-through a USB device, first lookup its vendor and product id via the `lsusb` command, then add them to your compose file like this: