Moderator Control Panel ]

Automounter

Automounter

Postby gfi » Fri Apr 12, 2013 7:00 am

Used Busybox 1.20.1 have a little "bug" in hotplug section.

If I put USBstick or microSD, disk isn't mounted. That's normal, missing definitions in mdev.conf.
When I manually add:
sd[a-z][0-9] 0:6 660
mmcblk[0-9]p[0-9] 0:6 660

devices are mouned as right. But If are unpluged, in the root system still showing, also with files.
TVheadend still see potential device for recording, If we have planned records, or autorec in shedule...
(Other, mainly applications too)

Better way is use automounter script, what remove block devices from media folder, if are unplugged.

1. Create directory /lib/mdev
2. Copy info /lib/mdev script "automounter.sh"
3. In mdev.conf:
sd[a-z][0-9] 0:6 660 */lib/mdev/automounter.sh
mmcblk[0-9]p[0-9] 0:6 660 */lib/mdev/automounter.sh

reboot
Edit: little update, I forgot for async OPT parameter
Attachments
automounter.zip
(384 Bytes) Downloaded 296 times
Last edited by gfi on Sun Apr 14, 2013 7:39 am, edited 1 time in total.
gfi
 
Posts: 114
Joined: Tue Mar 05, 2013 10:55 pm

Re: Automounter

Postby bob » Fri Apr 12, 2013 2:10 pm

Thanks!
We will collect the informations and update in the release version.
bob
 
Posts: 63
Joined: Tue Aug 10, 2010 11:42 am


Return to Streaming box development

Who is online

Users browsing this forum: No registered users and 4 guests

cron