unit11 System Recovery
1. System Startup process
Power
||
BIOS (in read-only storage on the motherboard, basic input or output system)
function, hardware detection, activation hardware
||
Grub System boot (grub boot divided into two stages)
1) Stage 1 MBR (Master boot record) master boot record 0 tracks on hard disk, one sector, 446 bytes
*) dd If=/dev/zero Of=/dev/vda bs=446 count=1 can empty MBR
*) go to save mode, perform chroot/mnt/sysimage switch to real/environment,
and execute GRUB2-INSTALL/DEV/VDA
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M01/93/28/wKioL1kIka6D46Y6AABZlHBuFWk178.jpg "style=" float : none; "title=" 36020170502220208423.jpg "alt=" Wkiol1kika6d46y6aabzlhbufwk178.jpg "/>
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/93/2A/wKiom1kIka_TMXk9AABmIq1Q4Ao127.jpg "style=" float : none; "title=" 36020170502220246376.jpg "alt=" Wkiom1kika_tmxk9aabmiq1q4ao127.jpg "/>
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/93/2A/wKiom1kIka-yWHYpAABw26JEzzw800.jpg "style=" float : none; "title=" 36020170502220309567.jpg "alt=" Wkiom1kika-ywhypaabw26jezzw800.jpg "/>
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M02/93/28/wKioL1kIkjvhxliqAAAy3Fzh5JE168.jpg "style=" float : none; "title=" 36020170502220354096.jpg "alt=" Wkiol1kikjvhxliqaaay3fzh5je168.jpg "/>
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/93/2A/wKiom1kIkjyxB76RAABN6Xcvt-Y952.jpg "style=" float : none; "title=" 36020170502220410263.jpg "alt=" Wkiom1kikjyxb76raabn6xcvt-y952.jpg "/>
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M01/93/2A/wKiom1kIkjziNBYlAABJHwSWiGk637.jpg "style=" float : none; "title=" 36020170502220429231.jpg "alt=" Wkiom1kikjzinbylaabjhwswigk637.jpg "/>
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M00/93/28/wKioL1kIkjzCTApKAAAq4Lbnx-o148.jpg "style=" float : none; "title=" 36020170502220435062.jpg "alt=" Wkiol1kikjzctapkaaaq4lbnx-o148.jpg "/>
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M01/93/2A/wKiom1kIkjyzfvHsAAAWW9OniwU195.jpg "style=" float : none; "title=" 36020170502220440759.jpg "alt=" Wkiom1kikjyzfvhsaaaww9oniwu195.jpg "/>
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/93/28/wKioL1kIkj3hJSLRAABwmCXxZW0291.jpg "style=" float : none; "title=" 36020170502220512735.jpg "alt=" Wkiol1kikj3hjslraabwmcxxzw0291.jpg "/>
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/93/28/wKioL1kIkj2BC23mAABLjX9zjtc434.jpg "style=" float : none; "title=" 36020170502220522319.jpg "alt=" Wkiol1kikj2bc23maabljx9zjtc434.jpg "/>
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/93/28/wKioL1kIkmTzjrO_AABGiycl9WY619.jpg "title=" 36020170502220616519.jpg "alt=" Wkiol1kikmtzjro_aabgiycl9wy619.jpg "/>
2) Phase 2 Grub File boot phase
Locate the/boot partition
Read /boot/grub2/grub.cfg
file lost,grub2-mkconfig >/boot/grub2/grub.cfg
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M01/93/29/wKioL1kIkuCjUlinAAAUSPQ4nUA214.jpg "style=" float : none; "title=" 36020170502220700263.jpg "alt=" Wkiol1kikucjulinaaauspq4nua214.jpg "/>
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M02/93/29/wKioL1kIkuHhTG_mAAAuloc3pE4204.jpg "style=" float : none; "title=" 36020170502220732752.jpg "alt=" Wkiol1kikuhhtg_maaauloc3pe4204.jpg "/>
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/93/2A/wKiom1kIk3bBCOkIAACaHwcOp_Q784.jpg "title=" 36020170502221043775.jpg "alt=" Wkiom1kik3bbcokiaacahwcop_q784.jpg "/>
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/93/2A/wKiom1kIkzKTD8t8AAA2keJtsi8614.jpg "title=" 36020170502220935271.jpg "alt=" Wkiom1kikzktd8t8aaa2kejtsi8614.jpg "/>
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/93/2A/wKiom1kIk9ex4kNGAAAfUOK13hk365.jpg "style=" float : none; "title=" 36020170502221200607.jpg "alt=" Wkiom1kik9ex4kngaaafuok13hk365.jpg "/>
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/93/29/wKioL1kIk9fjlFwHAAAR5xpHX7Q589.jpg "style=" float : none; "title=" 36020170502221212686.jpg "alt=" Wkiol1kik9fjlfwhaaar5xphx7q589.jpg "/>
||
boot kernel, read-only mount /device
Testing equipment
Initialize the device driver
Enter the system initialization phase
Kernel is missing, the new kernel installation package can be resolved
RPM-IVH kernel-xxxxx.rpm--force
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M02/93/2A/wKiom1kIlSnyMkF9AAB06oAEIOQ988.jpg "style=" float : none; "title=" 36020170502221620687.jpg "alt=" Wkiom1kilsnymkf9aab06oaeioq988.jpg "/>
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/93/2A/wKiom1kIlX-jCQ4UAAAe7Cp1lNk108.jpg "title=" 36020170502221924215.jpg "alt=" Wkiom1kilx-jcq4uaaae7cp1lnk108.jpg "/>
650) this.width=650; "src=" https://s1.51cto.com/wyfs02/M01/93/29/wKioL1kIlSqiuGqIAACwwNpC1vE589.jpg "style=" float : none; "title=" 36020170502221800608.jpg "alt=" Wkiol1kilsqiugqiaacwwnpc1ve589.jpg "/>
||
System initialization phase
system initialization phase load INITRD mirror
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/93/29/wKioL1kIllfRLO_mAABD-or27S4655.jpg "style=" float : none; "title=" 36020170502222141143.jpg "alt=" Wkiol1killfrlo_maabd-or27s4655.jpg "/>
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M01/93/2B/wKiom1kIlljRjD2HAABgrtP8zUA103.jpg "style=" float : none; "title=" 36020170502222204032.jpg "alt=" Wkiom1killjrjd2haabgrtp8zua103.jpg "/>
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/93/29/wKioL1kIllixkMEGAAAeF9jnpws136.jpg "style=" float : none; "title=" 36020170502222241343.jpg "alt=" Wkiol1killixkmegaaaef9jnpws136.jpg "/>
Open Initialization Process systemd ( start screen press E, delete to Ro,ro to RW, and then add Rd.break,ctrl+x exit )
Start SELinux
Load Kernel parameters
Initialize the system clock, keyboard, host name
re-read/write mount /device
activating RAID,LVM
Activate quotas
start All services in the multi-user.target.wants
Turn on the Virtual Console
Start graphics
650) this.width=650; "src=" https://s2.51cto.com/wyfs02/M01/93/2B/wKiom1kIlzzzw-FzAAA71j0Y_tw461.jpg "style=" float : none; "title=" 36020170502222416800.jpg "alt=" Wkiom1kilzzzw-fzaaa71j0y_tw461.jpg "/>
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/93/29/wKioL1kIlzyis8U0AABdZ3YFYSA849.jpg "style=" float : none; "title=" 36020170502222621448.jpg "alt=" Wkiol1kilzyis8u0aabdz3yfysa849.jpg "/>
initramfs-' Uname-r '. IMG Lost by:
MKINITRD initramfs-' uname-r '. img ' uname-r '
Recovery
Change Password
650) this.width=650; "src=" https://s3.51cto.com/wyfs02/M00/93/2B/wKiom1kImAuyJPeOAACTYPAeQNE298.jpg "style=" float : none; "title=" 36020170502222934216.jpg "alt=" Wkiom1kimauyjpeoaactypaeqne298.jpg "/>
650) this.width=650; "src=" https://s5.51cto.com/wyfs02/M02/93/29/wKioL1kImAyRdzdUAAEqoLk8ZnU613.jpg "style=" float : none; "title=" 36020170502223000920.jpg "alt=" Wkiol1kimayrdzduaaeqolk8znu613.jpg "/>
Linux Learning 134 Unit 11