{"id":79,"date":"2022-05-19T18:28:00","date_gmt":"2022-05-20T01:28:00","guid":{"rendered":"https:\/\/www.cmsws.com\/blog\/?p=79"},"modified":"2023-05-27T05:57:24","modified_gmt":"2023-05-27T12:57:24","slug":"how-to-debian-11-uefi-software-raid","status":"publish","type":"post","link":"https:\/\/www.cmsws.com\/blog\/how-to-debian-11-uefi-software-raid\/","title":{"rendered":"Debian 11 + uEFI + Software RAID"},"content":{"rendered":"\n<p>This document is going to describe for you the setup that I have come up with to get uEFI and Software RAID to play nice together.  I performed this setup using the current release of <a href=\"http:\/\/debian.org\" target=\"_blank\" rel=\"noopener nofollow\" title=\"Debian\">Debian<\/a> 11.3 but I&#8217;m sure this process will work with any version of Debian or Debian based release.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example partition table layout<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>jlucas@cloud9:~$ lsblk\nNAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT     FileSystem Format\n&lt;snip&gt;\n\u251c\u2500sdi1    8:129  0   571M  0 part  \/boot\/efi      #FAT32\n\u251c\u2500sdi2    8:130  0   977M  0 part  \n\u2502 \u2514\u2500md0   9:0    0   976M  0 raid1 \/boot          #ext4\n\u251c\u2500sdi3    8:131  0   7.6G  0 part  &#91;SWAP]         #swap\n\u2514\u2500sdi4    8:132  0 214.4G  0 part  \n  \u2514\u2500md1   9:1    0 214.3G  0 raid1 \/              #ext4\nsdj       8:144  0 223.6G  0 disk  \n\u251c\u2500sdj1    8:145  0   571M  0 part  \n\u251c\u2500sdj2    8:146  0   977M  0 part  \n\u2502 \u2514\u2500md0   9:0    0   976M  0 raid1 \/boot          #ext4\n\u251c\u2500sdj3    8:147  0   7.6G  0 part  &#91;SWAP]         #swap\n\u2514\u2500sdj4    8:148  0 214.4G  0 part  \n  \u2514\u2500md1   9:1    0 214.3G  0 raid1 \/              #ext4<\/code><\/pre>\n\n\n\n<p>The &lt;snip&gt; is a portion that I took our of additional drives that are not related to the OS drives.<\/p>\n\n\n\n<p>To make the system fully bootable from either drive, you have to replicate the <em>\/dev\/sdi1<\/em> partition to <em>\/dev\/sdj1<\/em>.  The following line will take care of that:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dd if=\/dev\/sdi1 of=\/dev\/sdj1 bs=1M status=progress<\/code><\/pre>\n\n\n\n<p>A caveat to this is that when booting, since both \/dev\/sdi1 and \/dev\/sdj1 are a bit for bit copy of each other they system could at random mount either partition.  So, you need to take find<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Debian 11 install and setup on a software RAID partition layout.  Then booting using uEFI.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-79","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":5,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/posts\/79\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/categories?post=79"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cmsws.com\/blog\/wp-json\/wp\/v2\/tags?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}