Redhat 6.5 System Grub Repair whole process

Source: Internet
Author: User

Redhat6.5 after each boot, the following interface appears

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/81/wKiom1gVo0mT3R5PAAALTaLTtQE529.jpg-wh_500x0-wm_3 -wmp_4-s_1169559159.jpg "title=" image001.jpg "alt=" Wkiom1gvo0mt3r5paaaltalttqe529.jpg-wh_50 "/>

1 . use the optical drive as the first boot device, select the third entry, enter Rescue Mode

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/89/81/wKiom1gVo4TwubMCAAPi60i8ndU825.png-wh_500x0-wm_3 -wmp_4-s_261774742.png "title=" Image003.png "alt=" Wkiom1gvo4twubmcaapi60i8ndu825.png-wh_50 "/>

2 . system default, click OK

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/7F/wKioL1gVo6OjGvnlAAB2Ai6dorU876.jpg-wh_500x0-wm_3 -wmp_4-s_2638588511.jpg "title=" image005.jpg "alt=" Wkiol1gvo6ojgvnlaab2ai6doru876.jpg-wh_50 "/>

3 . system default, click OK

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/81/wKiom1gVo77Di9ZnAABrbG19SYI881.jpg-wh_500x0-wm_3 -wmp_4-s_1760268759.jpg "title=" image007.jpg "alt=" Wkiom1gvo77di9znaabrbg19syi881.jpg-wh_50 "/>

4. do not open the network interface, select no

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/81/wKiom1gVo9CSiWYtAABIQ0lzTMk655.jpg-wh_500x0-wm_3 -wmp_4-s_2096000520.jpg "title=" image009.jpg "alt=" Wkiom1gvo9csiwytaabiq0lztmk655.jpg-wh_50 "/>

5. system default, select Continue

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/7F/wKioL1gVo-Gw4gsAAADPlJJDC08665.jpg-wh_500x0-wm_3 -wmp_4-s_2248268493.jpg "title=" image011.jpg "alt=" Wkiol1gvo-gw4gsaaadpljjdc08665.jpg-wh_50 "/>

6. Select the first shell Start Shell

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/89/7F/wKioL1gVo_HgXrFEAAA6EL5cigk492.jpg-wh_500x0-wm_3 -wmp_4-s_1199417777.jpg "title=" image013.jpg "alt=" Wkiol1gvo_hgxrfeaaa6el5cigk492.jpg-wh_50 "/>

7. Click OKto enter shell mode

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/81/wKiom1gVpB6Bo3MAAACvcpo6zuw885.jpg-wh_500x0-wm_3 -wmp_4-s_3972197206.jpg "title=" image015.jpg "alt=" Wkiom1gvpb6bo3maaacvcpo6zuw885.jpg-wh_50 "/>

8. Create a folder, such as temp

Bash-4.1#mkdir/temp

9. mount the disc image to the /temp directory

Bash-4.1#mount–t iso9660/dev/sr0/temp

Enter the /temp/packages/ directory and install the Grub Package for system repair

bash-4.1#cd/temp/packages/

Bash-4.1#rpm–ivh–root/mnt/sysimage Grub-0.97-83.el6.x86_64.rpm–force

One . after a reboot after installation, an error message appears:unable toresolve ' Uuid=86e44823-e048-4581-90d0-42899326beae '

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/89/7F/wKioL1gVpFuCyq4EAAA_YJtOqjc695.png-wh_500x0-wm_3 -wmp_4-s_318080537.png "title=" Image017.png "alt=" Wkiol1gvpfucyq4eaaa_yjtoqjc695.png-wh_50 "/>

Enter Rescue mode again to see the /dev/sda1 's UUID number

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/81/wKiom1gVpG2yZcWrAABFm96N-sQ513.png-wh_500x0-wm_3 -wmp_4-s_1118913247.png "title=" Image019.png "alt=" Wkiom1gvpg2yzcwraabfm96n-sq513.png-wh_50 "/>

13./dev/sda1 get a new UUID number

Bash-4.1#tune2fs-u random/dev/sda1

View /dev/sda1 the newly generated UUID number, and record it down

bash-4.1# tune2fs–l/dev/sda1 | grep UUID

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/81/wKiom1gVpIjSUgx5AAA_ZU8Mcjc736.png-wh_500x0-wm_3 -wmp_4-s_1823509422.png "title=" Image021.png "alt=" Wkiom1gvpijsugx5aaa_zu8mcjc736.png-wh_50 "/>

Edit /etc/fstabTo change the original uuid to the newly generated uuid number

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/89/7F/wKioL1gVpKTglIy_AACIMQRicpE299.jpg-wh_500x0-wm_3 -wmp_4-s_4067222417.jpg "title=" image023.jpg "alt=" Wkiol1gvpktgliy_aacimqricpe299.jpg-wh_50 "/>

After restarting, the Grub> interface appears directly , enter

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/7F/wKioL1gVpLPh_VXTAAAXdgZzJms505.png-wh_500x0-wm_3 -wmp_4-s_1561388949.png "title=" Image025.png "alt=" Wkiol1gvplph_vxtaaaxdgzzjms505.png-wh_50 "/>

Root (hd0,0)

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/89/81/wKiom1gVpMGC0f8aAAAY2V3WzHY235.png-wh_500x0-wm_3 -wmp_4-s_3581584305.png "title=" Image027.png "alt=" Wkiom1gvpmgc0f8aaaay2v3wzhy235.png-wh_50 "/>

Kernel/vmlinuz-2.6.32-431.el6.x86_64root=/dev/mapper/volgroup-lv_root

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/81/wKiom1gVpNGQiUSgAAAgUpZ4x_k105.png-wh_500x0-wm_3 -wmp_4-s_1979022374.png "title=" Image029.png "alt=" Wkiom1gvpngqiusgaaagupz4x_k105.png-wh_50 "/>

Initrd/initramfs-2.6.32-431.el6.x86_64

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/89/7F/wKioL1gVpOKiOd4MAAAk-0o-mYc505.png-wh_500x0-wm_3 -wmp_4-s_2137416419.png "title=" Image031.png "alt=" Wkiol1gvpokiod4maaak-0o-myc505.png-wh_50 "/>

Boot Enter Start

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/89/81/wKiom1gVpP3gvfnfAAAi78BThsc830.png-wh_500x0-wm_3 -wmp_4-s_2054239224.png "title=" Image033.png "alt=" Wkiom1gvpp3gvfnfaaai78bthsc830.png-wh_50 "/>

The system is fully functional, but the Grub interface appears on startup

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/7F/wKioL1gVpQvCtfAgAAA9wW2H68A859.jpg-wh_500x0-wm_3 -wmp_4-s_3187634867.jpg "title=" image035.jpg "alt=" Wkiol1gvpqvctfagaaa9ww2h68a859.jpg-wh_50 "/>

Edit /etc/grub.conf, add two lines of code marked with a red box

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/81/wKiom1gVpRyzL21FAAGP2a_h3os449.jpg-wh_500x0-wm_3 -wmp_4-s_3137539860.jpg "title=" image037.jpg "alt=" Wkiom1gvpryzl21faagp2a_h3os449.jpg-wh_50 "/>

system starts normally

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/81/wKiom1gVpTOhup2fAAAPMbvh9Xw167.png-wh_500x0-wm_3 -wmp_4-s_1012770190.png "title=" Image039.png "alt=" Wkiom1gvptohup2faaapmbvh9xw167.png-wh_50 "/>


This article from "Dosom" blog, declined reprint!

Redhat 6.5 System Grub Repair whole process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.