Skip to content

Instantly share code, notes, and snippets.

@randy3k
Last active December 3, 2024 18:00
Show Gist options
  • Save randy3k/0aa3c3c318a4e86e9fd8f748e8291b31 to your computer and use it in GitHub Desktop.
Save randy3k/0aa3c3c318a4e86e9fd8f748e8291b31 to your computer and use it in GitHub Desktop.
How to mount an exfat and ext4 drive

Mount autmoatically

Use blkid /dev/xxxx to determine UUID of a partition. Then add the following line in /etc/fstab, where UUID should not be quoted.

UUID=XXXX-XXXX  /mnt/media  exfat  defaults,nofail,uid=1000,gid=1000,umask=0022  0  2

Mount manually

sudo mount -t exfat -o uid=1000,gid=1000,umask=0022 /dev/xxxx /mnt/media

Mount autmoatically

Use blkid /dev/xxxx to determine UUID of a partition. Then add the following line in /etc/fstab, where UUID should not be quoted.

UUID=XXXX-XXXX  /mnt/media  ext4  defaults,nofail,noatime 0  2

Mount manually

sudo mount -t ext4 /dev/xxxx /mnt/media
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment