Skip to content

Instantly share code, notes, and snippets.

View emuoiea's full-sized avatar
😪

emuoiea

😪
View GitHub Profile
@Waltibaba
Waltibaba / lxc_mount_block_device
Last active October 6, 2024 02:46
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