PDA

View Full Version : [ubuntu] Deletion of system files. HELP!



nortada
October 6th, 2011, 01:34 AM
Hello,

I accidentally executed the following command "sudo rm -R ./fonts /*", and because of the typo (extra space between "./fonts" and "/*"), massive deletion of my system files started. I know, it was a very negligent and stupid mistake. =D>

Before I could press Ctr+C, the folders: /bin, /boot, /etc and /home, had been deleted. At least, it's what I could perceive from the error messages of impossible to delete files. I think the catastrophe stopped in my /home folder.

My desktop crashed, with bars on windows disappearing, keyboard doesn't work, ... hopefully music is still playing. I think it prevented me from destroying the keyboard ](*,), and just laugh about the situation. Bottom-line, I think the system is unusable, but haven't tried to reboot it yet.

So, I request your help and advice, on what's the fastest way to recover it. Ideally without having to install a fresh new system, and applications.

I don't have much time, since I have a master thesis to deliver in two weeks. And this was my best computer for working on it, although not the only one.

Thanks in advance,

PS- sorry for all the talk. But I think you'll be sensible to my current need to tell people how much I'm stupid. Oh well... Live and learn...

lcman
October 6th, 2011, 09:26 AM
Hello,

I accidentally executed the following command "sudo rm -R ./fonts /*", and because of the typo (extra space between "./fonts" and "/*"), massive deletion of my system files started. I know, it was a very negligent and stupid mistake. =D>

Before I could press Ctr+C, the folders: /bin, /boot, /etc and /home, had been deleted. At least, it's what I could perceive from the error messages of impossible to delete files. I think the catastrophe stopped in my /home folder.

My desktop crashed, with bars on windows disappearing, keyboard doesn't work, ... hopefully music is still playing. I think it prevented me from destroying the keyboard ](*,), and just laugh about the situation. Bottom-line, I think the system is unusable, but haven't tried to reboot it yet.

So, I request your help and advice, on what's the fastest way to recover it. Ideally without having to install a fresh new system, and applications.

I don't have much time, since I have a master thesis to deliver in two weeks. And this was my best computer for working on it, although not the only one.

Thanks in advance,

PS- sorry for all the talk. But I think you'll be sensible to my current need to tell people how much I'm stupid. Oh well... Live and learn...

There's still hope because you haven't rebooted the system yet. You need to switch to single user mode and recover the files you've deleted.

Here's a good tutorial:

http://www.cyberciti.biz/tips/linuxunix-recover-deleted-files.html

nothingspecial
October 6th, 2011, 09:37 AM
So, I request your help and advice, on what's the fastest way to recover it. .

The fastest way to have a working computer to write your thesis with is to reinstall.

nortada
October 29th, 2011, 11:59 PM
I ended reinstalling the system. Hopefully I had my /home in a separate partition, which permitted me to keep all my data, configurations and some applications.

Also I noticed that Ubuntu11 already looks for existing home partitions during installation process, what is a really nice feature.

Thanks for the help.