# Ubuntu 18 and 20 server, x86\_64 mender convertion

**URL:** <https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665>\
**Category:** General Discussions\
**Created:** [October 14, 2020, 6:17am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665 "2020-10-14T06:17:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 14, 2020, 6:17am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/1 "2020-10-14T06:17:31Z")

</div>

# Description

IPC4-BXPC-C10 x86\_64 computer.

[https://www.icc.com.tr/product/IPC4-BXPC-C10](https://www.icc.com.tr/product/IPC4-BXPC-C10)

I used this post as tutorial and there is no difference about config.

> [@INTEL NUC x86-64 Ubuntu 18.04](https://hub.mender.io/t/intel-nuc-x86-64-ubuntu-18-04/2214):
>
> Board description The Intel® NUC is a powerful 4x4-inch mini PC with entertainment, gaming, and productivity features, including a customizable board that is ready to accept the memory, storage, and operating systems that you want. From fully configured, ready-to-use Mini PCs to kits and boards for do-it-yourselfers, find the Intel® NUC that is right for you. URL: [https://www.intel.com/content/www/us/en/products/boards-kits/nuc.html](https://www.intel.com/content/www/us/en/products/boards-kits/nuc.html) Wiki: [https://en.wikipedia.org/wiki/N…](https://en.wikipedia.org/wiki/Next_Unit_of_Computing)

# Problem: Device does not boot after mender convert .img flashed to it.

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/81de987e1335e4eb26369ed97f2f47b1054e2a82.png)

Device seen in bootable device list as “Legacy Boot device”. But in fdisk output device seen “EFI”.

I try to use golden image without mender convert, and write image to device, device boot succesfully. So it seems golden image is OK.

Thank you

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 14, 2020, 1:28pm UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/2 "2020-10-14T13:28:47Z")

</div>

Yeah, I think we have only tested in this in EFI mode. Legacy mode may need some additional work. @MarekBelisko do you have any ideas here?

@Furkan is your platform capable of EFI booting?

Drew

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [October 14, 2020, 1:53pm UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/3 "2020-10-14T13:53:43Z")

</div>

@drewmoseley I’m in contact with @Furkan already and we find out the same. I never tested non EFI so could be that it’s not working.

---

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 14, 2020, 1:57pm UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/4 "2020-10-14T13:57:17Z")

</div>

Yes, my HW is capable for UEFI, and also golden image taken from UEFI. But after re-write to device, it returns legacy.

Thank you

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [October 14, 2020, 2:38pm UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/5 "2020-10-14T14:38:21Z")

</div>

We tried to boot also mkosi genared imge from here: [https://d1b0l86ne08fsf.cloudfront.net/mender-convert/images/Ubuntu-Bionic-x86-64.img.gz](https://d1b0l86ne08fsf.cloudfront.net/mender-convert/images/Ubuntu-Bionic-x86-64.img.gz) (used for qemu) but it was also not working. @Furkan can you maybe try install ubuntu then run live from usb and fdisk -l /dev/sda? It should show first partition as EFI. If not then it’s legacy and we didn’t have support for that yet. Thanks.

---

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 15, 2020, 4:34am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/6 "2020-10-15T04:34:19Z")

</div>

It is seen as EFI.

```auto
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 3B4BAD4E-D5CB-5F40-B03D-7BBF5F306C3E

Device Start End Sectors Size Type
/dev/sda1 2048 526335 524288 256M EFI System
/dev/sda2 526336 4434600 3908265 6G Linux root (x86-64)

```

---

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 15, 2020, 6:26am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/7 "2020-10-15T06:26:37Z")

</div>

I changed size of /data and /root partitons, and something happened. After reboot device entering UEFI shell. In boot list only seen UEFI shell. If I enter “exit” to UEFI shell twice, device do boot and Ubuntu works. I try a few more times, all same thing happened.

---

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 22, 2020, 7:16am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/8 "2020-10-22T07:16:27Z")

</div>

I try with Debian. Mender successfully install to image. But when I deploy img to device, every boot device enter to EFI shell. After wait a few seconds and enter “exit” to EFI shell, device boot successfull and mender works fine. How can I solve to device boot directly?  
Thanks

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 22, 2020, 4:27pm UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/9 "2020-10-22T16:27:37Z")

</div>

Sounds like maybe the device naming is not correct in your build. It seems to be unable to locate the GRUB binary. What are the file contents on the FAT/EFI partition of your image?

---

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 23, 2020, 5:22am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/10 "2020-10-23T05:22:39Z")

</div>

/EFI/BOOT folder has BOOTX64.EFI, fbx64.efi, grub.cfg, mender\_grubenv1, mender\_grubenv2.  
/EFI/ubuntu/ folder has BOOTX64.CSV, grub.cfg, grubx64.efi, mmx64.efi, shimx64.efi.

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [October 23, 2020, 4:28pm UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/11 "2020-10-23T16:28:49Z")

</div>

Hmm. Are you using EFI secure boot? You have shim and such installed from Ubuntu.

It seems that your EFI loader doesn’t like something about the format of the EFI partition. Hard to say what it might be. @MarekBelisko do you have any ideas?

---

<div class="post-metadata">

**Author:** ![Furkan](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Furkan](https://hub.mender.io/u/Furkan)\
**Post date:** [October 26, 2020, 5:19am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/12 "2020-10-26T05:19:14Z")

</div>

No I am not using secure boot.

---

<div class="post-metadata">

**Author:** ![rohit](https://avatars.discourse-cdn.com/v4/letter/r/41988e/32.png) [@rohit](https://hub.mender.io/u/rohit)\
**Post date:** [March 18, 2024, 7:08am UTC](https://hub.mender.io/t/ubuntu-18-and-20-server-x86-64-mender-convertion/2665/13 "2024-03-18T07:08:57Z")

</div>

How did you created the debian mender artifact image. I have also tried to create a mender image of debian os but after creation of mender artifact the image is stuck on the grub prompt
