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)  

Automatically running commands at startup

Question

I’m just wondering if someone knows how to run a programme at startup? I basically need to set up a computer to login to the internet at startup. The way to do it is to run the cyberoam client at startup. It is in the crclient folder (within home folder). So, when I’m doing it through the terminal, I type:

cd ~/crclient
./crclient -u username

This basically allows the computer to login. Is there anyway, I can get both these lines to run automatically at startup?

Answer

Put the command
/home//crclient -u username
in the file /etc/rc.local

Published in: on May 27, 2008 at 4:04 am  Leave a Comment