Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10504796
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-06-17 17:33:01

      备份MBR分区
1.使用fdisk -l 确定MBR位置
2.备份MBR
dd if=/dev/sda of=/root/mbr bs=512 count=1
3.恢复MBR
dd if=/root/mbr of=/dev/sda bs=512 count=1
4.恢复分区表
dd if=/root/mbr of=/dev/sda bs=512 skip=446 count=66
注:mbr大小512 所以bs=512 count=1
bs=512 skip=446 count=66 用来确定分区表在备份文件中的位置

阅读(2063) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~