{"id":5075,"date":"2016-08-31T10:49:29","date_gmt":"2016-08-31T10:49:29","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=5075"},"modified":"2016-08-31T11:32:45","modified_gmt":"2016-08-31T11:32:45","slug":"grub-gpt-partition-efi-uefi","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=5075","title":{"rendered":"Grub + GPT partition \/ EFI \/ UEFI"},"content":{"rendered":"<h3>Wikipedia<\/h3>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Unified_Extensible_Firmware_Interface\">Unified Extensible Firmware Interface<\/a><br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/EFI_system_partition\">EFI system partition<\/a><br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/BIOS_boot_partition\">BIOS boot partition<\/a><\/p>\n<h3>Ubuntu<\/h3>\n<table>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/gparted_efi.png\" rel=\"attachment wp-att-5088\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/gparted_efi-300x135.png\" alt=\"gparted_efi\" width=\"300\" height=\"135\" class=\"alignleft size-medium wp-image-5088\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/gparted_efi-300x135.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/gparted_efi-624x281.png 624w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/gparted_efi.png 673w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n<table>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/xubuntu_install.png\" rel=\"attachment wp-att-5090\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/xubuntu_install-300x227.png\" alt=\"xubuntu_install\" width=\"300\" height=\"227\" class=\"alignleft size-medium wp-image-5090\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/xubuntu_install-300x227.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/xubuntu_install-768x582.png 768w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/xubuntu_install-624x473.png 624w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/xubuntu_install.png 819w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n<p><a href=\"https:\/\/wiki.ubuntuusers.de\/EFI_Bootmanagement\/\">EFI Bootmanagement<\/a><br \/>\n<a href=\"https:\/\/wiki.ubuntuusers.de\/EFI_Grundlagen\/\">EFI Grundlagen<\/a><br \/>\n<a href=\"https:\/\/wiki.ubuntuusers.de\/EFI_Installieren\/\">EFI Installieren<\/a><br \/>\n<a href=\"https:\/\/wiki.ubuntuusers.de\/EFI_Nachbearbeitung\/\">EFI Nachbearbeitung<\/a><br \/>\n<a href=\"https:\/\/wiki.ubuntuusers.de\/EFI_Problembehebung\/\">EFI Problembehebung<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ mount | grep efivars \r\nefivarfs on \/sys\/firmware\/efi\/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)\r\n\r\n$ sudo apt-get install efibootmgr \r\n\r\n$ sudo dmidecode -t 0\r\n# dmidecode 3.0\r\nGetting SMBIOS data from sysfs.\r\nSMBIOS 2.6 present.\r\nHandle 0x0000, DMI type 0, 24 bytes\r\nBIOS Information\r\n\tVendor: Phoenix Technologies Ltd.\r\n\tVersion: 02QA\r\n\tRelease Date: 11\/11\/2011\r\n\tAddress: 0xE0000\r\n\tRuntime Size: 128 kB\r\n\tROM Size: 2560 kB\r\n\tCharacteristics:\r\n\t\tPCI is supported\r\n\t\tBIOS is upgradeable\r\n\t\tBIOS shadowing is allowed\r\n\t\tBoot from CD is supported\r\n\t\tSelectable boot is supported\r\n\t\tEDD is supported\r\n\t\tPrint screen service is supported (int 5h)\r\n\t\t8042 keyboard services are supported (int 9h)\r\n\t\tSerial services are supported (int 14h)\r\n\t\tPrinter services are supported (int 17h)\r\n\t\tCGA\/mono video services are supported (int 10h)\r\n\t\tNEC PC-98\r\n\t\tACPI is supported\r\n\t\tUSB legacy is supported\r\n\t\tBIOS boot specification is supported\r\n\t\tFunction key-initiated network boot is supported\r\n\t\tTargeted content distribution is supported\r\n\tBIOS Revision: 0.1\r\n\r\n$ sudo dmidecode -t 1\r\n# dmidecode 3.0\r\nGetting SMBIOS data from sysfs.\r\nSMBIOS 2.6 present.\r\nHandle 0x0001, DMI type 1, 27 bytes\r\nSystem Information\r\n\tManufacturer: SAMSUNG ELECTRONICS CO., LTD.\r\n\tProduct Name: 300E4A\/300E5A\/300E7A\r\n\tVersion: 0.1\r\n\tSerial Number: HN0J93FBC00446\r\n\tUUID: 3B0E5E40-1DDD-11B2-8000-CD2AC832DD7D\r\n\tWake-up Type: Power Switch\r\n\tSKU Number: System SKUNumber\r\n\tFamily: HuronRiver System\r\n\r\n$ sudo efibootmgr -v \r\nBootCurrent: 0008\r\nTimeout: 0 seconds\r\nBootOrder: 0008,0003,0005,0006,0007,0009\r\nBoot0000  Setup\tFvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)\r\nBoot0001  Boot Menu\tFvFile(86488440-41bb-42c7-93ac-450fbf7766bf)\r\nBoot0002  Recovery\tFvFile(ab4579c4-3bc5-4489-a88e-0f21e6cebf85)\r\nBoot0003* SATA CD:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)\r\nBoot0004* CD-ROM:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,be9d0102e211f3489efa0b983c96839b)\r\nBoot0005* SATA HDD:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)\r\nBoot0006* USB CD:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)\r\nBoot0007* USB FDD:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)\r\nBoot0008* USB HDD:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)\r\nBoot0009* NETWORK:\tVenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)\r\n\r\n$ sudo parted -l\r\nModel: ATA Samsung SSD 850 (scsi)\r\nDisk \/dev\/sda: 120GB\r\nSector size (logical\/physical): 512B\/512B\r\nPartition Table: gpt\r\nDisk Flags: \r\n\r\nNumber  Start   End    Size    File system     Name        Flags\r\n 3      1049kB  269MB  268MB                   gpt-boot\r\n 4      269MB   286MB  16.8MB  fat16           gpt-grub    msftdata\r\n 1      108GB   119GB  10.5GB  ext4            linux-root\r\n 2      119GB   120GB  1074MB  linux-swap(v1)  linux-swap\r\n\r\nWarning: The driver descriptor says the physical block size is 2048 bytes, but\r\nLinux says it is 512 bytes.\r\n<\/pre>\n<h3>grub-efi-amd64-signed<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# apt-get install shim-signed\r\nReading package lists... Done\r\nBuilding dependency tree       \r\nReading state information... Done\r\nshim-signed is already the newest version (1.18~16.04.1+0.8-0ubuntu2).\r\n0 upgraded, 0 newly installed, 0 to remove and 328 not upgraded.\r\n2 not fully installed or removed.\r\nAfter this operation, 0 B of additional disk space will be used.\r\nDo you want to continue? &#x5B;Y\/n] y\r\nE: Can not write log (Is \/dev\/pts mounted?) - posix_openpt (2: No such file or directory)\r\nSetting up grub-efi-amd64-signed (1.66.2+2.02~beta2-36ubuntu3.2) ...\r\nInstalling for x86_64-efi platform.\r\ngrub-install: error: cannot find EFI directory.\r\ndpkg: error processing package grub-efi-amd64-signed (--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\nSetting up shim-signed (1.18~16.04.1+0.8-0ubuntu2) ...\r\n\r\nInstalling for x86_64-efi platform.\r\ngrub-install: error: cannot find EFI directory. &lt;=======\r\n\r\ndpkg: error processing package shim-signed (--configure):\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n grub-efi-amd64-signed\r\n shim-signed\r\nE: Sub-process \/usr\/bin\/dpkg returned an error code (1)\r\n<\/pre>\n<h3>boot-repair<\/h3>\n<p><a href=\"https:\/\/help.ubuntu.com\/community\/Boot-Repair\">Boot-Repair<\/a><\/p>\n<table>\n<tr>\n<td><a href=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/boot_repair_efi_partition.png\" rel=\"attachment wp-att-5076\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/boot_repair_efi_partition-300x111.png\" alt=\"boot_repair_efi_partition\" width=\"300\" height=\"111\" class=\"alignleft size-medium wp-image-5076\" srcset=\"https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/boot_repair_efi_partition-300x111.png 300w, https:\/\/blog.bachi.net\/wp-content\/uploads\/2016\/08\/boot_repair_efi_partition.png 496w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Wikipedia Unified Extensible Firmware Interface EFI system partition BIOS boot partition Ubuntu EFI Bootmanagement EFI Grundlagen EFI Installieren EFI Nachbearbeitung EFI Problembehebung $ mount | grep efivars efivarfs on \/sys\/firmware\/efi\/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime) $ sudo apt-get install efibootmgr $ sudo dmidecode -t 0 # dmidecode 3.0 Getting SMBIOS data from sysfs. SMBIOS 2.6 present. Handle [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5075","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/5075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5075"}],"version-history":[{"count":13,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/5075\/revisions"}],"predecessor-version":[{"id":5091,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/5075\/revisions\/5091"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}