실수로 /etc/default 폴더를 삭제했습니다.

실수로 /etc/default 폴더를 삭제했습니다.

실수로 폴더를 삭제했습니다 /etc/default. 이제 컴퓨터가 부팅되지 않습니다. Ubuntu 14.04 LTS를 실행 중입니다. 부팅하면 다음과 같이 표시됩니다.

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.

도와주세요. 이 컴퓨터는 매우 중요한 컴퓨터이므로 가동 중지 시간이 발생하지 않습니다.

답변1

Ubuntu 라이브 디스크에서 부팅하고 /etc/default디렉터리를 복사하세요(라이브 디스크) 디렉토리 /etc(Ubuntu가 실제로 설치된 파티션에 위치)

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

하드 디스크를 종료하고 부팅합니다. 그것이 효과가 있기를 바랍니다.

관련 정보