默认情况下,在我们使用的Debian版本上,Beaglebone black将/ boot / uboot挂载为大容量存储的文件夹(所以当我将其连接到PC时,我会看到该文件夹的内容)。我想在启动时将文件夹更改为公共可读和可写目录,但我很难找到实际发生挂载的启动脚本。有人可以帮忙吗?
答案 0 :(得分:1)
You can have a look to this question: Where is g_multi configured in BeagleBone Black?
As some of the comments stated, it is a bit difficult to make this work.
You would have to share its mounting on a timely basis. If you remove g_multi module (or the mass storage specific module) then the PC sees the device as disconnected, and you load module again it gets reconnected. You could make the changes to the filesystem in the meanwhile. If shared filesystem is a bit large, you could prepare two filesystems, one for writing and the shared one could get synchronized with rsync or something similar.
The schema would be something like this:
writing to the alternate filesystem -> module unloading -> mounting rw -> rsync -> unmounting -> module loading
But you will always have the problem of device getting disconnected and reconnected again in the PC. You could synchronize it someway, but that is a different problem.
答案 1 :(得分:-1)
所有静态安装都使用/ etc / fstab
完成