Hi,
First let me say that I am not a linux expert. That said:
I need to mount a physical disk in a certaint LXC, whose conf file is:
In above config dev0 is the disk attached to the LXC. I can mount it with mount /dev/disk/by-id/ata-ST4000VX016-3CV104_WW62AQFE /media/BACKUP/urbackup/
I want the mount to be persistent so I've coded this in the fstab
But the disk doesn't get mounted on boot. What am I doing wrong ?
First let me say that I am not a linux expert. That said:
I need to mount a physical disk in a certaint LXC, whose conf file is:
Code:
arch: amd64
cores: 3
dev0: /dev/disk/by-id/ata-ST4000VX016-3CV104_WW62AQFE
features: fuse=1,nesting=1
hostname: linux-urbackup
memory: 2048
net0: name=eth0,bridge=vmbr0,gw=10.0.20.254,hwaddr=BC:24:11:DA:9A:03,ip=10.0.20.30/24,type=veth
onboot: 1
ostype: debian
rootfs: local-lvm:vm-230-disk-0,size=8G
swap: 512
tags: community-script;web
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.cgroup2.devices.allow: c 188:* rwm
lxc.cgroup2.devices.allow: c 189:* rwm
lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir
lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file
lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file
In above config dev0 is the disk attached to the LXC. I can mount it with mount /dev/disk/by-id/ata-ST4000VX016-3CV104_WW62AQFE /media/BACKUP/urbackup/
I want the mount to be persistent so I've coded this in the fstab
Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/disk/by-id/ata-ST4000VX016-3CV104_WW62AQFE /media/BACKUP/urbackup btrfs defaults 0 2
But the disk doesn't get mounted on boot. What am I doing wrong ?