不同 BTRFS 子卷上的 trash-cli

不同 BTRFS 子卷上的 trash-cli

我有一个安装了 的@home BTRFS 子卷/home/MYUSER,以及一个安装了 / 的@ 子卷。

我将数据保存在 /mnt/dataint/data/SOMETHING 上。

我无法从中删除/mnt/dataint/data/SOMETHING。这两个子卷实际上位于同一物理驱动器上,这只是我获得的默认文件系统结构:

❯ trash -v MYFILE.backup 
trash: volume of file: /
trash: trying trash dir: /home/MYUSER/.local/share/Trash from volume: /home
trash: won't use trash dir ~/.local/share/Trash because its volume (/home) in a different volume than MYFILE.backup (/)
trash: found unusable .Trash dir (should be a dir): /.Trash
trash: trash directory is not secure: /.Trash/1000
trash: trying trash dir: /.Trash-1000 from volume: /
trash: failed to trash MYFILE.backup in /.Trash-1000, because: [Errno 13] Permission denied: '/.Trash-1000'
trash: cannot trash regular file 'MYFILE.backup'

我确实想使用它,/home/MYUSER/.local/share/Trash因为它与我的桌面环境兼容。

相关内容