Trashcan support on NTFS volumes: Difference between revisions
From WickyWiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Category:Ubuntu]] | [[Category:Ubuntu]] | ||
[[Category:Ubuntu System]] | |||
[[Category:Ubuntu Storage]] | |||
[[Category:201201]] | [[Category:201201]] | ||
== 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 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. | ||
| Line 33: | Line 37: | ||
... | ... | ||
# NTFS Partitions | # NTFS Partitions | ||
UUID=45645645645645645 /media/DATA ntfs-3g defaults,uid=1000,locale=en_US.UTF-8 0 0 | UUID=45645645645645645 /media/DATA ntfs-3g defaults,uid=1000,locale=en_US.UTF-8 0 0 | ||
... | ... | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> | ||
== Modify fstab, don't mount with boot == | |||
To prevent automatic mounting add 'noauto': | To prevent automatic mounting add 'noauto': | ||
| Line 44: | Line 50: | ||
... | ... | ||
# NTFS Partitions | # NTFS Partitions | ||
UUID=45645645645645645 /media/DATA ntfs-3g defaults,noauto,uid=1000,locale=en_US.UTF-8 0 0 | UUID=45645645645645645 /media/DATA ntfs-3g defaults,noauto,uid=1000,locale=en_US.UTF-8 0 0 | ||
... | ... | ||
</pre> | </pre> | ||
| Line 54: | Line 60: | ||
sudo umount -a | sudo umount -a | ||
sudo mount -a | sudo mount -a | ||
</syntaxhighlight> | |||
== Mount manually == | |||
<syntaxhighlight lang=bash> | |||
sudo mkdir /media/DATA | |||
sudo mount /dev/sda3 /media/DATA -o defaults,noauto,uid=1000,locale=en_US.UTF-8 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 20:50, 12 January 2012
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