Cannot move files to Trash

Question

I have a second hard disk – there are three VFAT partitions in this disk. When I delete files from any of these three partitions, files do not go to Trash, but I am prompted saying ‘Cannot move file to trash, do you want to delete immediately?’

My FSTAB entries are like this.
/dev/sdb1 /media/SONGS vfat defaults,users,umask=000 0 0
/dev/sdb5 /media/BACKUP vfat defaults,users,umask=000 0 0
/dev/sdb3 /media/FILES40NEW vfat defaults,users,umask=000 0 0

Answer

You must add uid=1000 and gid=1000 to resolve this problem.

Change the FSTAB file like shown below.

/dev/sdb1 /media/SONGS vfat defaults,users,umask=000,uid=1000,gid=1000 0 1
/dev/sdb5 /media/BACKUP vfat defaults,users,umask=000,uid=1000,gid=1000 0 1
/dev/sdb3 /media/FILES40NEW vfat defaults,users,umask=000,uid=1000,gid=1000 0 1

Save the file and restart the computer. Create a folder called .Trash-1000 in the root of these partitions. Now, when you delete a file from these VFAT partitions, the files will move to Trash directly.

Advertisements
Published in: on June 19, 2008 at 10:48 am  Comments (5)  

The URI to TrackBack this entry is: https://ubuntuissues.wordpress.com/2008/06/19/cannot-move-files-to-trash/trackback/

RSS feed for comments on this post.

5 CommentsLeave a comment

  1. Thanks for your help! 🙂

  2. Hey This worked for me as well, but the guide is good for n00bs! It took me some time to figure it out.

  3. Amazing story, I did not thought reading it would be so amazing when I read the title with link.

  4. A similar issue exists with Wubi / Ubuntu 9.10. Windows files found within the /host folder and sub-folders cannot be moved to the Trash. Instead of modifying the FSTAB file, edit the /etc/default/grub file and modify the corresponding line as follows: GRUB_CMDLINE_LINUX_DEFAULT=”rootflags=umask=007,uid=1000,gid=1000 quiet splash”. Regenerate the GrUB menu: sudo update-grub. After rebooting, files within the /host folder can be moved to the Trash. Hope this saves someone a couple of hours.

    • One more thing: the .Trash-1000 folder must be created within the /host folder.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: