"block detect" gives me this:

config 'mount'
        option  target  '/mnt/sda1'
        option  uuid    '8c6c-0792'
        option  enabled '0'

By toggling enabled to '1' I can get fstab to work. But only for that one known USB stick.

How can I enable the same mount point to accept any inserted USB stick?
That was possible with the previous block-mount implementation.

When I look at the source code, it seems to me that there is no such option...
http://nbd.name/gitweb.cgi?p=luci2/ubox.git;a=blob;f=block.c;h=d456dd586ff741fdd556b6a11d7eec6a50e8cf2b;hb=ab78547f19ce30efc845ce1229b766eddb8efa16

Earlier it was possible to leave out uuid and just specify the device to be monitored.

On 26.6.2013 13:47, John Crispin wrote:
On 26/06/13 12:46, Hannu Nyman wrote:
"ubox" takes care of the block-mount actions since r36988:
https://dev.openwrt.org/changeset/36988

However, there is no documentation about the current fstab config
format. I have been unable to get fstab working. My USB disk not not
mount automatically, although I can manually mount it just fine.

There is already a forum discussion about this change and it looks like
fstab is not working for several users.
https://forum.openwrt.org/viewtopic.php?id=44939

None of the wiki articles on block-mount & fstab have been updated yet,
so it would be great if developers would give hints about the correct
configuration for fstab automatic mounting (and verify that the
automount really works).



Hi,

on the system call "block detect" to get a sample uci config.

if target is / then it will be used as extroot

"block info" is also valid to get the uuid.

if you make it work, please update the wiki

    John


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to