Solved Lost desktop directory and all contents!

Today my day started bad! I tried to drag and drop my Desktop icon to the bookmarks bar on Nautilus and that's it. My Desktop directory just disappeared! The system recreated the Desktop directory but I lost all my files from my Desktop directory. Even all the exercises for my certificate!

It is simply impossible just to be deleted all my files (almost 15 GB). How can I restore everything back on my Desktop directory?

Please. I have exams in 20 days!
 
You are aware of the importance of external backups, I hope..

Other than that, I'm sure you know one or more file names from that directory. Just run a find / -type f -name "*filename*" and see if it shows up somewhere.
 
Yes but I never imagined that! Even to delete 15GB needs some time I guess. Is possible to made it just instantly?

I always keep backups but this is maybe the only one that I never kept. My teacher comes everyday to teach me C programming. All my programs were on Desktop because I used them every day.
 
Backups are always the solution to unimaginable events. Anyway, all I can offer is the find suggestion. If it's on your system and you know the filename, find, will find it.
 
It probably just moved the files, that's why it was 'instantaneous'. Find out where Nautilus stores its bookmarks, I'm fairly sure the files are there. Most likely it's somewhere in ~/.local/.
 
Yes but I never imagined that! Even to delete 15GB needs some time I guess. Is possible to made it just instantly?

I always keep backups but this is maybe the only one that I never kept. My teacher comes everyday to teach me C programming. All my programs were on Desktop because I used them every day.

Assuming you are using UFS and it hasn't been too long since you deleted them, you could always use a program called UFS Explorer to recover the data. It worked for me when my Xfce recycle bin bypass accidentally wiped out a bunch of my stuff (about 3.5 years ago). :)
 
The name of my folder was C_Mathhma. Using gnome-search tool I search the folder everywhere. On my home directory, on my filesystem too. I checked on /home/ember/.local and on /home/ember/.config. I can't find them nowhere. I also use ZFS. Is any recovery tool for ZFS?
 
I can't find them nowhere. I also use ZFS. Is any recovery tool for ZFS?
Sure! Do you have cron scheduled snapshots? How often do you take them? How long do you keep them? Do you know where they are stored and how to make them visible? They are not going to be visible even with ls until you make them visible.
 
Mathhma is the Greeklish word (Greek words with Latin characters[most used when we text message or speak on msn, skype etc]) of the Greek word Μάθημα witch means "lesson" in English.

So to be right should be C_Μάθημα witch meas C_lesson. On this folder I have a lot of small programs that I do with my teacher to learn C programming.
I finished IEK (Something smaller of University) with the specialty of "Technical implementation informatics". Ιn Greek "Τεχνικός Εφαρμογών Πληροφορικής". I hope they have the same meaning.

So In practice I learned C programming, Mysql, Pascal, C++ and Networks.
Now I must give exams on this to take the certificate. I don't afraid Mysql and Pascal so much but I am afraid of C. I don't know good mathematics and all C is mathematical thinking.

Never mind. Today with my teacher I made this:

Code:
#include <stdio.h>

typedef struct rec {
char epwnymo_mathhtwn[20];
float vathmos_mathhtwn;
}
record;

main()
{
   record pinakas[10];
   int count, c1, c2, c3, c4, c5;
   count = 0;
   
   for (count = 0; count <= 9; count++)
   {
     printf ("Dwse epwnymo mathhth:");
     scanf ("%s", pinakas[count].epwnymo_mathhtwn);
     printf ("Dwse vathmo mathhth:");
     scanf ("%f", &pinakas[count].vathmos_mathhtwn);
         }
         
    printf ("\tThesh\tEpwnymo\tVathmos\tXarakthrismos\n");
   
    c1 = c2 = c3 = c4 = c5 = 0;
   
   for (count = 0; count <= 9; count++)
     {
     printf ("\t%d\t%s\t%0.2f\t", count, pinakas[count].epwnymo_mathhtwn, pinakas[count].vathmos_mathhtwn);
     
     if ( pinakas[count].vathmos_mathhtwn <= 9)
     {
       c1++;
       printf ("Xalia!\n");
         }
     else if ( pinakas[count].vathmos_mathhtwn <= 12)
     {
       c2++;
       printf ("Metria!\n");
         }
     else if ( pinakas[count].vathmos_mathhtwn <= 15)
     {
       c3++;
       printf ("kala!\n");
         }
     else if ( pinakas[count].vathmos_mathhtwn <=18)
     {
       c4++;
       printf ("Poly kala!\n");
         }
     else if ( pinakas[count].vathmos_mathhtwn <= 20)
     {
       c5++;
       printf ("Arista!\n");
       }
     }
     
     printf ("Xalia %d\nMetria %d\nKala %d\nPoly Kala %d\nArista %d\n", c1 , c2, c3, c4, c5);

}
 
Back
Top