List the partitions of a device (sda):
sfdisk -l /dev/sda
Test and show consistent check status on device (sda):
sfdisk -V /dev/sda
Two ways to create new partitions from an old device (sda):
(a) Copy the entire partition table from one disk (sda) to another (sdb)
sfdisk -d /dev/sda | sfdisk /dev/sdb
(b) Dump the partitions of a device (sda) in a format useful as input to sfdisk:
i). Dump the partitions info first
sfdisk -d /dev/sda > partition.table.dump
ii). Write partition table from file to device (sdb):
sfdisk /dev/sdb < partition.table.dump
References
man page for sfdisk
Author
gene
Read more posts by this author.
Tags
- 30
- 43
- Add new tag
- BDE
- CentOS
- FreeNX
- Latex
- NAS4Free
- PostgreSQL
- Proxmox
- Remote Desktop
- Season's Greetings
- Software Raid-1
- Storage
- Tex
- Uncategorized
- Version Control
- Virtualization
- Zabbix
- Zend Server CE
- ZeosLib
- apache
- backup
- bash
- database
- delphi
- fat32
- file system
- icewm
- im
- inspiration
- mdadm
- network
- oracle
- programming
- rails
- rsync
- ruby
- security
- sfdisk
- software raid
- ssh
- svn
- tune2fs
- untangle
- vncserver
- xen
Advertise
Advertise here