How to fix MBR in rescue mode

Source: Internet
Author: User
Linux learning notes (rescue) fix MBR in rescue mode-general Linux technology-Linux technology and application information. For details, see the following. $ Repair MBR in rescue mode:
#> 1 <damage GRUB so that it cannot be started;
[Bady] # dd if =/dev/zero of =/dev/sda bs = 446 count = 1; reboot
#> 2 <enter linux rescue to rescue mode when starting from a CD/floppy disk;



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080313100928.jpg'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080313100939.jpg'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080313100950.jpg'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080313101001.jpg'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080313101011.jpg'); ">




(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // blogimg.chinaunix.net/blog/upfile2/080313101022.jpg'); ">



Sh-2.05b # mount/* load Hard Disk Files in read/write mode, use mount to check whether the file system is loaded correctly */
Sh-2.05b # fdisk-l/dev/sda/* view partition condition */
Sh-2.05b # cat/mnt/sysimage/boot/grub. conf/* Note: the hard disk is loaded in the/mnt/sysimage directory, check the grub. conf file */
Sh-2.05b # chroot/mnt/sysimage/* Make/mnt/sysimage the root of the system recognized by grub-install */
Sh-2.05b # grub-install/dev/sda/* load chroot shell, run grub-install */
Sh-2.05b # exit/* exit chroot shell */
Sh-2.05b # exit/* exit rescue mode */

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.