hotplug sd-card

Hello

I want to use the free sd-card for storage.

I boot with eMMC, so the sd-card is free

I mount the card at startup with fstab:

`

/dev/mmcblk0p1 /media/card auto auto,rw,async,user,nofail 0 0

`

But when I remove the sd-card and insert again, the mount is broken?

How can i setup a hit plug function?

When a sd card is inserted, it sould mount to /media/card

Thank you!

I think you can use UDEV to mount the SD card automatically.

Hello Denis,

may you have a example? I donĀ“t know how it should work.

Thank you!