Recovering a failed GPT disk

From Notes to self
Revision as of 21:55, 13 December 2025 by Verbovet (talk | contribs) (Created page with "* before hot replacing a disk, say <code>ada5</code>, run :<code># zpool offline zroot ada5</code> :and check :<code># zpool status</code> * Insert a new physical disk * Copy the partition table to the new disk from a healthy one * Label all partitions with the commands: :<code># gpart modify -l LABEL -i1 ada5</code> Category: FreeBSD Category: Hardware")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • before hot replacing a disk, say ada5, run
# zpool offline zroot ada5
and check
# zpool status
  • Insert a new physical disk
  • Copy the partition table to the new disk from a healthy one
  • Label all partitions with the commands:
# gpart modify -l LABEL -i1 ada5