Stepping back a bit: the udevil service on LE mounts the hard drives under /var/media
Any disk that does not meet the following conditions is automatically mounted - https://github.com/LibreELEC/Libr…vil-mount.rules if you do not want something automounted by udevil - then it must be excluded by one of these criteria.
Going to your question - using the docker argument: -v /var/media/data:/data would be like typing the following command in the Docker container: # mount /dev/sda1 /data
So it’s not really an nvme / sata question. More as saying - I am mounting a directory from my host operating system as a mount point in my container.
# journalctl -f
***** I disconnected my USB drive with a disk label of ZZ4
Nov 28 12:54:33 nuc11 kernel: usb 4-4.2.2: USB disconnect, device number 6
Nov 28 12:54:33 nuc11 systemd[1]: Stopping Udevil mount service...
Nov 28 12:54:33 nuc11 systemd[1]: var-media-ZZ4.mount: Deactivated successfully.
Nov 28 12:54:33 nuc11 systemd[1]: [email protected]: Deactivated successfully.
Nov 28 12:54:33 nuc11 systemd[1]: Stopped Udevil mount service.
***** I connected my USB drive with a disk label of ZZ4
Nov 28 12:54:37 nuc11 kernel: usb 4-4.2.2: new SuperSpeed USB device number 7 using xhci_hcd
Nov 28 12:54:37 nuc11 kernel: usb-storage 4-4.2.2:1.0: USB Mass Storage device detected
Nov 28 12:54:37 nuc11 kernel: scsi host4: usb-storage 4-4.2.2:1.0
Nov 28 12:54:38 nuc11 kernel: scsi 4:0:0:0: Direct-Access WD Elements 25A1 1005 PQ: 0 ANSI: 6
Nov 28 12:54:38 nuc11 kernel: scsi 4:0:0:0: Attached scsi generic sg2 type 0
Nov 28 12:54:38 nuc11 kernel: sd 4:0:0:0: [sdc] Spinning up disk...
Nov 28 12:54:44 nuc11 kernel: ......ready
Nov 28 12:54:44 nuc11 kernel: sd 4:0:0:0: [sdc] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
Nov 28 12:54:44 nuc11 kernel: sd 4:0:0:0: [sdc] Write Protect is off
Nov 28 12:54:44 nuc11 kernel: sd 4:0:0:0: [sdc] Mode Sense: 53 00 10 08
Nov 28 12:54:44 nuc11 kernel: sd 4:0:0:0: [sdc] No Caching mode page found
Nov 28 12:54:44 nuc11 kernel: sd 4:0:0:0: [sdc] Assuming drive cache: write through
Nov 28 12:54:44 nuc11 kernel: sdc: sdc1 sdc2
Nov 28 12:54:44 nuc11 kernel: sd 4:0:0:0: [sdc] Attached SCSI disk
Nov 28 12:54:45 nuc11 systemd[1]: Starting Udevil mount service...
Nov 28 12:54:45 nuc11 udevil[3486724]: Mounted /dev/sdc2 at /media/ZZ4
Nov 28 12:54:45 nuc11 systemd[1]: Finished Udevil mount service.
# mount | grep ZZ4
/dev/sdc2 on /var/media/ZZ4 type exfat (rw,nosuid,nodev,noexec,noatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)
Display More