Hello,
As an alternative method, to define mount points, you could try the following:
First, get UUID of storage device by running the command:
The example output is below:
/dev/mtdblock5: UUID="5385a573-46532cb1-817cdc87-d2c06207" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/mtdblock6: MOUNT="/overlay" TYPE="jffs2"
/dev/mtdblock7: MOUNT="/log" TYPE="jffs2"
/dev/mmcblk0p1: UUID="ba13efc4-0ee1-4cab-b672-135d0b1bcb5e" LABEL="RUTOS_overlay" VERSION="1.0"
SDcard is mounted at /mnt/mmcblk0p1 and UUID is ba13efc4-0ee1-4cab-b672-135d0b1bcb5e.
Now modify /etc/config/fstab file, add:
config 'mount'
option target '/path/where/mount/is/needed'
option uuid '<uuid>'
option enabled '1'
For example:
config 'mount'
option target '/mnt/test'
option uuid 'ba13efc4-0ee1-4cab-b672-135d0b1bcb5e'
option enabled '1'
Save this config, create /mnt/test path within the device and reboot the device. Before reboot it was mounted in /mnt/mmcblk0p1:
root@Teltonika-RUT955:/mnt# df -hT | grep mmc
/dev/mmcblk0p1 ext2 14.2G 16.8M 13.5G 0% /mnt/mmcblk0p1
After reboot:
root@Teltonika-RUT955:~# df -hT | grep mmc
/dev/mmcblk0p1 ext2 14.2G 16.8M 13.5G 0% /mnt/test
Best regards,