03-06-2021, 01:49 PM
Thanks for Guide. It's very well written.
I have a question - how to use pmount to mount USB hard drive automatically after boot?
********* This is after boot *********
root@rock64:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
└─sda1 8:1 0 223.6G 0 part
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 7.4G 0 disk
└─mmcblk0p1 179:1 0 7.2G 0 part /
zram0 252:0 0 489M 0 disk [SWAP]
zram1 252:1 0 50M 0 disk /var/log
*********************************************
Now, after pmount command - folder is mounted & I can access folder from network using samba
*************************
root@rock64:~# pmount /dev/sda1 /media/USB3HDD
root@rock64:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
└─sda1 8:1 0 223.6G 0 part /media/USB3HDD
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 7.4G 0 disk
└─mmcblk0p1 179:1 0 7.2G 0 part /
zram0 252:0 0 489M 0 disk [SWAP]
zram1 252:1 0 50M 0 disk /var/log
******************************************
So, the question is How to mount USB3HDD mounting point every time it boots?
Thanks in advance.
I have a question - how to use pmount to mount USB hard drive automatically after boot?
********* This is after boot *********
root@rock64:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
└─sda1 8:1 0 223.6G 0 part
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 7.4G 0 disk
└─mmcblk0p1 179:1 0 7.2G 0 part /
zram0 252:0 0 489M 0 disk [SWAP]
zram1 252:1 0 50M 0 disk /var/log
*********************************************
Now, after pmount command - folder is mounted & I can access folder from network using samba
*************************
root@rock64:~# pmount /dev/sda1 /media/USB3HDD
root@rock64:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
└─sda1 8:1 0 223.6G 0 part /media/USB3HDD
mtdblock0 31:0 0 16M 0 disk
mmcblk0 179:0 0 7.4G 0 disk
└─mmcblk0p1 179:1 0 7.2G 0 part /
zram0 252:0 0 489M 0 disk [SWAP]
zram1 252:1 0 50M 0 disk /var/log
******************************************
So, the question is How to mount USB3HDD mounting point every time it boots?
Thanks in advance.