Software to run exFAT
Depending on the version of Ubuntu or Ubuntu based operating system you may or may not need to install the following program packages,
sudo apt-get install exfat-utils exfat-fuse
See this link for more details,
How do I copy a file larger than 4GB to a USB flash drive?
Mounting exFAT
Many versions of Ubuntu and Ubuntu based operating systems will mount Microsoft file systems (FAT32, exFAT, NTFS) with read/write permissions automatically for root as well as the current user.
But some versions (of Ubuntu and Ubuntu based operating systems) will mount them with write permissions only for root (or not at all). Then you can unmount and remount (mount) the file system with commands like this,
Create mountpoint (only if you want a new mountpoint)
sudo mkdir -p /mnt/sd1
Unmount (only if already mounted)
sudo umount /dev/sdxn # general syntax
sudo umount /dev/sdb1 # modify to match your case
Check your userID's uid
number (it is usually 1000, sometimes 1001 or 1002 ...)
grep ^"$USER" /etc/group
and use that number if you want to grab ownership (default is root
).
Example of mount command line that should give you something that is close to what you want,
sudo mount -o rw,users,uid=1000,dmask=007,fmask=117 /dev/sdxn /mnt/sd1 # general syntax
sudo mount -o rw,users,uid=1000,dmask=007,fmask=117 /dev/sdb1 /mnt/sd1 # modify to match your case
See this link for more details,
How to change default permissions on automounted usb flash, formatted in NTFS?
Best Answer
Notice: If you are using Ubuntu 14.04 and later, Don't forget to check the note at the end of the answer
Go to the Startup Applications, by Clicking right-top corner Settings icon ---> Startup Applications.
The click on the Add button, Write a name for this operation such as "Mount ntfs drives", then in command input box, write this
udisks --mount /dev/sda2
, to automount the ntfs partition.Note: You need to replace the
/dev/sda2
with your actual NTFS partition number.You can get this number by this command:
Below is the output of this command in my computer.
For Mounting with Executable permission
For those of you (like me) who wants to have executable permission to be set upon mounting, so that you can have options for execute a file with double-clicking , Add this extra bit of options with
udisks
command.So, the total line for
/dev/sda2
should be like this (tested on 13.04)Caution: If you are a bit worried with security, you may choose not to have this functionality.
Note: Change for Ubuntu 14.04 and later
If you are using Ubuntu 14.04 or newer versions, You may notice that
udisks
packages is no longer available there. Yes, it is replaced byudisksctl
package. So, You need to useudisksctl
instead ofudisks
. It is basically do the same things, but syntax is more easier.The mount command is --
(in the case your targeted partition is
/dev/sda2
) Here,-b
is indicating that it is a block deviceTo enable executable permission ---
(Here
-o
indicating that following are options for udisksctl).You can access the man page of udisksctl with
man udisksctl
command or read it online here!