Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with trash and partitions #13

Closed
protist opened this issue Jan 31, 2013 · 5 comments
Closed

Problems with trash and partitions #13

protist opened this issue Jan 31, 2013 · 5 comments

Comments

@protist
Copy link

protist commented Jan 31, 2013

I've got an SSD and (spindle) HDD, and several partitions on my computer. The SDD contains / and /home, and the HDD contains /home/protist/HDD (via fstab). The HDD also contains /home/protist/.local/share/Trash via symlinks. I can trash files perfectly if they reside within /home/protist/HDD, but cannot trash files that are directly in /home/protist.

$ touch ~/temp
$ trash ~/temp 
trash: cannot trash regular empty file `temp'

I've tried creating directories at /.Trash and ~/.Trash, but that did not help.

@andreafrancia
Copy link
Owner

Please provide the output of the following commands and reopen this issue:

$ mount
$ ls -lad /
$ ls -lad /home/
$ ls -lad /home/protist/
$ ls -lad /home/protist/HDD
$ ls -lad /home/protist/.local/share/Trash

@protist
Copy link
Author

protist commented Apr 17, 2013

$ mount 
/dev/sdb5 on / type ext4 (rw,noatime,discard,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
/dev/sdb6 on /home type ext4 (rw,noatime,discard)
/dev/sda2 on /HDD type ext4 (rw,noatime)
/HDD/.SDDsymlinks/var/tmp on /var/tmp type none (rw,bind)
/HDD/.SDDsymlinks/var/log on /var/log type none (rw,bind)
/HDD/.SDDsymlinks/var/cache on /var/cache type none (rw,bind)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
$ ls -lad /
drwxr-xr-x 26 root root 4096 Apr 10 11:27 /
$ ls -lad /home/
drwxr-xr-x 5 root root 4096 Dec 16 20:32 /home/
$ ls -lad /home/protist/
drwxr-x--- 93 protist protist 4096 Apr 18 06:49 /home/protist/
$ ls -lad /home/protist/HDD/
drwxr-x--- 10 protist protist 4096 Apr 12 15:55 /home/protist/HDD/
$ ls -lad /home/protist/.local/share/Trash
lrwxrwxrwx 1 protist protist 49 Dec 18 19:39 /home/protist/.local/share/Trash -> /HDD/protist/.SDDsymlinks/home/protist/.local/share/Trash

I don't think I can reopen the thread without admin rights to the repo.

@andreafrancia andreafrancia reopened this Apr 17, 2013
@andreafrancia
Copy link
Owner

The problem is this link:

lrwxrwxrwx 1 protist protist 49 Dec 18 19:39 /home/protist/.local/share/Trash -> /HDD/protist/.SDDsymlinks/home/protist/.local/share/Trash

trash-cli does not support/address moving file across partitions for bringing them to the trash can.

@protist
Copy link
Author

protist commented Apr 18, 2013

Okay. I thought that this might have been the problem (hence the title). Thank you for the response.

@protist
Copy link
Author

protist commented Jun 5, 2014

I've just installed Arch on my computer, and now I'm running into the opposite of this bug! Again, I have my trash on HDD, and my home on SDD. This time, I can only trash files that are on the SDD! As you can see below, I can trash okay if I specify a full path, or a relative path in some cases.

$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8162056k,nr_inodes=2040514,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sdb7 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw)
/dev/sdb8 on /home type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /HDD type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /var/cache type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /var/log type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /var/tmp type ext4 (rw,relatime,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1632972k,mode=700,uid=1000,gid=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
$ ls -lad /
drwxr-xr-x 18 root root 4096 Jun  5 01:22 /
$ ls -lad /home/
drwxr-xr-x 5 root root 4096 May 21 15:31 /home/
$ ls -lad /home/protist/
drwxr-x--- 115 protist protist 4096 Jun  5 16:52 /home/protist/
$ ls -lad /home/protist/HDD/
drwxr-x--- 10 protist protist 4096 Jun  5 16:53 /home/protist/HDD/
$ ls -lad /home/protist/.local/share/Trash
lrwxrwxrwx 1 protist protist 49 Jun  5 17:04 /home/protist/.local/share/Trash -> /HDD/protist/.SDDsymlinks/home/protist/.local/share/Trash

$ cd ~
$ touch foo
$ trash foo # works
$ cd ~/HDD
$ touch foo
$ trash foo # fails
trash: cannot trash regular empty file `foo'
$ trash ./foo # fails
trash: cannot trash regular empty file `./foo'
$ trash ~/HDD/foo # works
$ touch foo
$ cd ..
$ trash HDD/foo # works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants