Find out if automount will mount an SD card from a USB hub
|Status:||Closed||Start date:||07 Jul 2013|
|Category:||04 - Root File System|
|Severity:||02 - High|
I doubt automount is available in the kernel/rootfs. If it isn't, then see what it will take to make it work.
RM #195: Updated mdev.conf to catch USB flash sticks. Added mdev script and configuration file to handle automounting.
#1 Updated by Hammel over 7 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
It doesn't appear autofs is included in PiBox at the moment and autofs4 is not enabled in the kernel.
The kernel config is easy enough to find and enable.I'm having a little trouble finding autofs. It doesn't appear to be in Buildroot. Here is what I've found so far:
It looks like the last one has a link to an autofs daemon code download in the Introduction page. Gentoo's link is a recent autofs with some additional patches.
#5 Updated by Hammel about 7 years ago
- File cross.sh added
- % Done changed from 10 to 20
First thing to do here was to try and cross compile autofs. It was a little harder than piboxd but only a little. Once I realized I had to specify both --host and --build it went much easier.
The cross compile script is attached. I'll convert this to a metabuild for piboxd to generate an opkg.
#9 Updated by Hammel about 7 years ago
- % Done changed from 40 to 80
Tested mdev.conf, blockhandler.sh and block.settings on target. After booting I plugged in a USB stick with an ext3 file system and a AVI movie. The stick was recognized, blockhandler.sh was called and the USB stick mounted under /media/sda1 automatically. Perfect. It worked the first time.
I need test an off-the-shelf SD card and see what filesystem it has (I always put ext3's on mine). Then add that to block.settings and check the whole thing in.
Boom. That was easy!
#11 Updated by Hammel about 7 years ago
- Status changed from In Progress to Closed
- % Done changed from 80 to 100
vfat is on the default cards (mostly) so I added that to the block.settings file and checked it in. This issue can be closed. Any additional issues against automounting will be tracked separately.