Mount emmc config

From ESS-WIKI
Revision as of 03:43, 15 September 2021 by William6.chen (talk | contribs) (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",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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