You are not logged in.

#1 2014-04-06 08:41:58

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

Deleted file wont show in the trash

Hi, i'm new to Arch and english is not my native, so please bear with me smile

I've installed Arch with Gnome 3 into my ThinkPad T520 with following configuration:

  • SSD formatted partitionless with btrfs filesystem.

  • I created 10 subvolume to organize my files.

    mount /dev/sda /mnt/hdd
    btrfs subvol list /mnt/hdd
    ID 260 gen 2317 top level 5 path _snapshots
    ID 263 gen 3757 top level 5 path _arch
    ID 264 gen 3757 top level 5 path _home
    ID 281 gen 3491 top level 5 path _documents
    ID 283 gen 3538 top level 5 path _vms
    ID 284 gen 3293 top level 5 path _tugas_sd
    ID 285 gen 3158 top level 5 path _pictures
    ID 286 gen 3683 top level 5 path _music
    ID 287 gen 3224 top level 5 path _videos
    ID 288 gen 3506 top level 5 path _software
    ID 430 gen 2338 top level 5 path _snapshots/arch-2014-04-05
  • Then mount that sobvolumes to directory inside my /home

    cat /etc/fstab
    # UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15 LABEL=arch
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/         		btrfs  	rw,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache,subvol=_arch		0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home         		btrfs  	rw,relatime,compress=lzo,ssd,space_cache,autodefrag,inode_cache,subvol=_home		0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/Documents	btrfs  	defaults,subvol=_documents	0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/Music		btrfs  	defaults,subvol=_music		0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/Pictures	btrfs  	defaults,subvol=_pictures	0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/Software	btrfs  	defaults,subvol=_software	0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/Tugas\040SD   btrfs	defaults,subvol=_tugas_sd	0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/Videos 	btrfs  	defaults,subvol=_videos		0 	0
    UUID=19ba2e27-6f2a-4410-a7ee-00c36f8bfa15	/home/iza/VMs  		btrfs  	defaults,subvol=_vms		0 	0

All nice and well, except one thing. When i delete files originally locate in subvolumes but mounted to my /home, the files gone but not showing in the trash.
Instead, deleted files moved to hidden folder named .Trash-1000.
If that sound confussing, let me give an example, when i delete file from /home/iza then that file gone and showing up in the trash. But, when i delete a file from /home/iza/Documents then that file is gone but not showing in the trash but moved to /home/iza/Documents/.Trash-1000.

Is this a bug in btrfs or because my messy mountpoint/fstab?

Thanx smile

Offline

#2 2014-04-06 08:47:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Deleted file wont show in the trash

Not an Installation issue, moving to Newbie Corner...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-04-06 08:54:15

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Deleted file wont show in the trash

if you 'move' something to the trash then it just creates a new filesystem pointer for the file, rather than actually rewriting the data, just like if you perform a 'move' on the same filesystem. to avoid having to actually rewrite the file (and avoid any size collisions that may occur moving a too-large file to a too-small file system) if the file is outside your 'home' partition, it will just move it to an aptly named trash folder on that other partition.

Offline

#4 2014-04-06 09:13:21

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

Re: Deleted file wont show in the trash

@ Adninistrator: i'm sorry gan smile

@HilmTye: Don't normally it's just showing up in the trash (icon in left side pane)? I think that what usually happen when i delete file from normal partition.

Offline

#5 2014-04-06 10:28:31

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: Deleted file wont show in the trash

it's normally invisible to the end user. they're stored in a dot folder named trash and then your UID, so if you're not looking for them, you likely wouldn't ever notice them. the only issue here is that they're not showing up in Gnome Shell's trash

Offline

#6 2014-04-06 11:23:08

Spider.007
Member
Registered: 2004-06-20
Posts: 1,176

Re: Deleted file wont show in the trash

If you delete a file on a different partition; a .Trash-1000 (where the last part is your userid) directory is created (in the root of the partition); it will contain the file. Gnome should apparently traverse all partitions to merge all these files and show them in the 'Trash'; somehow that doesn't work. Can you check if a .Trash-1000 folder exists on all partitions you created? If they do, the problem is in Gnome not properly populating them.

The same issue is described here, without a solution unfortunately: https://bbs.archlinux.org/viewtopic.php?id=40580 and http://ubuntuforums.org/showthread.php?t=785512

Last edited by Spider.007 (2014-04-06 11:29:25)

Offline

#7 2014-04-06 14:08:20

si_kabayan
Member
Registered: 2014-04-01
Posts: 10

Re: Deleted file wont show in the trash

@ Spider.007 : Yes, .Trash-1000 is created and deleted file is in there.  My case similar to your linked threads.

I hope Gnome 3.12 will solve this issue. Thanx all ... smile

Offline

Board footer

Powered by FluxBB