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 */