Cannot move file to trash, do you want to delete immediately?" on EXT4 partitions on ubuntu 22.04 et Linux Mint 21 ( trash work perfectly on ubuntu 20.04 )

Bug #1990293 reported by den
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
Triaged
Low
Unassigned
Jammy
New
Undecided
Unassigned

Bug Description

Hi , when i delete a file where is in another partition than " / " or mounted in /media/xxxx , i obtain the message in title.

how can i use trash again please ?

iznobe@iznobe-PC:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=eb18366b-2ac9-4a7e-8f93-ba2caa30e90e / ext4 noatime,errors=remount-ro 0 1

# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=C071-9050 /boot/efi vfat defaults 0 0

# swap was on /dev/sdc3 during installation
UUID=61218fe2-0bd1-4ada-9dd3-5ec996a02456 none swap sw,pri=1 0 0

# partition de données separée comune aux OS linux
UUID=01c9b796-0869-4ff9-a2a1-6c0f56ed5257 /datas ext4 defaults 0 0
LABEL=WD8 /Vidéos/WD8 ext4 defaults 0 0
#/dev/disk/by-label/WD8PRO2 /media/WD8PRO2 ext4 defaults 0 0

LABEL=WD8PRO2 /Vidéos/WD8PRO2 ext4 defaults 0 0

LABEL=WD8PRO1 /media/WD8PRO1 ext4 defaults 0 0
LABEL=Seagate_4T /media/Seagate_4T ext4 defaults,noauto 0 0

trash is working for filesysteme mounted on /media/WD8PRO1 but not in FS mounted on /Vidéos/WD8PRO2 and /Vidéos/WD8 using ubuntu 22.04.1 LTS .

Exactly same file systeme mounted on same directory , with same trash directory is working fine on ubuntu 20.04

[Workaround]

Rename the mount point to not include non-ASCII characters.

den (iznobe)
description: updated
den (iznobe)
description: updated
description: updated
den (iznobe)
description: updated
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

I'm not sure if this problem is happening on Linux Mint 21 or Ubuntu 22.04.1. While Linux Mint is based on Ubuntu, it is not the same as Ubuntu, and may have behaviors (and bugs!) that differ from Ubuntu's. Could you clarify which Linux distro you're experiencing this problem on?

Revision history for this message
den (iznobe) wrote (last edit ):

i have this probleme only on ubuntu 22.04.1 LTS AND on linux mint 21 .

i have tested on ubuntu 20.04 and all works fine .

i have a debian testing , if you want , i can do the same things to see if the problem is still present on this OS .

Revision history for this message
Simon Chopin (schopin) wrote :

Out of curiosity, would it work if you rename Vidéos into Videos?

Revision history for this message
den (iznobe) wrote (last edit ):

Hello :
iznobe@iznobe-PC:~$ sudo nano /etc/fstab
iznobe@iznobe-PC:~$ sudo mkdir -pv /Videos/WD8 /Videos/WD8PRO2
mkdir: création du répertoire '/Videos'
mkdir: création du répertoire '/Videos/WD8'
mkdir: création du répertoire '/Videos/WD8PRO2'
iznobe@iznobe-PC:~$ sudo umount -v /Vidéos/WD8 /Vidéos/WD8PRO2
umount: /Vidéos/WD8 démonté
umount: /Vidéos/WD8PRO2 démonté
iznobe@iznobe-PC:~$ sudo mount -av
/  : ignoré
/boot/efi  : déjà monté
none  : ignoré
/datas  : déjà monté
/media/WD8PRO1  : ignoré
/media/Seagate_4T  : ignoré
/Videos/WD8PRO2 : successfully mounted
/Videos/WD8 : successfully mounted
/tmp  : déjà monté
/var/log  : déjà monté
/home/iznobe/.cache  : déjà monté
/media/ramdisk  : déjà monté
iznobe@iznobe-PC:~$

and finally , it works !

iznobe@iznobe-PC:~$ tree /Videos/WD8/.Trash
/Videos/WD8/.Trash
└── 1000
    ├── files
    │   └── test.odt
    └── info
        └── test.odt.trashinfo

3 directories, 2 files
iznobe@iznobe-PC:~$

Revision history for this message
den (iznobe) wrote (last edit ):

what it is amazing :
iznobe@iznobe-PC:~$ tree /Vidéos/.Trash
/Vidéos/.Trash
└── 1000
    ├── files
    │   ├── Nouveau document.txt
    │   └── test.odt
    └── info
        ├── Nouveau document.txt.trashinfo
        └── test.odt.trashinfo

3 directories, 4 files
iznobe@iznobe-PC:~$
Mounting a FS directly on /Vidéos is working well trash include ...

In fact , i tested again in ubuntu 20.04 , and it appears same bug ( now ? ) .
/Vidéos = trash is working
/Vidéos/WD8 and /Vidéos/WD8PRO2 = trash isn't working .

i use this name /Vidéos as parent mountpoints directory because :

iznobe@iznobe-PC:~$ find ~ -maxdepth 1 -type l
/home/iznobe/Ressources
/home/iznobe/Vidéos
/home/iznobe/Documents
/home/iznobe/Musique
/home/iznobe/Téléchargements
/home/iznobe/Public
/home/iznobe/Vidéos_famille
/home/iznobe/Bureau
/home/iznobe/Scripts
/home/iznobe/Modèles
/home/iznobe/Photos
/home/iznobe/Images
iznobe@iznobe-PC:~$

Revision history for this message
den (iznobe) wrote :

Hello , do you think this bug will be corrected soon ? or i change parent directory name of mountpoints ?

Revision history for this message
Dan Bungert (dbungert) wrote :

Thanks for the report.

> do you think this bug will be corrected soon ? or i change parent directory name of mountpoints ?

Probably better off changing the parent directory name, I'm afraid.

Changed in glib2.0 (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Benjamin Drung (bdrung)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.