Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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. – MariusMatutiae Jun 16 '14 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 '14 at 10:46
@MariusMatutiae:What is "live distro"? – ddpd Jun 16 '14 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 '14 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. – MariusMatutiae Jun 16 '14 at 15:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.