Skip to content

Instantly share code, notes, and snippets.

@arter97
Created January 9, 2024 04:51
Show Gist options
  • Save arter97/113493f10fdfa5f98e3b8073827db3a4 to your computer and use it in GitHub Desktop.
Save arter97/113493f10fdfa5f98e3b8073827db3a4 to your computer and use it in GitHub Desktop.
Tesla DashCam/Sentry ext4 formatting
TARGET=/dev/sda1
TMP=/tmp/$(uuidgen)
mkdir $TMP
mkdir $TMP/TeslaCam
chown 1984:1999 $TMP $TMP/TeslaCam
mkfs.ext4 -b 4096 -O ^flex_bg -E lazy_itable_init=0,lazy_journal_init=0,root_owner=1984:1999 -L TESLADRIVE -d $TMP $TARGET
rm -rf $TMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment