
我不小心刪除了我的/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 live disk 啟動並複製/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
從硬碟關閉和啟動。希望它能起作用。