[SOLVED] How to mount partition with data in lxc?

s0n1cc

New Member
Jun 19, 2023
2
0
1
Good day.
I would like to mount a partition (ext4) with data under the LXC container (alpine).
Despite the visibility of the partition under the lsblk command, it does not exist in /dev

lxc_console.png

Under "node" you can mount the data without any problem.

node_disks.png

node_console.png

Any suggestions on how to solve the problem?
The mount point requires preparation of the disk - loss of data.
Above is a test environment (all ideas allowed), but I would like to know how to do it seamlessly "in production" without losing/moving data .
Regards.
 
Good day.
I knew it was a matter of one command.
I was trying with "mount point" and it is "bind mount point".
Thank you for the proper guidance.
Regards.