Backup and restore the disk table on linux
2016-01-06 17:17
465 查看
How do I back-up Linux partition with sfdisk command?
To backup /dev/sda partition table, enter:# sfdisk -d /dev/sda > sda.partition.table.12-30-2015.txt
Copysda.partition.table.12-30-2015.txtto NFS mounted share or a USB pen drive.
How do I restore the Linux partition with sfdisk command to the disk?
# sfdisk /dev/sda < sda.partition.table.12-30-2015.txt # sfdisk /dev/sda < /path/to/usb/pen/sda.partition.table.12-30-2015.txt
OR
# sfdisk -f /dev/sda < /media/usb/sda.partition.table.12-30-2015.txt
How do I replicate a disk partition table from /dev/sda to /dev/sdd with the same geometry?
This is useful for Linux based software RAID device. Say you replaced /dev/sdd and you want to rebuild the Linux software RAID array. The first step is to replicate a partition table from a disk to another disk:# sfdisk -d /dev/sda | sfdisk -f /dev/sdd
相关文章推荐
- centos启动流程
- 根据centos系统启动过程定位故障位置
- CentOS系统启动流程和系统初始化
- linux system函数返回值问题
- linux下的stdin,stdout和stderr理解
- CentOS 6.X 关闭不需要的 TTY 方法
- linux怎么更改屏幕分辨率?linux屏幕分辨率的设置教程
- centos修改DNSresolv.conf后重启系统恢复原状
- linux下小记
- linux下tty,控制台,虚拟终端,串口,console(控制台终端)详解
- 64位程序core分析
- Linux进程间通信方式
- Linux常用的压缩与归档命令
- linux awk命令使用实例
- linux环境变量 export命令详解
- linux系统稳定性测试-sysbench-磁盘IO性能测试-随机读
- Linux学习笔记:sed
- 红帽 Red Hat Linux相关产品iso镜像下载【百度云】【更新7.2】
- CentOS7安装Pig(Hadoop2.6,Pig0.15)
- JIRA 6.3.6版本部署安装,汉化,破解