0

I have a Debian OS upgraded from to 2.6 to 3.4 in my PC. All of a sudden some basic commands like ls and sudo were not working (by mistake I deleted some files in the root folder). I was getting a error like bash- /usr/bin no such directory. I restarted my PC after which it displays "kernel panic". How to resolve this issue.

Edit 1: I was deleting files from /mnt/sdc1 folder.something went wrong all of a sudden.

5
  • 3
    Probably, given the total lack of information as to what you deleted, the simplest thing is to re-install the OS. You should use a live distro to backup your own data on /home/yourname, then reinstall. Jun 16, 2014 at 10:22
  • Yes, deleting files in the root folder is usually a bad idea. If you can't back up your data from the system itself (which seems likely), boot from a LiveCD or something.
    – Tom Zych
    Jun 16, 2014 at 10:46
  • @MariusMatutiae:What is "live distro"?
    – ddpd
    Jun 16, 2014 at 10:58
  • D'oh! I didn't notice @MariusMatutiae had already mentioned using a live distro. It means something like a LiveCD, a rescue disk. Something you can boot when the OS on your hard drive won't boot.
    – Tom Zych
    Jun 16, 2014 at 11:03
  • A live distro is a Linux distro mounted either on a USB stick, or on a CD/DVD. They are usually produced to install the system on a pc, but often offer the choice of not installing, and using the live stick as a repair medium. Ubuntu makes a very good one, even for beginners. Just make sure that, when you are presented with: Install Ubuntu and Try it without installing it, you choose Try it without installing. Then copy the contents of your pc's /home directory to an external disk, something like a USB hard disk. Then you are ready to re-install. Jun 16, 2014 at 15:16

0

You must log in to answer this question.

Browse other questions tagged .