删除/boot/所有文件,不包括目录,修复

rm -f /boot/*

实验:破坏grub stage1 实验:破坏grub stage1.5 实验:破坏grub stage2 实验:expect 自动在多台主机创建用户test,并设置初始口令

centos6 启动流程 1 post 硬件环境 2 mbr 446 grub stage1 3 grub stage1.5 加载/boot 分区文件系统 4 grub stage2 /boot/grub/grub.conf 5 vmlinuz 加载/ /boot/initramfs.xxx.img 6 /sbin/init /etc/inittab id:3: 7 rc.sysinit 8 /etc/rc3.d/S,Kxxx --> /etc/init.d/xxx chkconfig --level N service on|off 9 /etc/rc.local 10 login

/boot 分区

kernel /boot/vmlinuz initd /boot/initramfs

posted @ 2023-07-14 19:05  Xuxuxu2022  阅读(44)  评论(0)    收藏  举报