You are not logged in.

#1 2011-03-08 20:44:25

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

[SOLVED] Cannot move file to trash

Hi

When i try to delete files they are deleted but they do not appear in trash bin. So when i click on "Move to trash" the pop up window appear and say:

Cannot move file to trash, do you want to delete immediately?

What am i doing wrong?

Last edited by Shark (2011-03-09 08:23:27)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#2 2011-03-08 20:53:54

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED] Cannot move file to trash

What DE/wm are you using? Try searching the wiki first.

Offline

#3 2011-03-08 20:54:01

emk
Member
Registered: 2010-05-11
Posts: 39

Re: [SOLVED] Cannot move file to trash

What file system do the files reside on? Is it a network filesystem, NTFS or such? You may want to post your /etc/fstab entry fro the relevant partitions here.


emk

Offline

#4 2011-03-08 21:50:31

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [SOLVED] Cannot move file to trash

Hi

@stlarch
I am using Gnome. I have searched forums - no luck. I will search on.

@emk
right now i am not on my computer. I will post fstab tommorow.

If i delete files from archlinux (ext4) the files won't show up in Trash.
But if i mount another ext4 with no OS on it and if i delete the files than files will  show up in Trash. But if i mount another filesystem on which Ubuntu resides the files won't show up in Trash. So i guess that the problem is with filesystems.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#5 2011-03-08 21:53:47

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED] Cannot move file to trash

Try searching for GNOME on the wiki. You'll need to install gvfs if you don't have it already.

Last edited by stlarch (2011-03-08 22:12:54)

Offline

#6 2011-03-09 07:23:35

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [SOLVED] Cannot move file to trash

@stlarxh
I have already got installed gvfs. Interesting thing is that the Trash folder under ~/.local/share/Trash
have the following permission:

drwx------ 4 root root  4096 Feb 27 21:57 Trash

On Ubuntu it has this permissions:

drwx------ 5 saso 1000  4096 Sep 20 10:19 Trash

If i change permission from root to my username i can't delete files at all. Has this got something with group 1000? How can i add group 1000?

@emk
my fstab:

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
/dev/sda3 / ext4 defaults 0 1
/dev/sda1   /media/Razno     ext4   users,auto,errors=remount-ro    0    1

/dev/sda5 swap swap defaults 0 0

/dev/sda3 is ArchLinux, /dev/sda1 is a custom partition.


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#7 2011-03-09 08:22:08

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [SOLVED] Cannot move file to trash

I have solved it.

I did the followings:

mv ~/.local/share/Trash ~/Strange_Trash && mkdir ~/.local/share/Trash && rm -fr ~/Strange_Trash

source: http://crunchbanglinux.org/forums/topic … ms-solved/

It seems that only permissions were the problem. But i am still wondering what this group 1000 menas.

Thx for help guys


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#8 2011-03-09 14:38:15

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,671

Re: [SOLVED] Cannot move file to trash

Shark wrote:

It seems that only permissions were the problem. But i am still wondering what this group 1000 menas.

Thx for help guys

Ubuntu creates a group with same name as your user name, with gid=uid,  as your default group.  Arch uses group users (gid=100) as your default group.

Offline

#9 2011-03-09 15:35:39

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: [SOLVED] Cannot move file to trash

Aaaaaa. Thx skunktrader, that makes sense. And my base of knowledge has increased smile


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#10 2012-07-10 19:17:33

archie0
Member
Registered: 2012-02-26
Posts: 144

Re: [SOLVED] Cannot move file to trash

Had this problem too.
For noobs like me, I'll post the correct command:

sudo mv ~/.local/share/Trash ~/Strange_Trash && mkdir ~/.local/share/Trash && sudo rm -fr ~/Strange_Trash

Offline

Board footer

Powered by FluxBB