Difference between revisions of "Mount emmc config"
From ESS-WIKI
(Created page with "<syntaxhighlight lang="bash"> vim /etc/udev/rules.d/11-sd-mount.rules KERNEL!="mmcblk0p5",GOTO="automount_exit" ACTION=="add", SUBSYSTEM=="block",RUN+="/bin/mkdir /mnt/emmc",...") |
(No difference)
|
Latest revision as of 02:43, 15 September 2021
vim /etc/udev/rules.d/11-sd-mount.rules
KERNEL!="mmcblk0p5",GOTO="automount_exit"
ACTION=="add", SUBSYSTEM=="block",RUN+="/bin/mkdir /mnt/emmc",RUN+="/usr/bin/systemd-mount --no-block --automount=yes $devnode /mnt/emmc"
ACTION=="remove", RUN+="/usr/bin/systemd-umount /mnt/emmc",RUN+="/bin/rmdir /mnt/emmc"
LABEL="automount_exit"
:wq
ls /mnt/emmc