Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 Accidently deleted my /etc/default folder. Now my computer wont boot. Its running Ubuntu 14.04 LTS. Upon boot it says,

Filesystem check or mount failed. 
A maintenance shell will now be started.CONTROL-D will terminate this shell and continue booting after re-trying filesystems. Any further errors will be ignored.

Please help, this is a very important computer and cannot suffer any downtime.

share|improve this question
up vote 14 down vote accepted

Just boot from Ubuntu live disk and copy the /etc/default directory(live disk) to the /etc directory(Resides in the partition where Ubuntu is actually installed)

sudo mkdir /media/os
sudo mount /dev/sdaX /media/os   # Mounting the root partition on /media/os directory.
sudo cp -Ri /etc/default /media/os/etc
sudo umount /dev/sdaX

Shutdown and boot from your Hard-disk. Hope it will work.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.