From bf12885524daf8422c74d8906c3df43a66295c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=AE=A1=E7=90=86=E5=93=A1?= Date: Fri, 6 Mar 2026 06:08:23 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E7=A1=AC=E7=A2=9F?= =?UTF-8?q?=E7=9B=B4=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- %E7%A1%AC%E7%A2%9F%E7%9B%B4%E9%80%9A.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 %E7%A1%AC%E7%A2%9F%E7%9B%B4%E9%80%9A.md diff --git a/%E7%A1%AC%E7%A2%9F%E7%9B%B4%E9%80%9A.md b/%E7%A1%AC%E7%A2%9F%E7%9B%B4%E9%80%9A.md new file mode 100644 index 0000000..89caf55 --- /dev/null +++ b/%E7%A1%AC%E7%A2%9F%E7%9B%B4%E9%80%9A.md @@ -0,0 +1,18 @@ +# 列出所有硬碟 + +```bash +ls -l /dev/disk/by-id +``` + +(輸出) + +``` +lrwxrwxrwx 1 root root 9 Sep 12 23:04 ata-CT2000BX500SSD1_2221E63542A2 -> ../../sda +... +``` + +# 將硬碟直通給虛擬機 + +```bash +qm set 253 --sata2 /dev/disk/by-id/ata-CT2000BX500SSD1_2221E63542A2 +``` \ No newline at end of file