Linux下如何备份和恢复分区表的操作步骤有哪些?
- 内容介绍
- 文章标签
- 相关推荐
本文共计172个文字,预计阅读时间需要1分钟。
准备MBR分区信息及0.+备份硬盘的分区信息
备份MBR分区 0. 备份硬盘的分区信息 #fdisk /dev/sda -l > /tem/sda.txt 1.使用fdisk -l 确定MBR位置 2.备份MBR dd if/dev/sda1 of/root/mbr bs512 count1 3.恢复MBR dd if/root/mbr of/dev/sda1 bs512 count1 4.恢复分区表 dd if/root/mbr of/dev/sda1 bs512 skip446 count66 注mbr大小512 所以bs512 count1 bs512 skip446 count66 用来确定分区表在备份文件中的位置
本文共计172个文字,预计阅读时间需要1分钟。
准备MBR分区信息及0.+备份硬盘的分区信息
备份MBR分区 0. 备份硬盘的分区信息 #fdisk /dev/sda -l > /tem/sda.txt 1.使用fdisk -l 确定MBR位置 2.备份MBR dd if/dev/sda1 of/root/mbr bs512 count1 3.恢复MBR dd if/root/mbr of/dev/sda1 bs512 count1 4.恢复分区表 dd if/root/mbr of/dev/sda1 bs512 skip446 count66 注mbr大小512 所以bs512 count1 bs512 skip446 count66 用来确定分区表在备份文件中的位置

