误删除了我的/ etc / default文件夹


9

我不小心删除了我的/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.

请帮助,这是一台非常重要的计算机,不会造成任何停机。

Answers:


14

只需从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

关闭并从硬盘启动。希望它能工作。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.