Trashcan support on NTFS volumes

From WickyWiki
Revision as of 20:50, 12 January 2012 by Wilbert (talk | contribs)


Modify fstab

To enable Trash can support on a NTFS partition you will have to make an entry in your /etc/fstab file. You must specify the drive by UUID and assign a userid.

To find the correct UUID:

sudo blkid

Returns:

...
/dev/sda2: LABEL="Ubuntu" UUID="12312312312312312" TYPE="ext4" 
/dev/sda3: LABEL="Data" UUID="45645645645645645" TYPE="ntfs" 
...

Now edit fstab:

sudo gedit /etc/fstab

Add the following lines:

...
# NTFS Partitions
UUID=45645645645645645   /media/DATA   ntfs-3g   defaults,uid=1000,locale=en_US.UTF-8   0   0
...

Modify fstab, don't mount with boot

To prevent automatic mounting add 'noauto':

...
# NTFS Partitions
UUID=45645645645645645   /media/DATA   ntfs-3g   defaults,noauto,uid=1000,locale=en_US.UTF-8   0   0
...

Now remount the partitions.

sudo umount -a
sudo mount -a

Mount manually

sudo mkdir /media/DATA
sudo mount /dev/sda3 /media/DATA -o defaults,noauto,uid=1000,locale=en_US.UTF-8