Skip to content

Instantly share code, notes, and snippets.

@lamngockhuong
Created February 27, 2018 07:24
Show Gist options
  • Select an option

  • Save lamngockhuong/e07630611db85f6f3efd59fdcc5c3937 to your computer and use it in GitHub Desktop.

Select an option

Save lamngockhuong/e07630611db85f6f3efd59fdcc5c3937 to your computer and use it in GitHub Desktop.
[Mount disk command for NTFS partitions] #ubuntu #linux

For NTFS partitions, use the permissions option in fstab. First unmount the ntfs partition. Identify your partition UUID with blkid

sudo blkid

Then edit /etc/fstab

# Graphical 
gksu gedit /etc/fstab

# Command line
sudo -e /etc/fstab

And add or edit a line for the ntfs partition

# change the "UUID" to your partition UUID
UUID=12102C02102CEB83 /media/windows ntfs-3g auto,users,permissions 0 0

Make a mount point (if needed)

sudo mkdir /media/windows

Now mount the partition

mount /media/windows

The options I gave you, auto will automatically mount the partition when you boot and users allows users to mount and umount. You can then use chown and chmod on the ntfs partition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment