{"id":503,"date":"2012-11-07T12:41:19","date_gmt":"2012-11-07T18:41:19","guid":{"rendered":"http:\/\/nodakengineering.com\/?page_id=503"},"modified":"2012-11-10T22:38:36","modified_gmt":"2012-11-11T04:38:36","slug":"503-2","status":"publish","type":"page","link":"https:\/\/nodakengineering.com\/?page_id=503","title":{"rendered":"LFS Build Environment (Page 3)"},"content":{"rendered":"<h3>Installing the Host OS (Part 1)<\/h3>\n<p>Click on the green <strong>Start<\/strong> arrow in the VM Manager toolbar to start the new VM:<\/p>\n<figure id=\"attachment_571\" aria-describedby=\"caption-attachment-571\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Boot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-571\" title=\"Slackware Boot\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Boot-300x191.jpg\" alt=\"Slackware Boot\" width=\"300\" height=\"191\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Boot-300x191.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Boot.jpg 727w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-571\" class=\"wp-caption-text\">Slackware Boot<\/figcaption><\/figure>\n<p>Press <strong>Enter<\/strong> to continue<\/p>\n<figure id=\"attachment_577\" aria-describedby=\"caption-attachment-577\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Keyboard.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-577\" title=\"Slackware Keyboard\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Keyboard-300x191.jpg\" alt=\"Slackware Keyboard\" width=\"300\" height=\"191\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Keyboard-300x191.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Keyboard.jpg 727w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-577\" class=\"wp-caption-text\">Slackware Keyboard<\/figcaption><\/figure>\n<p>Select your keyboard map<\/p>\n<figure id=\"attachment_578\" aria-describedby=\"caption-attachment-578\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Login.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-578\" title=\"Slackware Login\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Login-300x191.jpg\" alt=\"Slackware Login\" width=\"300\" height=\"191\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Login-300x191.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Login.jpg 727w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-578\" class=\"wp-caption-text\">Slackware Login<\/figcaption><\/figure>\n<p>Login as root (just type <strong>root<\/strong> and press <strong>Enter<\/strong>)<\/p>\n<figure id=\"attachment_581\" aria-describedby=\"caption-attachment-581\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-581\" title=\"Slackware cfdisk\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-300x192.jpg\" alt=\"Slackware cfdisk\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-581\" class=\"wp-caption-text\">Slackware cfdisk<\/figcaption><\/figure>\n<p>Type <strong>cfdisk<\/strong> and press <strong>Enter<\/strong><\/p>\n<figure id=\"attachment_583\" aria-describedby=\"caption-attachment-583\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-New.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-583\" title=\"Slackware cfdisk New\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-New-300x192.jpg\" alt=\"Slackware cfdisk New\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-New-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-New.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-583\" class=\"wp-caption-text\">Slackware cfdisk New<\/figcaption><\/figure>\n<p>Select <strong>New<\/strong><\/p>\n<figure id=\"attachment_584\" aria-describedby=\"caption-attachment-584\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Primary.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-584\" title=\"Slackware cfdisk Primary\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Primary-300x192.jpg\" alt=\"Slackware cfdisk Primary\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Primary-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Primary.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-584\" class=\"wp-caption-text\">Slackware cfdisk Primary<\/figcaption><\/figure>\n<p>Select <strong>Primary<\/strong><\/p>\n<figure id=\"attachment_585\" aria-describedby=\"caption-attachment-585\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-boot.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-585\" title=\"Slackware cfdisk boot\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-boot-300x192.jpg\" alt=\"Slackware cfdisk boot\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-boot-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-boot.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-585\" class=\"wp-caption-text\">Slackware cfdisk boot<\/figcaption><\/figure>\n<p>Create a 100 MB primary boot partition at the\u00a0beginning of the disk<\/p>\n<figure id=\"attachment_586\" aria-describedby=\"caption-attachment-586\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-sda1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-586\" title=\"Slackware cfdisk sda1\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-sda1-300x192.jpg\" alt=\"Slackware cfdisk sda1\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-sda1-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-sda1.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-586\" class=\"wp-caption-text\">Slackware cfdisk sda1<\/figcaption><\/figure>\n<p>Make sure to set the boot flag for the sda1 partition<\/p>\n<figure id=\"attachment_588\" aria-describedby=\"caption-attachment-588\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Logical.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-588\" title=\"Slackware cfdisk Logical\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Logical-300x192.jpg\" alt=\"Slackware cfdisk Logical\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Logical-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-Logical.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-588\" class=\"wp-caption-text\">Slackware cfdisk Logical<\/figcaption><\/figure>\n<p>Arrow down to select the Free Space and select <strong>New<\/strong> and then <strong>Logical<\/strong><\/p>\n<figure id=\"attachment_591\" aria-describedby=\"caption-attachment-591\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-8-GB.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-591\" title=\"Slackware cfdisk 8 GB\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-8-GB-300x192.jpg\" alt=\"Slackware cfdisk 8 GB\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-8-GB-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-8-GB.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-591\" class=\"wp-caption-text\">Slackware cfdisk 8 GB<\/figcaption><\/figure>\n<p>Enter 8192 MB to create an 8 GB partition for \/<\/p>\n<figure id=\"attachment_592\" aria-describedby=\"caption-attachment-592\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-swap.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-592\" title=\"Slackware cfdisk swap\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-swap-300x192.jpg\" alt=\"Slackware cfdisk swap\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-swap-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-swap.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-592\" class=\"wp-caption-text\">Slackware cfdisk swap<\/figcaption><\/figure>\n<p>Select the last of the free space and make a logical disk using the remaining space&#8230;change the type to 82 (Linux swap)<\/p>\n<figure id=\"attachment_593\" aria-describedby=\"caption-attachment-593\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-write.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-593\" title=\"Slackware cfdisk write\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-write-300x192.jpg\" alt=\"Slackware cfdisk write\" width=\"300\" height=\"192\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-write-300x192.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-cfdisk-write.jpg 728w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-593\" class=\"wp-caption-text\">Slackware cfdisk write<\/figcaption><\/figure>\n<p>Select <strong>Write<\/strong> to make the changes permanent and then select <strong>Quit<\/strong><\/p>\n<p>Initialize the swap partition:<\/p>\n<pre>mkswap \/dev\/sda6<\/pre>\n<p>Format all other partitions (ext3):<\/p>\n<pre>mke2fs -jv \/dev\/sda1\r\nmke2fs -jv \/dev\/sda5<\/pre>\n<p>Label the partitons:<\/p>\n<pre>e2label \/dev\/sda1 boot\r\ne2label \/dev\/sda5 slack<\/pre>\n<figure id=\"attachment_597\" aria-describedby=\"caption-attachment-597\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/GParted.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-597\" title=\"GParted\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/GParted-300x203.jpg\" alt=\"GParted\" width=\"300\" height=\"203\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/GParted-300x203.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/GParted.jpg 777w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-597\" class=\"wp-caption-text\">GParted<\/figcaption><\/figure>\n<p>A look at our final Slackware host partitioning scheme in GParted&#8230;become familiar with this because we&#8217;re going to use it for the LFS drive later.<\/p>\n<p>At this point it would be a good idea to create a shortcut to our VM so we don&#8217;t have to always open the VirtualBox VM Manager just to start up our Slackware LFS host&#8230;simply right click on our VM and send it to the Desktop as shown below:<\/p>\n<figure id=\"attachment_595\" aria-describedby=\"caption-attachment-595\" style=\"width: 290px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Desktop-Shortcut.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-595\" title=\"Slackware Desktop Shortcut\" src=\"http:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Desktop-Shortcut-300x283.jpg\" alt=\"Slackware Desktop Shortcut\" width=\"300\" height=\"283\" srcset=\"https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Desktop-Shortcut-300x283.jpg 300w, https:\/\/nodakengineering.com\/wp-content\/uploads\/2012\/11\/Slackware-Desktop-Shortcut.jpg 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-595\" class=\"wp-caption-text\">Slackware Desktop Shortcut<\/figcaption><\/figure>\n<p><a title=\"LFS Build Environment (Page 4)\" href=\"http:\/\/nodakengineering.com\/?page_id=556\"><strong>Continue Installing the Host OS (Part 2)<\/strong><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a title=\"LFS Build Environment\" href=\"http:\/\/nodakengineering.com\/?page_id=483\"><strong>1<\/strong><\/a>\u00a0\u00a0<a title=\"LFS Build Environment (Page 2)\" href=\"http:\/\/nodakengineering.com\/?page_id=501\"><strong>2<\/strong><\/a>\u00a0<strong>\u00a0<\/strong>3<strong>\u00a0\u00a0<a title=\"LFS Build Environment (Page 4)\" href=\"http:\/\/nodakengineering.com\/?page_id=556\">4<\/a><\/strong>\u00a0\u00a0<strong><a title=\"LFS Build Environment (Page 5)\" href=\"http:\/\/nodakengineering.com\/?page_id=607\">5<\/a>\u00a0\u00a0<a title=\"LFS Build Environment (Page 6)\" href=\"http:\/\/nodakengineering.com\/?page_id=612\">6<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing the Host OS (Part 1) Click on the green Start arrow in the VM Manager toolbar to start the new VM: Press Enter to continue Select your keyboard map Login as root (just type root and press Enter) Type cfdisk and press Enter Select New Select Primary Create a 100 MB primary boot partition &#8230; <a title=\"LFS Build Environment (Page 3)\" class=\"read-more\" href=\"https:\/\/nodakengineering.com\/?page_id=503\" aria-label=\"Read more about LFS Build Environment (Page 3)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":483,"menu_order":1,"comment_status":"closed","ping_status":"open","template":"page-without-sidebar.php","meta":{"footnotes":""},"class_list":["post-503","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=503"}],"version-history":[{"count":19,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/503\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/503\/revisions\/619"}],"up":[{"embeddable":true,"href":"https:\/\/nodakengineering.com\/index.php?rest_route=\/wp\/v2\/pages\/483"}],"wp:attachment":[{"href":"https:\/\/nodakengineering.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}