Closed libook closed 2 years ago
I have the same issue, I almost deleted some very important data, luckily I had a non-synced backup of the folder I deleted.
The problem likely depends on your volumes configuration. I've just added a diagnose tool just for this type of cases. Please install the latest version of trash-cli (0.22.8.21) and send here the output of this command
$ trash-list --debug-volumes
@andreafrancia Here is the output:
$ ./trash-list --debug-volumes
physical ->
[sdiskpart(device='/dev/nvme0n1p2', mountpoint='/boot/efi', fstype='vfat', opts='rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro', maxfile=1530, maxpath=4096),
sdiskpart(device='/dev/nvme0n1p3', mountpoint='/', fstype='btrfs', opts='rw,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@', maxfile=255, maxpath=4096),
sdiskpart(device='/dev/nvme0n1p3', mountpoint='/var/log', fstype='btrfs', opts='rw,relatime,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@log', maxfile=255, maxpath=4096),
sdiskpart(device='/dev/nvme0n1p3', mountpoint='/home', fstype='btrfs', opts='rw,relatime,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home', maxfile=255, maxpath=4096),
sdiskpart(device='/dev/nvme0n1p3', mountpoint='/var/cache', fstype='btrfs', opts='rw,relatime,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@cache', maxfile=255, maxpath=4096),
sdiskpart(device='/dev/sda1', mountpoint='/run/media/libook/逗年', fstype='exfat', opts='rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro', maxfile=1530, maxpath=4096)]
virtual ->
[sdiskpart(device='binfmt_misc', mountpoint='/proc/sys/fs/binfmt_misc', fstype='binfmt_misc', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='bpf', mountpoint='/sys/fs/bpf', fstype='bpf', opts='rw,nosuid,nodev,noexec,relatime,mode=700', maxfile=255, maxpath=4096),
sdiskpart(device='cgroup2', mountpoint='/sys/fs/cgroup', fstype='cgroup2', opts='rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot', maxfile=255, maxpath=4096),
sdiskpart(device='configfs', mountpoint='/sys/kernel/config', fstype='configfs', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='debugfs', mountpoint='/sys/kernel/debug', fstype='debugfs', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='dev', mountpoint='/dev', fstype='devtmpfs', opts='rw,nosuid,relatime,size=32865340k,nr_inodes=8216335,mode=755,inode64', maxfile=255, maxpath=4096),
sdiskpart(device='devpts', mountpoint='/dev/pts', fstype='devpts', opts='rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000', maxfile=255, maxpath=4096),
sdiskpart(device='efivarfs', mountpoint='/sys/firmware/efi/efivars', fstype='efivarfs', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='fusectl', mountpoint='/sys/fs/fuse/connections', fstype='fusectl', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='gvfsd-fuse', mountpoint='/run/user/1000/gvfs', fstype='fuse.gvfsd-fuse', opts='rw,nosuid,nodev,relatime,user_id=1000,group_id=1000', maxfile=1024, maxpath=4096),
sdiskpart(device='hugetlbfs', mountpoint='/dev/hugepages', fstype='hugetlbfs', opts='rw,relatime,pagesize=2M', maxfile=255, maxpath=4096),
sdiskpart(device='mqueue', mountpoint='/dev/mqueue', fstype='mqueue', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='portal', mountpoint='/run/user/1000/doc', fstype='fuse.portal', opts='rw,nosuid,nodev,relatime,user_id=1000,group_id=1000', maxfile=None, maxpath=4096),
sdiskpart(device='proc', mountpoint='/proc', fstype='proc', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='pstore', mountpoint='/sys/fs/pstore', fstype='pstore', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='run', mountpoint='/run', fstype='tmpfs', opts='rw,nosuid,nodev,relatime,mode=755,inode64', maxfile=255, maxpath=4096),
sdiskpart(device='securityfs', mountpoint='/sys/kernel/security', fstype='securityfs', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='sys', mountpoint='/sys', fstype='sysfs', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096),
sdiskpart(device='systemd-1', mountpoint='/proc/sys/fs/binfmt_misc', fstype='autofs', opts='rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=19488', maxfile=255, maxpath=4096),
sdiskpart(device='tmpfs', mountpoint='/dev/shm', fstype='tmpfs', opts='rw,nosuid,nodev,inode64', maxfile=255, maxpath=4096),
sdiskpart(device='tmpfs', mountpoint='/tmp', fstype='tmpfs', opts='rw,noatime,inode64', maxfile=255, maxpath=4096),
sdiskpart(device='tmpfs', mountpoint='/run/user/1000', fstype='tmpfs', opts='rw,nosuid,nodev,relatime,size=6575160k,nr_inodes=1643790,mode=700,uid=1000,gid=1000,inode64', maxfile=255, maxpath=4096),
sdiskpart(device='tracefs', mountpoint='/sys/kernel/tracing', fstype='tracefs', opts='rw,nosuid,nodev,noexec,relatime', maxfile=255, maxpath=4096)]
Filesystem 1024-blocks Used Available Capacity Mounted on
dev 32865340 0 32865340 0% /dev
run 32875812 1900 32873912 1% /run
/dev/nvme0n1p3 423828480 89347500 332225380 22% /
tmpfs 32875812 66596 32809216 1% /dev/shm
/dev/nvme0n1p3 423828480 89347500 332225380 22% /var/log
/dev/nvme0n1p3 423828480 89347500 332225380 22% /home
/dev/nvme0n1p3 423828480 89347500 332225380 22% /var/cache
tmpfs 32875812 12532 32863280 1% /tmp
/dev/nvme0n1p2 487472 608 486864 1% /boot/efi
tmpfs 6575160 204 6574956 1% /run/user/1000
/dev/sda1 314565888 143320576 171245312 46% /run/media/libook/逗年
The latest version of the software should solve your issue. Please uninstall any previous version of trash-cli and try to install the latest versions with:
python -m pip install git+https://github.com/andreafrancia/trash-cli
And try again.
It works, thank you!
Describe the bug Can not list files I just trashed in some mount points.
trash-cli version trash-put 0.22.4.16
Operating system:
To Reproduce Copy and paste the commands (and their output) to execute in order to reproduce the behavior:
Expected behavior It can list the file I just trashed; or refuse to trash the file while I was executing the trash command.