rm恢复全过程

发布时间:2021-06-11

恢复过程:

1. 从引导介质(bootable CD-ROM or bootable tape)起动系统。

2.选择 Start Maintenance Mode for System Recovery (Option 3),进入维护菜单. 然后依次再选择如下:

a.Access a Root Volume Group (Option 1).

b.0 continue and Select Volume Group by number.

c.Access this volume group and start a shell before mounting the file systems (Option 2).

3.检查并mount根文件系统

# fsck -y /dev/hd4

#mount /dev/hd4 /mnt

4.重建删除的文件和目录

#cd /mnt

#ln -s /usr/bin bin

#ln -s /usr/lib/boot/unix_up unix 或 #ln -s /usr/lib/boot/unix_mp unix

#ln -s /usr/lib lib

#ln -s /home u

5.重起系统

#cd /

#umount /dev/hd4

#exit

#sync;sync;sync

#shutdown -Fr

    精彩图片

    热门精选

    大家正在看