WHAT'S NEW?
Loading...

How to automount HPFS/NTFS (exFAT) 64GB USB Stick in Ubuntu 16?

Installing the below packages alone will auto-mounts your exFAT formatted drives ,

sudo apt-get install exfat-fuse exfat-utils

Or you may try to mount it manually after installing the above packages,

sudo mkdir /media/exfat
sudo mount -t exfat /dev/sdxx /media/exfat 

/dev/sdxx - your exfat partition. Use the commands to find your exfat usb

fdisk -l

lsblk 

sudo lsusb will tell you what USB devices Linux detects. Whether a USB storage device mounts, or is detected, are separate issues. sudo lsusb -v will give verbose output, possibly more information than you want if the OS truly doesn't recognize the device.

To unmount it, just enter sudo umount /media/exfat in the Terminal.

In Ubuntu 16, exfat-fuse and exfat-utils packages are available in Universe repository.

So enable this repository inorder to install these two packages on Ubuntu 16.

sudo add-apt-repository universe

And don't forget to update all repositories,

sudo apt-get update


Permanent Mount

In order to mount your USB drive permanently after reboot add the following line into your /etc/fstab config file:

/dev/sdc1       /media/usb-drive           exfat  defaults        0       0 

However, the above mount line may fail if you add or remove additional drives from your Linux system. From this reason it is recommend to use partition UUID instead of a raw block device name. To do so, first locate a UUID of your USB drive:

# ls -l /dev/disk/by-uuid/*
lrwxrwxrwx 1 root root 10 Mar 27 23:38 /dev/disk/by-uuid/2016-08-30-11-31-31-00 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Mar 27 23:38 /dev/disk/by-uuid/3eccfd4e-bd8b-4b5f-9fd8-4414a32ac289 -> ../../sda1
lrwxrwxrwx 1 root root 10 Mar 27 23:38 /dev/disk/by-uuid/4082248b-809d-4e63-93d2-56b5f13c875f -> ../../sda5
lrwxrwxrwx 1 root root 10 Mar 28 01:09 /dev/disk/by-uuid/8765-4321 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Mar 27 23:38 /dev/disk/by-uuid/E6E3-F2A2 -> ../../sdb2

Based on the above ls command output we can see that the UUID belonging to block device sdc1 is
8765-4321 thus our /etc/fstab mount line will be:

/dev/disk/by-uuid/8765-4321    /media/usb-drive         exfat 0   0

Run mount -a command to mount all not yet mounted devices.

# mount -a 

0 comments:

Post a Comment