https://www.gravatar.com/avatar/f54704641b5fd99f865013a8196d6caf?s=240&d=mp

gowinder个人博客

proxmox ve VM挂载物理硬盘

proxmox ve VM挂载物理硬盘 先找到要挂载的硬盘的id: 1 lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm' 结果类似: 1 2 3 4 5 NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT DEVICE-ID(S) loop0 7:0 0 20G 0 loop loop1 7:1 0 80G 0