From b785e766a664d0167dfd90f0d86c5c5b83d50761 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 1 May 2024 11:34:35 +0200 Subject: [PATCH] docs: Disk pass-through --- readme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index ff8594c..1d01836 100644 --- a/readme.md +++ b/readme.md @@ -119,7 +119,9 @@ docker run -it --rm --name dsm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMI - /dev/disk/by-uuid/45678-45678-45678-45678-45678:/dev/disk3 ``` - Please note that the device needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume. + Make sure to bind the disk via its UUID (obtainable via `lsblk -o name,uuid`) instead of its name, to make sure it can never accidently pass the wrong drive when their order gets swapped. + +Please note that the device needs to be totally empty (without any partition table) otherwise DSM does not always format it into a volume. Do NOT use this feature with the goal of sharing files from the host, they will all be lost without warning when DSM creates the volume.