Skip to content

Instantly share code, notes, and snippets.

@ruzickap
Last active May 17, 2022 09:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruzickap/10008620 to your computer and use it in GitHub Desktop.
Save ruzickap/10008620 to your computer and use it in GitHub Desktop.
OpenWrt fstab - create and mount external USB stick
mkdir /data
mkfs.ext4 -L data /dev/mmcblk0p1
uci add fstab mount
uci set fstab.@mount[-1].device=/dev/mmcblk0p1
uci set fstab.@mount[-1].target=/data
uci set fstab.@mount[-1].fstype=ext4
uci set fstab.@mount[-1].options=rw,sync,noatime,nodiratime
uci set fstab.@mount[-1].enabled=1
uci set fstab.@mount[-1].enabled_fsck=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment