2月 20

学习《Linux系统灾难恢复技术和方法》分区表丢失

http://doc.chinaunix.net/linux/201211/2511264.shtml Linux系统灾难恢复技术和方法

  我所保存的数据都是冗余的分布在不同地域的服务器上,所以之前没有做过磁盘分区损坏恢复的试验。今天看到这篇文章觉得很好,学习学习。以后也备份一下以备需要。
备份到usb中
[root@FCoE ~]# dd if=/dev/sda of=/mnt/sda.mbr bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.000777948 s, 658 kB/s

救援模式下恢复
bash-4.1# dd if=/usb/sda.mbr of=/dev/sda bs=1 count=64 skip=446 seek=446