User Manual

268
15. Advanced Configuration
15.16.3 Configuring FTP/TFTP Directory
The FTP or TFTP services can be configured to serve different directories via the command line. For example:
config -s config.services.ftp.directory=/var/mnt/storage.usb/my-ftp-dir
config -r services
The directory will be created if it does not already exist.
15.16.4 Mounting a Preferred USB Disk by Label
The “first” USB storage device is mounted at /var/mnt/storage.usb by detecting the lowest numbered disk partition (e.g., /dev/
sda1). However, this can be constrained to match a particular port or a labelled device.
1. Attach the USB disk you plan to use.
2. Look in directories /dev/disk/by-path/ or /dev/disk/by-label/ to find a suitably stable way of identifying your disk.
3. Use the following command to see the current device matching string used:
config -g config.storage.usb.device
4. Change the path match with (for example):
config -s config.storage.usb.device=/dev/disk/by-label/1103