This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computing:storage:linux_software_raid [2019/10/25 10:30] gcooper |
computing:storage:linux_software_raid [2019/10/25 10:42] (current) gcooper |
||
---|---|---|---|
Line 22: | Line 22: | ||
< | < | ||
- | fdisk /dev/sda | + | fdisk -l /dev/sda |
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | sgdisk -p /dev/sda | ||
</ | </ | ||
**Copy Patition Scheme**: https:// | **Copy Patition Scheme**: https:// | ||
+ | |||
+ | :!: Verify '' | ||
Using fdisk, create matching partitions on various drives (block devices) of type **fd Linux raid autodetect** that will be assembled into arrays. | Using fdisk, create matching partitions on various drives (block devices) of type **fd Linux raid autodetect** that will be assembled into arrays. | ||
Line 41: | Line 49: | ||
</ | </ | ||
- | Once you partition the first drive, use sfdisk to duplicate | + | :!: 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 -d /dev/sda | sfdisk /dev/sdb | ||
+ | </ | ||
+ | |||
+ | or | ||
< | < | ||
- | sfdisk -d / | + | sgdisk |
+ | sgdisk -G /dev/sdb | ||
</ | </ | ||