Linux操作系统下MBR分区表的备份与恢复

2008-05-13 03:47:07.0     推荐:0    收藏:0    评论:0     来源:e800Linux频道

备份MBR分区

1.使用fdisk -l 确定MBR位置

2.备份MBR

dd if=/dev/sda1 of=/root/mbr bs=512 count=1

3.恢复MBR

dd if=/root/mbr of=/dev/sda1 bs=512 count=1

4.恢复分区表

dd if=/root/mbr of=/dev/sda1 bs=512 skip=446 count=66

注:mbr大小512 所以bs=512 count=1

bs=512 skip=446 count=66 用来确定分区表在备份文件中的位置

(责任编辑:云子)


您可以针对本文进行:[评论]  [收藏]  [推荐]   [查看原文链接]  
我想发表评论:
用户名密码
  • 匿名发表
    验证码: