Hi all,
I am playing maaxboard yocto sumo and zeus branch.
as you know, a USB disk after unplugging and plugging again, the device should change from /dev/sda to /dev/sdb , /dev/sdc ... and so on.
1. in zeus branch
if I add the line :/dev/sda1 /run/media/sda1 auto defaults,sync,rw,user 0 0 in /etc/fstab,
after unplugging and plugging once , it will auto mount it at /run/media/sdb1; unplugging and plugging ,it will auto mount it at /run/media/sdc1. but our app read/write only fix at /run/media/sda1
how can I do that mount USB /dev/sda,/dev/sdb,/dev/sdc/ ... only mount one mount point at /run/media/sda1 ? in zeus branch?
;;;;
2. but in sumo branch, I can do it well!
I add the below lines in /etc/fstab, it works! Although after unplugging and plugging once, the device change to /dev/sdb, sdc,sdd ... but it can always mount at the fixed mount point: /run/media/sda1!
I added in fstab that mean I force mount sdb,sdc,sdd at /run/media/sda1
/dev/sda1 /run/media/sda1 auto rw,user,noauto 0 0
/dev/sdb1 /run/media/sda1 auto rw,user,noauto 0 0
/dev/sdc1 /run/media/sda1 auto rw,user,noauto 0 0
/dev/sdd1 /run/media/sda1 auto rw,user,noauto 0 0
/dev/sde1 /run/media/sda1 auto rw,user,noauto 0 0
/dev/sdf1 /run/media/sda1 auto rw,user,noauto 0 0
/dev/sdg1 /run/media/sda1 auto rw,user,noauto 0 0
...
In zues, I added the same, but it did not work. it worked as I described in 1.
How can I do?
any help?
Thank you very much.
已解决! 转到解答。
I use maaxboard https://www.avnet.com/wps/portal/us/products/new-product-introductions/npi/avnet-maaxboard/ . the processor is imx8mq