{"id":229,"date":"2020-10-04T18:28:17","date_gmt":"2020-10-04T17:28:17","guid":{"rendered":"https:\/\/alexskra.com\/blog\/?p=229"},"modified":"2024-04-24T21:49:10","modified_gmt":"2024-04-24T20:49:10","slug":"ubuntu-20-04-with-software-raid1-and-uefi","status":"publish","type":"post","link":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/","title":{"rendered":"Ubuntu 24.04 with software RAID1 and UEFI"},"content":{"rendered":"\n<p>Software RAID has been relatively simple to use for a long time as it mostly just works. Things are less straightforward when using UEFI as you need an EFI partition that can&#8217;t be on a software RAID.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Well, you could put the EFI partition in a software RAID if you put the metadata at the end of the partition. That way the beginning of the partition would be the same as without RAID. The issue with this is if something external writes to the partition as you can&#8217;t be sure which drive has the correct state. That&#8217;s why we&#8217;re going to use another approach.<\/p>\n\n\n\n<p>Instead of putting it on a RAID, we&#8217;ll install Ubuntu as usual, and then copy the EFI partition over to the second drive. Then we&#8217;ll make sure that either of the two hard drives can go away without affecting the ability to run or boot. We&#8217;re going to use the efibootmgr tool to make sure both drives are in the boot-list.<\/p>\n\n\n\n<p>I&#8217;ll also add some info on how to handle drive replacements and updates affecting EFI. The steps also work if you are using Ubuntu 22.04.<\/p>\n\n\n\n<p>So let&#8217;s get on with it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing Ubuntu 24.04 with RAID<\/h2>\n\n\n\n<p>First, let&#8217;s install Ubuntu and get a step closer to our goal of RAID1. When you get to the storage configuration screen, select &#8220;Custom storage layout&#8221; and follow these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Reformat both drives if they&#8217;re not empty.\u00a0<\/li>\n\n\n\n<li>Mark both drives as a boot device. Doing so will create an ESP(EFI system partition) on both drives.<\/li>\n\n\n\n<li>Add an unformatted GPT partition to both drives. They need to have the same size. We&#8217;re going to use those partitions for the RAID that contains the OS.<\/li>\n\n\n\n<li>Create a software RAID(md) by selecting the two partitions you just created for the OS.<\/li>\n\n\n\n<li>Congratulations, you now have a new RAID device. Let&#8217;s add at least one GPT partition to it.<\/li>\n\n\n\n<li>Optional: If you want the ability to swap, create a swap partition on the RAID device. Set the size to the same as your RAM, or half if you have 64 GB or more RAM.<\/li>\n\n\n\n<li>Create a partition for Ubuntu on the RAID device. You can use the remaining space if you want to. Format it as ext4 and mount it at \/.<\/li>\n<\/ol>\n\n\n\n<p>When you have followed the steps above, this is what it will look like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"850\" src=\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/Skjermdump-fra-2020-10-02-00-37-46-1024x850.png\" alt=\"What partitioning of disks when installing Ubuntu on software raid might look like.\" class=\"wp-image-230\" srcset=\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/Skjermdump-fra-2020-10-02-00-37-46-1024x850.png 1024w, https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/Skjermdump-fra-2020-10-02-00-37-46-300x249.png 300w, https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/Skjermdump-fra-2020-10-02-00-37-46-768x638.png 768w, https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/Skjermdump-fra-2020-10-02-00-37-46.png 1044w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">What partitioning of disks when installing Ubuntu on software raid might look like. Note that this is without swap, you will have a partition more if you opted to use swap.<\/figcaption><\/figure>\n\n\n\n<p>Save the changes and continue along with the installation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make sure both drives are bootable<\/h2>\n\n\n\n<p>Congratulations, you now have a redundant setup! You can check the status of the RAID by running the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo mdadm --detail \/dev\/md0<\/code><\/pre>\n\n\n\n<p>If the RAID has completed syncing you&#8217;ll be able to crash or remove one drive and run off of the remaining hard drive.<\/p>\n\n\n\n<p>However, while this is fine, there is one potential lurking issue. If you remove one drive, you might be unable to boot the system. So let&#8217;s make sure the ESP is the same on both drives, and that the system will try to boot from either of the hard drives and not just one. Ubuntu&#8217;s installer should have taken care of this for you, but feel free to check.<\/p>\n\n\n\n<p>First, show the partition UUIDs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls -la \/dev\/disk\/by-partuuid\/\n\ntotal 0\ndrwxr-xr-x 2 root root 120 Oct 1 22:43 .\ndrwxr-xr-x 7 root root 140 Oct 1 22:43 ..\nlrwxrwxrwx 1 root root 10 Oct 1 22:43 04d1fc28-4747-497b-9732-75f691a7ae7a -&gt; ..\/..\/sdb2\nlrwxrwxrwx 1 root root 10 Oct 1 22:43 0577b983-cf0a-4516-a3ab-92e19c3e9afe -&gt; ..\/..\/sda1\nlrwxrwxrwx 1 root root 10 Oct 1 22:43 97eecdcd-8ec3-4b8e-a6d9-1114d3baa75b -&gt; ..\/..\/sda2\nlrwxrwxrwx 1 root root 10 Oct 1 22:43 98d444f0-df7f-41d9-8461-95ca566bd3a7 -&gt; ..\/..\/sdb1<\/code><\/pre>\n\n\n\n<p>Take note of the UUIDs belonging to the first partition on both drives. In this case, it&#8217;s the ones starting with 0577b983(sda1) and 98d444f0(sdb1).<\/p>\n\n\n\n<p>Next, check what drive you&#8217;re currently using:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ mount | grep boot\n\n\/dev\/sdb1 on \/boot\/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)<\/code><\/pre>\n\n\n\n<p>As you can see, we&#8217;re currently using sdb1, so that&#8217;s working. Let&#8217;s copy it over to sda1:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo dd if=\/dev\/sdb1 of=\/dev\/sda1<\/code><\/pre>\n\n\n\n<p>Now we have a working ESP on both drives, so the next step is to make sure both ESP exists in the boot-list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ efibootmgr -v\n\nBootCurrent: 0005\nTimeout: 0 seconds\nBootOrder: 0001,0005,0006,0000,0002,0003,0004\nBoot0000* UiApp FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)\/FvFile(462caa21-7614-4503-836e-8ab6f4662331)\nBoot0001* UEFI VBOX CD-ROM VB2-01700376 PciRoot(0x0)\/Pci(0x1,0x1)\/Ata(1,0,0)N\u2026..YM\u2026.R,Y.\nBoot0002* UEFI VBOX HARDDISK VBf2f22214-890bfc65 PciRoot(0x0)\/Pci(0xd,0x0)\/Sata(0,65535,0)N\u2026..YM\u2026.R,Y.\nBoot0003* UEFI VBOX HARDDISK VB7e066f6b-0343c49a PciRoot(0x0)\/Pci(0xd,0x0)\/Sata(1,65535,0)N\u2026..YM\u2026.R,Y.\nBoot0004* EFI Internal Shell FvVol(7cb8bdc9-f8eb-4f34-aaea-3ee4af6516a1)\/FvFile(7c04a583-9e3e-4f1c-ad65-e05268d0b4d1)\nBoot0005* ubuntu HD(1,GPT,98d444f0-df7f-41d9-8461-95ca566bd3a7,0x800,0x100000)\/File(\\EFI\\ubuntu\\shimx64.efi)\nBoot0006* ubuntu HD(1,GPT,0577b983-cf0a-4516-a3ab-92e19c3e9afe,0x800,0x100000)\/File(\\EFI\\ubuntu\\shimx64.efi)<\/code><\/pre>\n\n\n\n<p>You should see two entries called Ubuntu. Make sure the UUIDs are the same as the two you took note of earlier.<\/p>\n\n\n\n<p>If an entry is missing, you&#8217;ll need to add it.<\/p>\n\n\n\n<p>Example of how to add an entry for the UUID starting with 0577b983(sda1) if it&#8217;s missing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo efibootmgr --create --disk \/dev\/sda --part 1 --label \"ubuntu\" --loader \"\\EFI\\ubuntu\\shimx64.efi\"<\/code><\/pre>\n\n\n\n<p>You should now be able to remove any of the two drives and still boot the system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Adding a fresh drive after a failure<\/h2>\n\n\n\n<p>So, a drive has failed, and you&#8217;ve replaced it with a new one. How do you set it up?<\/p>\n\n\n\n<p>First, find the new drive:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo fdisk -l<\/code><\/pre>\n\n\n\n<p>It&#8217;s probably one without any partitions. <strong>Make sure you&#8217;re using the right drive<\/strong>. In my case, it&#8217;s <code>\/dev\/sdb<\/code>, so I&#8217;ll want to back up the partition table from <code>\/dev\/sda<\/code> and write it to <code>\/dev\/sdb<\/code>.<\/p>\n\n\n\n<p>Change the source to the existing drive and dest to the new one:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ source=\/dev\/sda\n$ dest=\/dev\/sdb<\/code><\/pre>\n\n\n\n<p>Create a backup in case you mix it up:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo sgdisk --backup=backup-$(basename $source).sgdisk $source\n$ sudo sgdisk --backup=backup-$(basename $dest).sgdisk $dest<\/code><\/pre>\n\n\n\n<p>Create a replica of the source partition table and then grenerate new UUIDs for the new drive:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo sgdisk --replicate=$dest $source\n$ sudo sgdisk -G $dest<\/code><\/pre>\n\n\n\n<p>Start syncing the raid, replace the X with the correct partition(it&#8217;s 2 for me):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo mdadm --manage \/dev\/md0 -a $(echo \"$dest\"X)<\/code><\/pre>\n\n\n\n<p>Now, copy over the ESP(replace X with the correct partition, it&#8217;s 1 for me):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo dd if=$(echo \"$source\"X) of=$(echo \"$dest\"X)<\/code><\/pre>\n\n\n\n<p>Then list the current drive UUIDs:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ls -la \/dev\/disk\/by-partuuid\/<\/code><\/pre>\n\n\n\n<p>Then show the boot-list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ efibootmgr -v<\/code><\/pre>\n\n\n\n<p>Take note of the BootOrder in case you want to change it.<\/p>\n\n\n\n<p>If any of the ubuntu entries points to a UUID that currently don&#8217;t exist, delete it(replace XXXX with the ID form the boot-list):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo efibootmgr -B -b XXXX<\/code><\/pre>\n\n\n\n<p>If any of the current UUIDs for partition 1 on the drives don&#8217;t exist in the boot-list, add it(replace the X with the drive that is missing):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo efibootmgr --create --disk \/dev\/sdX --part 1 --label \"ubuntu\" --loader \"\\EFI\\ubuntu\\shimx64.efi\"<\/code><\/pre>\n\n\n\n<p>Verify that it&#8217;s correct:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ efibootmgr -v<\/code><\/pre>\n\n\n\n<p>All good? Great! You now have a working RAID again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Software RAID has been relatively simple to use for a long time as it mostly just works. Things are less straightforward when using UEFI as you need an EFI partition that can&#8217;t be on a software RAID.<\/p>\n","protected":false},"author":1,"featured_media":237,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[25,23,24,6],"class_list":["post-229","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-mdraid","tag-nvme","tag-raid","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 24.04 with software RAID1 and UEFI - ALEXSKRA<\/title>\n<meta name=\"description\" content=\"This post shows you how to set up a software RAID1 on Ubuntu 22.04, what to do if a disk fails and how to make sure the RAID is bootable.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 24.04 with software RAID1 and UEFI - ALEXSKRA\" \/>\n<meta property=\"og:description\" content=\"This post shows you how to set up a software RAID1 on Ubuntu 22.04, what to do if a disk fails and how to make sure the RAID is bootable.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\" \/>\n<meta property=\"og:site_name\" content=\"ALEXSKRA\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-04T17:28:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-24T20:49:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"888\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alex\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\"},\"author\":{\"name\":\"Alex\",\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\"},\"headline\":\"Ubuntu 24.04 with software RAID1 and UEFI\",\"datePublished\":\"2020-10-04T17:28:17+00:00\",\"dateModified\":\"2024-04-24T20:49:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\"},\"wordCount\":948,\"commentCount\":22,\"publisher\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\"},\"image\":{\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png\",\"keywords\":[\"mdraid\",\"nvme\",\"raid\",\"ubuntu\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\",\"url\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\",\"name\":\"Ubuntu 24.04 with software RAID1 and UEFI - ALEXSKRA\",\"isPartOf\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png\",\"datePublished\":\"2020-10-04T17:28:17+00:00\",\"dateModified\":\"2024-04-24T20:49:10+00:00\",\"description\":\"This post shows you how to set up a software RAID1 on Ubuntu 22.04, what to do if a disk fails and how to make sure the RAID is bootable.\",\"breadcrumb\":{\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage\",\"url\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png\",\"contentUrl\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png\",\"width\":1200,\"height\":888,\"caption\":\"Software RAID1 on UBuntu 20.04 with UEFI\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/alexskra.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 24.04 with software RAID1 and UEFI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/alexskra.com\/blog\/#website\",\"url\":\"https:\/\/alexskra.com\/blog\/\",\"name\":\"Alexskra\",\"description\":\"Web development, tech and thinkering\",\"publisher\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/alexskra.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\",\"name\":\"Alex\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g\",\"caption\":\"Alex\"},\"logo\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu 24.04 with software RAID1 and UEFI - ALEXSKRA","description":"This post shows you how to set up a software RAID1 on Ubuntu 22.04, what to do if a disk fails and how to make sure the RAID is bootable.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/","og_locale":"en_US","og_type":"article","og_title":"Ubuntu 24.04 with software RAID1 and UEFI - ALEXSKRA","og_description":"This post shows you how to set up a software RAID1 on Ubuntu 22.04, what to do if a disk fails and how to make sure the RAID is bootable.","og_url":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/","og_site_name":"ALEXSKRA","article_published_time":"2020-10-04T17:28:17+00:00","article_modified_time":"2024-04-24T20:49:10+00:00","og_image":[{"width":1200,"height":888,"url":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png","type":"image\/png"}],"author":"Alex","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alex","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#article","isPartOf":{"@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/"},"author":{"name":"Alex","@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8"},"headline":"Ubuntu 24.04 with software RAID1 and UEFI","datePublished":"2020-10-04T17:28:17+00:00","dateModified":"2024-04-24T20:49:10+00:00","mainEntityOfPage":{"@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/"},"wordCount":948,"commentCount":22,"publisher":{"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8"},"image":{"@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage"},"thumbnailUrl":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png","keywords":["mdraid","nvme","raid","ubuntu"],"articleSection":["Linux"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/","url":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/","name":"Ubuntu 24.04 with software RAID1 and UEFI - ALEXSKRA","isPartOf":{"@id":"https:\/\/alexskra.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage"},"image":{"@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage"},"thumbnailUrl":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png","datePublished":"2020-10-04T17:28:17+00:00","dateModified":"2024-04-24T20:49:10+00:00","description":"This post shows you how to set up a software RAID1 on Ubuntu 22.04, what to do if a disk fails and how to make sure the RAID is bootable.","breadcrumb":{"@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#primaryimage","url":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png","contentUrl":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/10\/ubuntu-raid.png","width":1200,"height":888,"caption":"Software RAID1 on UBuntu 20.04 with UEFI"},{"@type":"BreadcrumbList","@id":"https:\/\/alexskra.com\/blog\/ubuntu-20-04-with-software-raid1-and-uefi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/alexskra.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 24.04 with software RAID1 and UEFI"}]},{"@type":"WebSite","@id":"https:\/\/alexskra.com\/blog\/#website","url":"https:\/\/alexskra.com\/blog\/","name":"Alexskra","description":"Web development, tech and thinkering","publisher":{"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/alexskra.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8","name":"Alex","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g","caption":"Alex"},"logo":{"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":6,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":359,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions\/359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/media\/237"}],"wp:attachment":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}