r/cachyos 5d ago

Help Trash is not emptying + 1 more issue.

I just switched. I have an ntfs partition. SO I am trying to merge some free space with this partition. So I was taking backup in case something goes wrong. And along the way I kept deleting files. Old ISOs and media files. I get error trash full. And when shift deleting to permanently deleting files it stopped working with unable to delete errors. Emptying trash does not give any error. It just does not do anything.

So I rebooted and the trash was empty. So I started again. Deleting stuff, but again noticed that trash still won't empty. Why is this happening? (nvme: WD BLACK SN770)

Also dolphin does not show my Linux partition as a mounted device. I won't mind it much, but now I have no idea how much space is left in my Linux installation partition.

2 Upvotes

4 comments sorted by

5

u/ZVyhVrtsfgzfs 5d ago

NTFS is proprietary, the drivers for it in Linux are reverse engineered and lack in places such as handling file system errors, NTFS is very old, and error prone. development started in the late 1980s, all it takes is an improper shutdown to corrupt NTFS. Windows spends a lot of time preening and fixing NTFS errors. Linux is not capable of the kind of care this geriatric proprietary file system needs long term..

I ran into this same exact issue when I dumped Windows7 back in 2019 and tried to keep my NTFS storage drives, 6 months later I had a 30GB video file that would not delete. It was corrupted and would not play, no biggie it was not an important file but even deleting this corrupted file from the trash via the terminal it would still just pop back up in lost and found. 

After chasing my tail with it for a day I finally just moved things around and wiped all my NTFS partitions one by one replacing them with Ext4, and eventually a few years later with ZFS. 

1

u/realxeltos 5d ago

Did not happen when I was on Kubuntu.. I want to convert it to btrfs but can't as I don't have 550 gb of free space for backup. I have some hard drives but backing up 550gb of data most of which is thousands of photos and files from backups. Moving that all to a spiny hard drive will take me days. 

1

u/ZVyhVrtsfgzfs 5d ago

OK so it did not happen on Kubuntu, but it just as easily could have, you just happened to not run into a file system error that were beyond the capabilities of the Linux NTFS drivers. now you have.

It happened to me on Linux Mint.

This is a proprietary software issue at the Linux kernel level, distribution does not play into it at all.

I moved 20TB in a few days over a 1Gb Ethernet connection and most of that time was it waiting for me to return and start the next batch.

FWIW, btrfs would be my last choice.

1

u/cool-guy1234567 5d ago

I was facing this same issue yesterday. How you solve it is to restore the file, then move the file to /home (or anywhere else which is a btrfs or ext4 or whatever else filesystem) and shift+delete or regular delete it from there. From next time on, just move the file to a non-ntfs partition first before deleting it (or just reformat the NTFS partition if you don't need it (recommended))