1 mounting the hard drive
650) this.width=650; "title=" Picture 1111.png "src=" http://s1.51cto.com/wyfs02/M02/76/1D/ Wkiom1zkqpwixnveaaark3gvdg4721.png "alt=" Wkiom1zkqpwixnveaaark3gvdg4721.png "/>
2 Add the hard disk, ready to make a related backup of the file. Back up the MBRseparately,/boot,/etc.
650) this.width=650; "title=" Picture 1.png "style=" Float:none; "src=" http://s4.51cto.com/wyfs02/M00/76/1D/ Wkiom1zkq9mwdxh5aaalibkievk577.png "alt=" Wkiom1zkq9mwdxh5aaalibkievk577.png "/>
3 backing up MBR sector data
650) this.width=650; "title=" Picture 2.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/76/1D/ Wkiom1zkq9urwdjtaaat-_2d2so821.png "alt=" Wkiom1zkq9urwdjtaaat-_2d2so821.png "/>
4 MBR is bad, use disc boot, repair from backup file. (Analog MBR sector failure)
650) this.width=650; "title=" Picture 3.png "style=" Float:none; "src=" http://s2.51cto.com/wyfs02/M02/76/1B/ Wkiol1zkrdhtgteiaaatqvsczla316.png "alt=" Wkiol1zkrdhtgteiaaatqvsczla316.png "/>
5 fix from disc (third)
650) this.width=650; "title=" Picture 4.png "style=" Float:none; "src=" http://s1.51cto.com/wyfs02/M02/76/1D/wKiom1ZKq_ Shv9jfaaebnel_vxs379.png "alt=" Wkiom1zkq_shv9jfaaebnel_vxs379.png "/>
6 recovering MBR sector data from backup files
650) this.width=650; "title=" Picture 5.png "style=" Float:none; "src=" http://s2.51cto.com/wyfs02/M00/76/1D/wKiom1ZKq_ Sbh4suaaakbb-tnu0829.png "alt=" Wkiom1zkq_sbh4suaaakbb-tnu0829.png "/>
7 The 446 byte of the analog MBR is bad,
650) this.width=650; "title=" Picture 6.png "style=" Float:none; "src=" http://s2.51cto.com/wyfs02/M01/76/1E/wKiom1ZKq_ Sa5zznaaaqw7bukvs097.png "alt=" Wkiom1zkq_sa5zznaaaqw7bukvs097.png "/>
8 MBR 446 byte bad, use disc boot, direct restore
650) this.width=650; "title=" Picture 7.png "style=" Float:none; "src=" http://s2.51cto.com/wyfs02/M02/76/1E/wKiom1ZKq_ Xtoad2aabn4l14pxk122.png "alt=" Wkiom1zkq_xtoad2aabn4l14pxk122.png "/>
9/boot/grub/grub.conf file loss (impersonation)
650) this.width=650; "title=" Picture 8.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/76/1E/wKiom1ZKq_ Wcxkmraaajr_mi8qo591.png "alt=" Wkiom1zkq_wcxkmraaajr_mi8qo591.png "/>
Use the disc to boot, cut to the root of the hard disk chroot/mnt/sysimage, Repair from the backup file
650) this.width=650; "title=" Picture 9.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/76/1B/ Wkiol1zkreat1mzqaaaxxis7wlq562.png "alt=" Wkiol1zkreat1mzqaaaxxis7wlq562.png "/>
The following commands are fixed:
650) this.width=650; "title=" Picture 10.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/76/1B/ Wkiol1zkrefrndy3aaazo29yzgq712.png "alt=" Wkiol1zkrefrndy3aaazo29yzgq712.png "/>
hack root password. (Local hard drive boot)
650) this.width=650; "title=" Picture 11.png "style=" Float:none; "src=" http://s5.51cto.com/wyfs02/M01/76/1E/wKiom1ZKq_ Bhuig0aaaz1w2usuc934.png "alt=" Wkiom1zkq_bhuig0aaaz1w2usuc934.png "/>
650) this.width=650; "title=" Picture 12.png "style=" Float:none; "src=" http://s5.51cto.com/wyfs02/M02/76/1B/ Wkiol1zkrefb5bqaaaasnsdc23i551.png "alt=" Wkiol1zkrefb5bqaaaasnsdc23i551.png "/>
650) this.width=650; "title=" Picture 13.png "style=" Float:none; "src=" http://s5.51cto.com/wyfs02/M02/76/1E/wKiom1ZKq_ Bgamcaaaatxj85-hi813.png "alt=" Wkiom1zkq_bgamcaaaatxj85-hi813.png "/>
650) this.width=650; "title=" Picture 14.png "style=" Float:none; "src=" http://s5.51cto.com/wyfs02/M01/76/1E/wKiom1ZKq_ Acotcuaaadxur9aam087.png "alt=" Wkiom1zkq_acotcuaaadxur9aam087.png "/>
12/dev/sdb hard Drive File system bad (simulated corruption)
650) this.width=650; "title=" Picture 15.png "style=" Float:none; "src=" http://s4.51cto.com/wyfs02/M00/76/1B/ Wkiol1zkrejzwwwaaaavumy5eta081.png "alt=" Wkiol1zkrejzwwwaaaavumy5eta081.png "/>
650) this.width=650; "title=" Picture 16.png "style=" Float:none; "src=" http://s4.51cto.com/wyfs02/M00/76/1B/ Wkiol1zkreitxvq-aaa7k8azrnw948.png "alt=" Wkiol1zkreitxvq-aaa7k8azrnw948.png "/>
Repair
650) this.width=650; "title=" Picture 17.png "style=" Float:none; "src=" http://s4.51cto.com/wyfs02/M01/76/1B/ Wkiol1zkrenxst23aaaqzgv309w767.png "alt=" Wkiol1zkrenxst23aaaqzgv309w767.png "/>
Simulating i - node exhaustion failure
Editor:vim killinonde.sh
#! /bin/bash
I =1
W hile{$i –le ( less than equals ) 8021}
Do ( do )
Touch/date/file$i
IET i++ ( loop )
Done
Run the test program: SH killinode.sh &
Confirm I node occupancy df –I /data
Fixed i - node exhaustion failure
rm-rf/date/file*
This article is from the "rookie" blog, please be sure to keep this source http://10333158.blog.51cto.com/10323158/1713429
Linux system failure repair and troubleshooting