{"id":460,"date":"2021-02-20T11:19:32","date_gmt":"2021-02-20T16:19:32","guid":{"rendered":"https:\/\/www.mgreene.org\/?p=460"},"modified":"2021-02-20T11:19:32","modified_gmt":"2021-02-20T16:19:32","slug":"nuc7pjyh-gentoo-uefi-configure","status":"publish","type":"post","link":"https:\/\/www.mgreene.org\/?p=460","title":{"rendered":"NUC7PJYH:  Gentoo UEFI Configure"},"content":{"rendered":"\n<p>This is no fun exercise. I did this over a year ago with my Asrock system, but of course did not record the exact steps, so I had to learn all over again.<\/p>\n\n\n\n<p>The best start is to use the <a rel=\"noreferrer noopener\" href=\"https:\/\/wiki.gentoo.org\/wiki\/Handbook:AMD64\/Installation\/Disks#What_is_the_EFI_System_Partition_.28ESP.29.3F\" data-type=\"URL\" data-id=\"https:\/\/wiki.gentoo.org\/wiki\/Handbook:AMD64\/Installation\/Disks#What_is_the_EFI_System_Partition_.28ESP.29.3F\" target=\"_blank\">Gentoo Handbook<\/a> example. I used a combination of fdisk and parted for the drive layout. As a note, I swapped to an EVO850 500G SSD that I had laying around. The following is how my SSD is layed out with a fdisk first, followed by a parted list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk -l:\nDisk \/dev\/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors\nDisk model: Samsung SSD 850 \nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisklabel type: gpt\nDisk identifier: B8C5EDC2-AAB2-5142-B4FC-23FA7FCD69E4\n\nDevice        Start       End   Sectors   Size Type\n\/dev\/sda1      2048      6143      4096     2M BIOS boot\n\/dev\/sda2      6144    518143    512000   250M EFI System\n\/dev\/sda3    518144  21489663  20971520    10G Linux swap\n\/dev\/sda4  21489664 976773134 955283471 455.5G Linux filesystem\n\nparted -l:\nModel: ATA Samsung SSD 850 (scsi)\nDisk \/dev\/sda: 500GB\nSector size (logical\/physical): 512B\/512B\nPartition Table: gpt\nDisk Flags: \n\nNumber  Start   End     Size    File system     Name    Flags\n 1      1049kB  3146kB  2097kB  ext2            grub    bios_grub\n 2      3146kB  265MB   262MB   fat32           boot    boot, esp\n 3      265MB   11.0GB  10.7GB  linux-swap(v1)  swap    swap\n 4      11.0GB  500GB   489GB   xfs             rootfs<\/code><\/pre>\n\n\n\n<p>The sda2 partition is the normal boot partition for the kernel, followed by swap, and then sda4 as the root partition. So, what about sda1? Well it is there to provide space for grub to the best of my knowledge, but it is not used. Why use xfs for the rootfs? Because I have never used it before &#8230;   I will probably downsize to a 250G SSD and switch to ext4 later because I have heard the 5.10 kernels have improvements\/changes.<\/p>\n\n\n\n<p>Next, install grub following the <a rel=\"noreferrer noopener\" href=\"https:\/\/www.mgreene.org\/wp-admin\/Number  Start   End     Size    File system     Name    Flags  1      1049kB  3146kB  2097kB  ext2            grub    bios_grub  2      3146kB  265MB   262MB   fat32           boot    boot, esp  3      265MB   11.0GB  10.7GB  linux-swap(v1)  swap    swap  4      11.0GB  500GB   489GB   xfs             rootfs\" target=\"_blank\">handbook<\/a>. Note, you should be using the handbook as a guide, so at this point the drive is mounted, stage3 is installed, etc &#8230;  I mount sda4 and sda2 using my script from the previous post and chroot into the image.  Finally, execute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grub-install --target=x86_64-efi --efi-directory=\/boot<\/code><\/pre>\n\n\n\n<p>Typical issues with Gentoo are panics on the first start.  Sometimes it is the grub configuration.  For the above, I have the following in \/etc\/default\/grub:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_CMDLINE_LINUX=\"root=\/dev\/sda4\"<\/code><\/pre>\n\n\n\n<p>Other times, it could be that you are not using an initial ram disk (I do not) which case the filesystem needs to be compiled into the kernel and not as a modules.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is no fun exercise. I did this over a year ago with my Asrock system, but of course did not record the exact steps, so I had to learn [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[12,92,96],"tags":[57,93,95,102],"class_list":["post-460","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-intel-nuc","category-nuc7pjyh","tag-gentoo","tag-intel-nuc","tag-nuc7pjyh","tag-uefi"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":420,"url":"https:\/\/www.mgreene.org\/?p=420","url_meta":{"origin":460,"position":0},"title":"New Toy:  Intel NUC 7 Essential Kit NUC7PJYH","author":"Mike","date":"January 1, 2021","format":false,"excerpt":"I decided to start with an older, but a little higher end than the bottom NUC. At the time Walmart had the better price. On Ebay, a used unit can be had for $40 to $100 cheaper with some already containing RAM and an SSD. There is also a link\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/01\/nuc_bottom-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/01\/nuc_bottom-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/01\/nuc_bottom-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/01\/nuc_bottom-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":449,"url":"https:\/\/www.mgreene.org\/?p=449","url_meta":{"origin":460,"position":1},"title":"NUC7PJYH:  Installing Gentoo","author":"Mike","date":"January 3, 2021","format":false,"excerpt":"Start This project was a real rocky start. I was having a hard time booting off the USB and more trouble with a USB keyboard attached. However, when I could get the unit to boot, the chroot worked and I could compile. I was to the point think the unit\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":471,"url":"https:\/\/www.mgreene.org\/?p=471","url_meta":{"origin":460,"position":2},"title":"NUC7PJYH: Closing out Gentoo on the Intel NUC","author":"Mike","date":"February 20, 2021","format":false,"excerpt":"Well, the NUC is done and everything to working. It is definitely not a speed demon, Geekbench scores prove it with a 158 Single-Core Score and 570 Multi-Core Score. NUC: Gnome Screen NUC: Gnome Overview with settings window, dash to dock, and workspaces to dock. I did try Wayland, and\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/02\/about-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":474,"url":"https:\/\/www.mgreene.org\/?p=474","url_meta":{"origin":460,"position":3},"title":"NUC7PJYH: Intel UHD Graphics 605 A problem video problem on the way to happiness","author":"Mike","date":"February 3, 2021","format":false,"excerpt":"The NUC J5005 uses built in Intel UHD Graphics 605 and I have it connected to a ViewSonic VG3448 34 Inch Ultra-Wide 21:9 WQHD. In the kernel config, it is configured as an i915. Short story, the first sign of problems is when the framebuffer is initialized which is followed\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":290,"url":"https:\/\/www.mgreene.org\/?p=290","url_meta":{"origin":460,"position":4},"title":"New toy &#8211; ASRock J3455-ITX","author":"Mike","date":"November 29, 2018","format":false,"excerpt":"Part because of a mistake and part for fun, I purchased an ASRock J3455-ITX.\u00a0 I tried to boot a couple different OSs without much luck, I could not get CoreOS to boot or even a Gentoo LiveCD. Granted, it is low power and slow, so it might have been my\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2018\/11\/j3455_memory.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2018\/11\/j3455_memory.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2018\/11\/j3455_memory.png?resize=525%2C300 1.5x"},"classes":[]},{"id":346,"url":"https:\/\/www.mgreene.org\/?p=346","url_meta":{"origin":460,"position":5},"title":"Gentoo finally on Gnome 3.34","author":"Mike","date":"March 22, 2020","format":false,"excerpt":"Linux littleturd 5.5.11-gentoo-mgreene #1 SMP Sun Mar 22 09:59:45 EDT 2020 x86_64 Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz GenuineIntel GNU\/Linux","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=460"}],"version-history":[{"count":0,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/460\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}