From b8d15d527838aeae50850458e151ac3a517f389a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Tomi=C4=87?= Date: Tue, 8 Sep 2020 15:23:10 +0200 Subject: [PATCH] mount exfat for rw (#812) --- .local/bin/dmenumount | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index 488522a..b98b6a3 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -25,6 +25,7 @@ mountusb() { \ partitiontype="$(lsblk -no "fstype" "$chosen")" case "$partitiontype" in "vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;; + "exfat") sudo -A mount "$chosen" "$mp" -o uid="$(id -u)",gid="$(id -g)";; *) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";; esac notify-send "💻 USB mounting" "$chosen mounted to $mp."