Skip to content

Instantly share code, notes, and snippets.

View dotsh's full-sized avatar
👾

Mathieu V dotsh

👾
  • ZQA
View GitHub Profile
@Waltibaba
Waltibaba / lxc_mount_block_device
Last active March 30, 2024 17:57
Mount a block device like HDD inside an LXC container (specifically in proxmox 4)
Mounting block device in lxc (specifically Proxmox 4)
1. Find devices' major & minor ID (need both dev + partition for HDD)
# ls -al /dev/sda
brw-rw---- 1 root disk 8, 0 Dec 19 11:16 /dev/sda1
# ls -al /dev/sda1
brw-rw---- 1 root disk 8, 1 Dec 19 11:16 /dev/sda1
That's 8,0 for sda and 8,1 for sda1