0 Members and 1 Guest are viewing this topic.
I've never used Ubuntu, but I did find this forum ...http://ubuntuforums.org/showthread.php?t=1255477&highlight=trash+file
When you say that the icon is there, are you referring to the little orange coloured one up in the top right corner on the black panel bar?Yes I amIf so then it seems that something has got out of kilter here. At one point the trash folder just used to be called .Trash/, and was located in your home folder i.e. ~/.Trash/ (where ~/ is equivalent to /home/karen/), but it now seems to have been moved to .local/share/Trash/ i.e. ~/.local/share/Trash/, so I'm wondering if this might be something to do with it.OKSo, the first thing to do is to see which of these trash folders actually exists. You'll need to tell Nautilus (the file manager) to display hidden files to see anything that starts with a '.', and it might be easier to use a list or detailed list view instead of an icon view while you check this out.So Nautilus is the file manager eh? How do I access it? When I find it what do I type in? The hyphen, period, hyphen, comma, like this? '.', or what?One thing that's going to make it a bit tricky to resolve this is the 'trash:///' handler. Although we can see that Nautilus seems to be expecting to find a file named '2009-06-18-193749.ogv' in trash:/// we don't know exactly where it's expecting to find it because the actual folder path prefix is hidden by that 'trash:///' prefix; it comes back to whether it's ~/.Trash/ or ~/.local/share/Trash/OK..I suspect that Nautilus is actually expecting to find this file in ~/.local/share/Trash/, rather than in ~/.Trash/ because the scheme for managing trash seems to have changed too. I believe that the old scheme, where trash was simply stored in ~/.Trash/, didn't use any metadata to manage the trash; when you looked at your trash the file browser simply looked in the ~/.Trash/ folder and obtained the file info directly from the files in there. This meant that only files that actually existed in the ~/.Trash/ folder would be shown or considered for trash management.Yes I believe that that was how it worked for months before this new problem!The new scheme though, seems to use metadata to manage trash. If you have a ~/.local/share/Trash/ folder, and I strongly suspect that you do, then you'll find that it'll contain two sub-folders, named 'files/' and 'info/'. The reason I suspect that you have a ~/.local/share/Trash/ folder is that Nautilus has got that '2009-05-18-193749.ogv' filename from somewhere, even though the actual file doesn't seem to exist, and this points to the filename being held in metadata somewhere.How do I find "metadata"?Now I use KDE instead of Gnome, so this might be different, but I just deleted (moved to trash) a test file and found that on my (Debian) system I ended up with the file itself being moved to ~/.local/share/Trash/files/ whilst at the same time, a new file was created in ~/.local/share/Trash/info/ having the same name as the real file but with a '.trashinfo' suffix added to it: this is a plaintext metadata file that contains the original path to the file i.e. where you deleted it from, and the date and time that it was deleted.A bit confusing but ok...I'm guessing then, that when you click on the trash icon, Nautilus is looking in the ~/.local/share/Trash/info/ folder and finding a file called 2009-06-18-193749.ogv.trashinfo but when it then looks in ~/.local/share/Trash/files/ for the file named 2009-6-18-193749.ogv it can't find it.That sounds about right!Now you may have stumbled across that 2009-06-18-193749.ogv file whilst checking out where your trash folder is located, but if not, try searching for it. I think you can do this either from Nautilus or from the menu, but you need to make sure that you're starting your file search from the top level of your home folder i.e. ~/ or /home/karen/, and that you search all sub-folders recursively.Could you explain how to do this search?If you manage to find this file you can either move it into the ~/.local/share/Trash/files/ folder, which should stop that particular error (but other files might turn out to be missing as well), or if you wanted to recover it, move it to where you want to keep it and then delete the file called 2009-06-18-193749.ogv.trashinfo from the ~/.local/share/Trash/info folder instead, so Nautilus no longer looks for it. Ok I will try it when I find out how to do the search...If you can't find the 2009-06-18-193749.ogv file anywhere, then it looks like it has been permanently deleted and can't be recovered, and your only option is to remove the 2009-06-18-193749.ogv.trashinfo file to stop Nautilus from complaining.Ok That makes sense...The most worrying thing is how the trash metadata has managed to become inconsistant and get out of step with the actual trash files. If you've been using the built-in trash handling interfaces to manage your trash then the metadata should have been consistant. One possibility however, is that you've had a system crash at some point and when the filesystem was checked on restart, fsck found a problem with the 2009-06-18-193749.ogv file in the ~/.local/share/Trash/files/ folder and moved it to /lost+found. Therefore, if the file hasn't turned up anywhere else, you could try having a look there for it. Note though, that I think you'll need root privileges to access /lost+found and if the file has been moved there it will have been renamed, probably just to a sequence of numbers. This isn't ideal, of course, but when a file is moved to /lost+found it is precisely because the system can't tell what it should be called and where it should be. If you do find any files in /lost+found you can either try opening them with the appropriate application to see if they work, or have a look at them with a hex editor to see if there's anything in the file itself that gives a clue as to what it is.
So Nautilus is the file manager eh? How do I access it? When I find it what do I type in? The hyphen, period, hyphen, comma, like this? '.', or what?
How do I find "metadata"?
Could you explain how to do this search?
I did have a bit of a crash during a battery failure and had a hard time rebooting and when it came back up is when I noticed a day or so later when I went to use the trash that it was gone!!Now for some reason I have seen the lost and found thing you are showing in my search and it seemed that it was full of files.. but don't quote me... I don't know how I found them but I did.... I do not know how to get back there now.. but will try!