User Tools

Site Tools


computing:storage:linux_software_raid

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
computing:storage:linux_software_raid [2019/10/25 10:38]
gcooper
computing:storage:linux_software_raid [2019/10/25 10:42] (current)
gcooper
Line 30: Line 30:
 sgdisk -p /dev/sda sgdisk -p /dev/sda
 </file> </file>
- 
  
 **Copy Patition Scheme**: https://askubuntu.com/questions/57908/how-can-i-quickly-copy-a-gpt-partition-scheme-from-one-hard-drive-to-another/333923 **Copy Patition Scheme**: https://askubuntu.com/questions/57908/how-can-i-quickly-copy-a-gpt-partition-scheme-from-one-hard-drive-to-another/333923
Line 49: Line 48:
 /dev/sda3           486     607     122     979965   82  Linux swap /dev/sda3           486     607     122     979965   82  Linux swap
 </file> </file>
 +
 +:!: Be careful not to write to the **wrong disk** or you will have a **very bad day**!
  
 Once you partition the first drive, use ''sfdisk'' or ''sgdisk'' to replicate partitions from that first drive to other drives: Once you partition the first drive, use ''sfdisk'' or ''sgdisk'' to replicate partitions from that first drive to other drives:
  
 <file> <file>
-sfdisk -d /dev/sda | sfdisk /dev/sd[bcd]+sfdisk -d /dev/sda | sfdisk /dev/sdb
 </file> </file>
  
Line 59: Line 60:
  
 <file> <file>
-sgdisk /dev/sda -R /dev/sd[bcd]+sgdisk /dev/sda -R /dev/sdb 
 +sgdisk -G /dev/sdb
 </file> </file>
  
computing/storage/linux_software_raid.1572021497.txt.gz · Last modified: 2019/10/25 10:38 by gcooper