Madadm-notes: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
Changing partition types | Changing partition types | ||
* [https://unix.stackexchange.com/questions/593681/changing-label-type-in-arch-linux-cfdisk|cfdisk examples] | |||
sfdisk can mirror two disks (usually) so that you can rebuild quickly.. | sfdisk can mirror two disks (usually) so that you can rebuild quickly.. |
Revision as of 17:13, 30 October 2021
All the damn details of mdadm that you can never remember when a !@#$!#@ drive dies
Changing partition types
sfdisk can mirror two disks (usually) so that you can rebuild quickly..
there are ways to do this as a single command with pipes, but it sucks and does not always create the partitions correctly..
safer way: (Assuming sdb is toast)
- sfdisk -d /dev/sda > sda.out
- sfdisk /dev/sdb < sda.out
- sfdisk -l