mount exfat for rw (#812)
This commit is contained in:
parent
3dc859933b
commit
b8d15d5278
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ mountusb() { \
|
||||||
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
partitiontype="$(lsblk -no "fstype" "$chosen")"
|
||||||
case "$partitiontype" in
|
case "$partitiontype" in
|
||||||
"vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;;
|
"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";;
|
*) sudo -A mount "$chosen" "$mp"; user="$(whoami)"; ug="$(groups | awk '{print $1}')"; sudo -A chown "$user":"$ug" "$mp";;
|
||||||
esac
|
esac
|
||||||
notify-send "💻 USB mounting" "$chosen mounted to $mp."
|
notify-send "💻 USB mounting" "$chosen mounted to $mp."
|
||||||
|
|
Loading…
Reference in a new issue