Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.