Book Image

Building Networks and Servers using Beaglebone

Book Image

Building Networks and Servers using Beaglebone

Overview of this book

Table of Contents (13 chapters)

Preparing the partitions with fdisk


Each partition in the RAID set must be set to the type Linux raid auto.

  1. We will be doing this using fdisk again, as shown in the following screenshot:

  2. Your disk may come with a number of partitions, as shown here:

  3. First, we must get rid of any existing partitions using the o command, as shown in the following screenshot:

  4. Now that we have removed the unwanted partitions, we can create our own using the n command:

  5. Select a partition and modify its type using the t command and specify the partition number and type code. Then, use the p command to get the new proposed partition table, as shown here:

  6. Use the w command to permanently save the changes to the /dev/sda disk:

We will not cover the process for the other partitions. It's enough to know that the steps to change the IDs for /dev/sdb1 and /dev/sdb2 are very similar.

Now that we have our RAID drives initialized, it is time to install Linux Mdadm, which stands for Multiple Disk Administrator.