{"id":158,"date":"2015-03-10T07:45:29","date_gmt":"2015-03-10T07:45:29","guid":{"rendered":"https:\/\/rln.d13dns.com\/?p=158"},"modified":"2015-03-10T07:45:29","modified_gmt":"2015-03-10T07:45:29","slug":"14-04-software-raid-and-encryption","status":"publish","type":"post","link":"https:\/\/randomlinuxnotes.d13.com\/?p=158","title":{"rendered":"14.04 software raid and encryption"},"content":{"rendered":"<p>I used this as a starting point<\/p>\n<p>http:\/\/askubuntu.com\/questions\/505446\/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer<\/p>\n<p>I did my own pairs of \/boot and \/ partions on my real disks sda and sdb, then installed mdadm and created the md0 and md1 raids from the command line then ran ubiquity -b<\/p>\n<p>(my \/boot is not encrypted, but \/ is)<\/p>\n<p>used md1 as a encrypted volume which I then mounted as \/<\/p>\n<p>#I then used the first guide&#8217;s steps to chroot into the new disk, and setup grub<br \/>\ngrub-install \/dev\/sda<br \/>\ngrub-install \/dev\/sdb<\/p>\n<p>#but added steps from<br \/>\nhttp:\/\/blog.asiantuntijakaveri.fi\/2014\/12\/headless-ubuntu-1404-server-with-full.html<\/p>\n<p>to make sure the initrd knew how to mount my encrypted \/<\/p>\n<p>#these steps help initrd find my software raid<br \/>\nmkdir -p \/dev\/md<br \/>\nln -s \/dev\/md0 \/dev\/md\/0<br \/>\nln -s \/dev\/md1 \/dev\/md\/1<br \/>\nln -s \/dev\/md0p1 \/dev\/md\/0p1<br \/>\nln -s \/dev\/md1p1 \/dev\/md\/1p1<\/p>\n<p>#make grub easier to deal with<br \/>\n\/etc\/default\/grub (change silent to vervbose, comment out the HIDDEN lines, set the bootwait=10, nosplash, bootdegraded=true<\/p>\n<p>\/etc\/grub.d\/10_linux (set quickboot and quietboot to zero)<\/p>\n<p>add some things to the end of \/etc\/default\/grub<\/p>\n<p>GRUB_TERMINAL_OUTPUT=console<br \/>\nGRUB_TERMINAL=console<br \/>\nGRUB_GFXPAYLOAD=text<br \/>\nGRUB_GFXPAYLOAD_LINUX=keep<\/p>\n<p>#tweaks to get the crypto stuff into initrd<br \/>\necho &#8220;CRYPTSETUP=y&#8221; &gt;&gt; \/etc\/initramfs-tools\/initramfs.conf<\/p>\n<p>sed -i -e&#8217;s|^setup=&#8221;no&#8221;$|setup=&#8221;yes&#8221;|g&#8217; \/usr\/share\/initramfs-tools\/hooks\/cryptroot<\/p>\n<p>#then rebuild initrd<br \/>\nupdate-initramfs -c -k all<\/p>\n<p>#then confirm that your initrd has the crypt stuff<br \/>\nlsinitramfs \/boot\/initrd.img-3.13.0-40-generic | grep cryptroot<br \/>\nlsinitramfs \/boot\/initrd.img-3.13.0-40-generic | grep cryptsetup<\/p>\n<p># Update grub.cfg<br \/>\nupdate-grub<\/p>\n<p>then exit the chroot and umount and reboot<\/p>\n<hr \/>\n<p>nvidia driver<\/p>\n<p>sudo add-apt-repository -y ppa:xorg-edgers\/ppa<br \/>\nsudo apt-get update<br \/>\nsudo apt-get install nvidia-340<\/p>\n<hr \/>\n<p>e19<\/p>\n<p>sudo add-apt-repository ppa:niko2040\/e19<br \/>\nsudo apt-get update<br \/>\nsudo apt-get install enlightenment<\/p>\n<hr \/>\n<p>amazon prime movies in mozilla<\/p>\n<p>sudo add-apt-repository ppa:mjblenner\/ppa-hal<br \/>\nsudo apt-get update<br \/>\nsudo apt-get install hal<\/p>\n<hr \/>\n<p>netflix just works with a modern chrome<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used this as a starting point http:\/\/askubuntu.com\/questions\/505446\/how-to-install-ubuntu-14-04-with-raid-1-using-desktop-installer I did my own pairs of \/boot and \/ partions on my real disks sda and sdb, then installed mdadm and created the md0 and md1 raids from the command line then ran ubiquity -b (my \/boot is not encrypted, but \/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[14,43,52,56,91,94,133,141,150],"class_list":["post-158","post","type-post","status-publish","format-standard","hentry","category-rln","tag-amazon-prime-linux","tag-e19","tag-grub","tag-initrd","tag-netflix-linux","tag-nvidia","tag-software-raid","tag-ubuntu-14-04","tag-whole-disk-encryption"],"_links":{"self":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/posts\/158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158"}],"version-history":[{"count":0,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=\/wp\/v2\/posts\/158\/revisions"}],"wp:attachment":[{"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomlinuxnotes.d13.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}