update:add support for exFAT file system and automatically mount

This commit is contained in:
eng33
2023-11-23 18:07:32 +08:00
committed by luckfox-eng33
parent f17c421d5d
commit 5532a62450
3 changed files with 10 additions and 3 deletions

View File

@@ -289,6 +289,7 @@ CONFIG_EXT4_FS=y
CONFIG_EXPORTFS_BLOCK_OPS=y
# CONFIG_DNOTIFY is not set
CONFIG_VFAT_FS=y
CONFIG_EXFAT_FS=y
CONFIG_TMPFS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y

View File

@@ -15,7 +15,7 @@ ACTION=="add", ENV{ID_FS_TYPE}=="ntfs", RUN+="/bin/mount -t ntfs-3g -o %E{mount_
ACTION=="add", ENV{mount_options_exfat}="rw,uid=1000,gid=1000,dmask=022,fmask=133,noatime"
ACTION=="add", ENV{ID_FS_TYPE}=="exfat", RUN+="/bin/mount -t exfat-fuse -o %E{mount_options_exfat} /dev/%k '/mnt/sdcard'"
ACTION=="add", ENV{ID_FS_TYPE}=="exfat", RUN+="/bin/mount -t exfat -o %E{mount_options_exfat} /dev/%k '/mnt/sdcard'"
ACTION=="add", ENV{mount_options_ext2}="users,exec,noatime"