{"id":1706,"date":"2022-12-05T14:58:14","date_gmt":"2022-12-05T13:58:14","guid":{"rendered":"https:\/\/www.klokocka.info\/?p=1706"},"modified":"2022-12-15T13:07:41","modified_gmt":"2022-12-15T12:07:41","slug":"ubuntu-server-22-04-boot-from-other-disk-usb-sd","status":"publish","type":"post","link":"https:\/\/www.klokocka.info\/?p=1706","title":{"rendered":"Ubuntu server 22.04 &#8211; boot from another USB\/SD disk"},"content":{"rendered":"\n<p>In some scenarios, you need to boot from different device than from the one where the system is installed. For example when your BIOS dosn&#8217;t allow you to choose from which HDD to boot and the boot position of controller is already occupied by other disk.<\/p>\n\n\n\n<p>Prerequisities <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Bootable USB instalation media of Ubuntu 22.04 (<a rel=\"noreferrer noopener\" href=\"https:\/\/ubuntu.com\/download\/server\" target=\"_blank\">Download<\/a> server iso and create bootable USB using <a rel=\"noreferrer noopener\" href=\"https:\/\/rufus.ie\/en\/\" target=\"_blank\">Rufus<\/a>. Dont forget create it as <strong>MBR<\/strong> !!!) Here is step by step <strong><a href=\"https:\/\/ubuntu.com\/tutorials\/create-a-usb-stick-on-windows\" target=\"_blank\" rel=\"noreferrer noopener\">tutorial<\/a><\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Another USB stick or SD card &#8211; that will be used as bootable device.<\/li>\n<\/ul>\n\n\n\n<p>During the installation of  Ubuntu 22.04 server you can choose a different boot device than the disk you want to install the system to, but there is no possibilty to choos.e SD card or USB flash disk as a <strong>boot device<\/strong> if it had not been previously made as bootable. So let&#8217;s make it bootable via Rufus:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-12.png\" alt=\"\" class=\"wp-image-1711\" width=\"365\" height=\"413\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-12.png 480w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-12-265x300.png 265w\" sizes=\"auto, (max-width: 365px) 100vw, 365px\" \/><figcaption class=\"wp-element-caption\">Making empty USB flashdisk or SD card bootable via Rufus (this is not installation media, just &#8220;disk&#8221; for booting after installation)<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Next step is to boot from USB installation media. The other empty bootable USB\/SD left aside for now, insert it after successful boot.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1011\" height=\"556\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-21.png\" alt=\"\" class=\"wp-image-1743\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-21.png 1011w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-21-300x165.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-21-768x422.png 768w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-21-600x330.png 600w\" sizes=\"auto, (max-width: 1011px) 100vw, 1011px\" \/><figcaption class=\"wp-element-caption\">Select try or install&#8230;<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Now you can plug the other empty bootable USB\/SD in. We will need it during installation. Then select Try or install Ubuntu.<\/p>\n\n\n\n<p>In next installation steps choose language,  keyboard, installation typ (Ubuntu Server), network, proxy, mirror&#8230; and proceed to next screen, where you select <strong>Custom <\/strong>storage layout.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"782\" height=\"327\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-22.png\" alt=\"\" class=\"wp-image-1744\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-22.png 782w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-22-300x125.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-22-768x321.png 768w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-22-600x251.png 600w\" sizes=\"auto, (max-width: 782px) 100vw, 782px\" \/><figcaption class=\"wp-element-caption\">Select Custom storage layout<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"642\" height=\"536\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-13.png\" alt=\"\" class=\"wp-image-1715\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-13.png 642w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-13-300x250.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-13-600x501.png 600w\" sizes=\"auto, (max-width: 642px) 100vw, 642px\" \/><figcaption class=\"wp-element-caption\">Now you can see all your disk at theirs intial state. <\/figcaption><\/figure>\n<\/div>\n\n\n<p>In the next step choose Reformat at both USB and disk you wish to install system to.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"854\" height=\"529\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-14.png\" alt=\"\" class=\"wp-image-1716\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-14.png 854w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-14-300x186.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-14-768x476.png 768w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-14-80x50.png 80w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-14-600x372.png 600w\" sizes=\"auto, (max-width: 854px) 100vw, 854px\" \/><figcaption class=\"wp-element-caption\">Select Reformat at USB and at future system HDD<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"533\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-15.png\" alt=\"\" class=\"wp-image-1717\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-15.png 630w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-15-300x254.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-15-600x508.png 600w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><figcaption class=\"wp-element-caption\">This is the goal &#8211; have free space (here is a <strong>mistake<\/strong> in the picture &#8211; Samsungs free space should be underlined)<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"831\" height=\"533\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-16.png\" alt=\"\" class=\"wp-image-1718\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-16.png 831w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-16-300x192.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-16-768x493.png 768w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-16-80x50.png 80w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-16-600x385.png 600w\" sizes=\"auto, (max-width: 831px) 100vw, 831px\" \/><figcaption class=\"wp-element-caption\">Choose USB and pick <strong>Use as boot device<\/strong> (just this, don&#8217;t format, don&#8217; mount &#8211; this is going to be bootable disk only)<\/figcaption><\/figure>\n<\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"880\" height=\"496\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-17.png\" alt=\"\" class=\"wp-image-1719\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-17.png 880w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-17-300x169.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-17-768x433.png 768w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-17-600x338.png 600w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><figcaption class=\"wp-element-caption\">Format HDD<\/figcaption><\/figure>\n\n\n\n<p>Then choose format and mount system disk this way:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"661\" height=\"303\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-18.png\" alt=\"\" class=\"wp-image-1720\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-18.png 661w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-18-300x138.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-18-600x275.png 600w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><figcaption class=\"wp-element-caption\">Format and mount system disk<\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"835\" height=\"276\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-19.png\" alt=\"\" class=\"wp-image-1721\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-19.png 835w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-19-300x99.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-19-768x254.png 768w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-19-600x198.png 600w\" sizes=\"auto, (max-width: 835px) 100vw, 835px\" \/><figcaption class=\"wp-element-caption\">This is how should your USED DEVICES section looks like<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Select DONE and proceed next step of installation. Choose install SSH and proceed to next screen, where you select only canonical livepatch.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"289\" src=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-20.png\" alt=\"\" class=\"wp-image-1722\" srcset=\"https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-20.png 684w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-20-300x127.png 300w, https:\/\/www.klokocka.info\/wp-content\/uploads\/2022\/12\/image-20-600x254.png 600w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><figcaption class=\"wp-element-caption\">Choose canonical livepatch<\/figcaption><\/figure>\n<\/div>\n\n\n<p>And then instalation begins. After it finishes remove installation media and try to boot. Don&#8217;t forget choose your boot USB as permanent boot device in BIOS.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/update system\nsudo apt update &amp;&amp; sudo apt upgrade\n\n\/\/Window manager for LQxt (i thing itsn faster - change it in preferrences)\nsudo apt -y install openbox\n\n\/\/\/\/install Ubuntu desktop environment\n\/\/sudo apt -y install ubuntu-desktop\n\n\/\/install Lubuntu desktop environment\nsudo apt -y install lubuntu-desktop\n\n\/\/Chrome\nwget https:\/\/dl.google.com\/linux\/direct\/google-chrome-stable_current_amd64.deb\nsudo apt install .\/google-chrome-stable_current_amd64.deb\n\/\/DobleCommander\nsudo apt install doublecmd-qt\n\n\/\/install webmin\nsudo -s\ncd \/root\nwget https:\/\/download.webmin.com\/jcameron-key.asc\ncat jcameron-key.asc | gpg --dearmor >\/etc\/apt\/trusted.gpg.d\/jcameron-key.gpg\nsudo nano \/etc\/apt\/sources.list\n\/\/add lines to the end\n# deb https:\/\/download.webmin.com\/download\/repository sarge contrib\ndeb https:\/\/download.webmin.com\/download\/repository sarge contrib\napt-get install apt-transport-https\napt-get update\napt-get install webmin\nsudo ufw allow 10000\n\n\/\/install xrdp Remote desktop\nwget https:\/\/www.c-nergy.be\/downloads\/xRDP\/xrdp-installer-1.4.4.zip\nunzip xrdp-installer-1.4.4.zip\nchmod +x  xrdp-installer-1.4.4.sh\n.\/xrdp-installer-1.4.4.sh --loginscreen\n(run this also for change desktop environment used by xrdp)\n\n\/\/LXQt Network manager\nsudo apt install cmst\n\n\/\/Double commander\nsudo apt install doublecmd-qt\n\n\/\/Krusader (commander)\nsudo apt-get install kate\nsudo apt-get install rpm\nsudo apt-get install rar\nsudo apt-get install kdiff3\nsudo apt-get install krusader<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In some scenarios, you need to boot from different device than from the one where the system is installed. For example when your BIOS dosn&#8217;t allow you to choose from which HDD to boot and the boot position of controller &hellip; <a href=\"https:\/\/www.klokocka.info\/?p=1706\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":1763,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"kt_blocks_editor_width":"","pgc_sgb_lightbox_settings":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-1706","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nezarazene"],"_links":{"self":[{"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/posts\/1706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1706"}],"version-history":[{"count":17,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/posts\/1706\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/posts\/1706\/revisions\/1823"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=\/wp\/v2\/media\/1763"}],"wp:attachment":[{"href":"https:\/\/www.klokocka.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.klokocka.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}