From 70a34024392f94ed37f0b98434a762680fef8033 Mon Sep 17 00:00:00 2001 From: maxim-h Date: Sat, 14 Dec 2019 23:08:41 +0300 Subject: [PATCH] Add ntfs mounting support Additional support for mounting ntfs filesystem drives. Would require adding ntfs-3g to dependencies though I'm not sure where such a list is in LARBS. --- .local/bin/dmenumount | 1 + 1 file changed, 1 insertion(+) diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount index 67844024..3f9024b0 100755 --- a/.local/bin/dmenumount +++ b/.local/bin/dmenumount @@ -23,6 +23,7 @@ mountusb() { \ partitiontype="$(lsblk -no "fstype" "$chosen")" case "$partitiontype" in "vfat") sudo -A mount -t vfat "$chosen" "$mp" -o rw,umask=0000;; + "ntfs") sudo -A ntfs-3g "$chosen" "$mp" -o rw,umask=0000;; *) 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."