Talk:Software RAID on Linux

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

Updated Notes: 2/18/2017 RAID 1 on Linux Mint

useful RAID reference:

  • How To Create RAID Arrays with mdadm on Ubuntu 16.04

Setting up Raid 1 (mirror) in linux mint (or any distro)

Setting up RAID 1 (Mirroring) using ‘Two Disks’ in Linux – Part 3

Set up RAID 1 with fdisk - 2/18/2017

Each drive is the same size. Each drive needs to have identical partitions created. Using fdisk create a small partition of less than 1GB and use the remaining space for the second partition. Due this for each drive. The starting block will likely be at 2048, which is fine. Ensure that you use the same starting block and ending block on both.

When specifying the ending block in fdisk new partition creation, you can specify the starting block as 2048 and then for the ending block specify a size in megabytes. Use the format beginning with the + sign. For 840MB enter "+840" when it asks for the ending block.

If you have 2 drives, /dev/sda and /dev/sdb

fdisk /dev/sda

Create Partitions with fdisk

  • d - delete any existing partitions
  • n - create a new partition
fdisk /dev/sdb

Create Partitions with fdisk

  • d - delete any existing partitions
  • n - create a new partition

Once again using fdisk go back into each drive and change the "type" of the partitions to


Now use fdisk to convert partitions to a type needed for building the RAID array

fdisk /dev/sda
  • t - change the partition type to "fd". You can get a list of available types