Linux环境下,如何进行分区表的备份与恢复操作?

2026-06-11 13:022阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计169个文字,预计阅读时间需要1分钟。

Linux环境下,如何进行分区表的备份与恢复操作?

备份MBR分区 + 硬盘分区信息

备份MBR分区    0. 备份硬盘的分区信息      #fdisk /dev/sda -l > /tem/sda.txt     1.使用fdisk -l 确定MBR位置     

备份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 用来确定分区表在备份文件中的位置

Linux环境下,如何进行分区表的备份与恢复操作?

本文共计169个文字,预计阅读时间需要1分钟。

Linux环境下,如何进行分区表的备份与恢复操作?

备份MBR分区 + 硬盘分区信息

备份MBR分区    0. 备份硬盘的分区信息      #fdisk /dev/sda -l > /tem/sda.txt     1.使用fdisk -l 确定MBR位置     

备份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 用来确定分区表在备份文件中的位置

Linux环境下,如何进行分区表的备份与恢复操作?