Experiment a: MBR sector failure backup and restore system

System Backup :

[root@localhost ~]# mkdir /abc

[root@localhost ~]# mount /dev/sdb1 /abc

[root@localhost ~]# dd if=/dev/sda of=/abc/sda-mbr-bak bs=512 count=1

Recording the 1 + 0 read

Recording the 1 + 0 written

512 bytes (512 B) has been copied, .000224936 sec, 2.3 MB / sec

[root@localhost ~]# dd if=/dev/zero of=/dev/sda bs=512 count=1

Recording the 1 + 0 read

Recording the 1 + 0 written

512 bytes (512 B) has been copied, 0.000185039 sec, 2.8 MB / sec

 

 

system Restore:

1

 

 

2

 

 

3

 

 

4

 

 

5

 

 

Guess you like

Origin www.cnblogs.com/hfh1/p/11313245.html