Giter VIP home page Giter VIP logo

Comments (5)

andreafrancia avatar andreafrancia commented on July 21, 2024

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

from trash-cli.

protist avatar protist commented on July 21, 2024
$ 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.

from trash-cli.

andreafrancia avatar andreafrancia commented on July 21, 2024

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.

from trash-cli.

protist avatar protist commented on July 21, 2024

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

from trash-cli.

protist avatar protist commented on July 21, 2024

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

from trash-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.