I realize that about gparted. But this seems to be something new in the way of a problem, not related to gparted. gparted is but one tool in the arsenal provided for managing hard drives/sticks/SDDs which are treated as hard drives. As an experiment, I tried to install Linux to a NTDS and FAT32 volume and that was a no-go.
It seems a number of prople aren't really reading the later posts I wrote, as they complain I have not set forth a coding question. I explained the problem in depth to warn people from making unnecessary partition changes and what happens if they so it wrong and how to do it right, and that takes words, lots of them.
There is another warning I am going to add now: If you are going to have several partitions all going at once, and move folders and files from a different partition, or delete them off other partitions, make the change permanent by avoiding the trash or empting the trash.
The way Linux plays right now, the active trash is confined to the primary partition, so all that stuff gets added to it as you continue to do this. The trash can then fill the active partition completely and there is no overflow mechanism in place to prevent this. That makes a lot of problems in its own right.
I.m somewhat shaken by the news that different flavors of Linux have different tool sets, and what you learn with one may not fit with another. They don't even have one too that does all, or you may find it takes three tools her to do the job of five tools there. But actually that is a good thing in a way, as it makes each version not like the others, making it harder to write a general hack, and leaving room for innovation, as well as focus on specific audiences like teachers, students, and so on.
So this applies specifically to Ubuntu and derivitives, of which there are many:
Code: Select all
gsettings list-recursively | grep trash
org.gnome.eog.ui disable-trash-confirmation false
org.gnome.gedit.plugins.filebrowser.nautilus confirm-trash true
org.gnome.desktop.privacy remove-old-trash-files false
org.gnome.eog.ui disable-trash-confirmation false
org.gnome.nautilus.preferences confirm-trash true
org.gnome.nautilus.desktop trash-icon-name 'Trash'
org.gnome.nautilus.desktop trash-icon-visible false
org.gnome.nautilus.preferences confirm-trash true
org.gnome.nautilus.desktop trash-icon-name 'Trash'
org.gnome.nautilus.desktop trash-icon-visible false
You can use gsettings to set new values from the terminal, ir install dcof-tools or dconf-editor (the real component in dconf-tools) and make change that way from the GUI. The later way gives you a better idea of what these keys do and even what choices you have, but one you learn this, the first way is faster and cleaner.
This is the likely key that is causing the problem: ",org.gnome.desktop.privacy remove-old-trash-files false". If set true, the old trash should go away at some point. I don't see any setting for how long it is kept, do you confirm the final delete or not after its life expires, or deleting early if the partition gets close to its limit of storage space.
It's mind set again you see. People focus on just one partition as a rule, and that works fine on its own. What they need to do is leave the trash on the original partition, then check all the trash at its source when emptying it. Like a janitoral service checking the trash in each classroom or office space when cleaning the building.
To actually move it to the Trash might seem sensible, but that is like moving all the building's trash into the lobby and leaving it there when you want it out of your room. It may be under wraps and not that noticeable, but it takes up space. Too much space, and nobody gets in or out. Think of the lobby as the primary partition, and you might get my point, especially if you realize the rooms can be in other buildings around you (meaning other partitions), even those connected by bridges and roadways (USB for instance).
I have stated the problem with superblocks several times, and will not repeat myself on that topic. But to satisfy those that still complain I have made no coding request, it should be obvious: Remove or modify orphaned superblocks to avoid future confusion. That means direct writes to specific sectors on any attached hard drive. The specific sectors are mapped by testdisk in its deeper search mode that can be witten to a log file. It that were done, the problem with false superblock leads woud disappear with them. So how to do this one thing in code:
WRITE ZEROS TO A SPECIFIC DRIVE SECTOR.
That is seven words. Not too long for you I hope. Maybe you can even handle a "HOW TO " in front of all that, to make it a question or answer. It's my question, what is you answer?