# CL200 series x86\_64 mender convertion

**URL:** https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490
**Category:** General Discussions
**Created:** [September 25, 2020, 5:45am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490 "2020-09-25T05:45:33Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 25, 2020, 5:45am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/1 "2020-09-25T05:45:34Z")

</div>

# Description

CL200 series is industrial x86\_64 computer.

The manual is available here

[https://cdn.onlogic.com/pub/media/resources/manuals/CL200\_Series\_User\_Guide.pdf](https://cdn.onlogic.com/pub/media/resources/manuals/CL200_Series_User_Guide.pdf)

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

This post follows the one for NUC computer:

> [@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)

And uses mender-convert 2.1.0

The only difference is in the conversion process is that

```auto
MENDER_STORAGE_DEVICE_BASE=/dev/mmcblk1p

```

in the cl200\_x86-64\_hdd\_config file. Other then that, it is identical to generic\_x86-64\_hdd\_config

The conversion went smoothly.

# Problem: resulting HD does not boot

GRUB is dropping into prompt (grub\>)

It appeared that two created A and B partitions have the same UUID:  
(showed on the disk image here)

```auto
/dev/loop0p2: UUID="121ddda3-31e6-449e-a880-fbc4c06b1f14" TYPE="ext4" PARTLABEL="primary" PARTUUID="bbad2e8c-5453-4549-85f6-2df5dbd2929a"
/dev/loop0p3: UUID="121ddda3-31e6-449e-a880-fbc4c06b1f14" TYPE="ext4" PARTLABEL="primary" PARTUUID="9eeb7225-d801-4762-9f96-da30c06c5634"
/dev/loop0p4: UUID="ac67c903-d527-4a03-a89f-18030f69b8b9" TYPE="ext4" PARTLABEL="primary" PARTUUID="f098d7ce-6ee4-4d15-9b10-1f4c54496ba6"
/dev/loop0: PTUUID="6c17766b-aaf0-40e8-ab95-e496c6ab59ed" PTTYPE="gpt"
/dev/loop0p1: UUID="B9E1-2DA7" TYPE="vfat" PARTLABEL="ESP" PARTUUID="00abec87-ab23-48fa-978d-f2736e60b114"

```

From other hand /EFI/ubuntu/grub.cfg looks like:

```auto
search.fs_uuid 828235fc-0cfd-4d29-baaf-f0254e8d5a1d root 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

```

Further search showed that UUID 828235fc-0cfd-4d29-baaf-f0254e8d5a1d is embedded into  
different configuration files on the disk image.

# Possible fix (???)

Use tune2fs to assign UUID from grub.cfg to both partitions, like below:  
(this is done using USB booted live linux distro, grml [https://grml.org](https://grml.org))

```auto
tune2fs -U 828235fc-0cfd-4d29-baaf-f0254e8d5a1d /dev/mmcblk1p2
tune2fs -U 828235fc-0cfd-4d29-baaf-f0254e8d5a1d /dev/mmcblk1p3

```

After this operation box is booting just fine, everything appear to work, I was able  
to take snapshot, upload with stand-alone client, reboot, observe partition change,  
and commit.

I used NUC procedure on another UEFI computer with root name /dev/sda and  
it worked without need to change UUIDs; however partitions and grub.cfg UUIDs were  
different.

I hope this could be useful.

Mikhail

---

<div class="post-metadata">

### Author: ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)
#### Post date: [September 25, 2020, 6:08am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/2 "2020-09-25T06:08:34Z")

</div>

> [@mikhailtchernychev](#):
>
> From other hand /EFI/ubuntu/grub.cfg looks like

After you have converted an image with mender-convert, it should not be using `/EFI/ubuntu/grub.cfg` as a new `grub.cfg` is generated that is compatible with Mender.

Can you try removing `/EFI/ubuntu/grub.cfg` ? As you should also have `/EFI/BOOT/grub.cfg` which is the correct one for it to use.

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 25, 2020, 6:15am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/4 "2020-09-25T06:15:45Z")

</div>

There are two files /EFI/BOOT/grub.cfg (long one, appeared to be copied from the original ubuntu with some changes) and short one /EFI/ubuntu/grub.cfg which seem to me mender-specific

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 25, 2020, 6:26am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/6 "2020-09-25T06:26:05Z")

</div>

Sorry for deleting the posts. I wanted to delete in one place, it deleted everywhere.

I was under impression that these both grub.cfg are used (chained) but if only one is supposed to be  
in use, you are right.

---

<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: [September 25, 2020, 6:48am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/7 "2020-09-25T06:48:25Z")

</div>

@mikhailtchernychev just wild guess, can you please apply this [patch](https://github.com/nandra/mender-conversion-tools/commit/0f500f215a9c944c85df731b2e499c6e111a5cc8) and try to convert again? Thanks.

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 25, 2020, 7:08am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/8 "2020-09-25T07:08:48Z")

</div>

I will but probably next week - I don’t have this thing right now. Thank you for looking!

---

<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: [September 25, 2020, 7:21am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/9 "2020-09-25T07:21:54Z")

</div>

No problem ;). BTW thanks for sharing board integration 👍

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 25, 2020, 5:43pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/10 "2020-09-25T17:43:53Z")

</div>

> [@mirzak](#):
>
> /EFI/ubuntu/grub.cfg

Removing `/EFI/ubuntu/grub.cfg` does not look the right thing to do; on my other system which runs  
fine without need to adjust UUIDs renaming this file brighs system to grub prompt.

---

<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: [September 28, 2020, 6:23am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/11 "2020-09-28T06:23:55Z")

</div>

@mikhailtchernychev can you please try mentioned patch if it resolve your issue? Thanks

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 28, 2020, 3:17pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/12 "2020-09-28T15:17:56Z")

</div>

I will during the week. Box is not in my possession yet

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 30, 2020, 3:40am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/13 "2020-09-30T03:40:44Z")

</div>

Hi,

I used exactly this commit

`0f500f215a9c944c85df731b2e499c6e111a5cc8`

Got past grub with messages “Welcome to GRUB” and “lock0” two times.

Did not go beyond this:

 ![CIMG0157](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/0f8963f1d73a87725bb11ed3d979a7346ec921c0.jpeg) ![CIMG0155](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/da2d74e1494d6c85c2a6236d6fae55122caae47d.jpeg)

It reads: _mdadm: No devices listed in conf file were found_

USB keyboard also stopped working, so I could not do anything suggested.

Double-checked original image before conversion, it boots just fine.

Here is config file:

```auto
    #This configuration can be used to run any distribution on a any x86-64 machine.
    # As example is used CentOS distribution but can be applied to others also.
    #
    # Install CentOS using classic partition scheme (not use LVM) with minimal
    # 2 partitons /boot/efi and /root. For root please choose only necessary size
    # e.g. 10G (or desired size).
    #
    # This has been tested on images generated with the following command:
    #
    # Boot live USB and copy the data from internal storage (hdd, eMMC) e.g. for eMMC:
    #
    # dd if=/dev/mmcblk0 of=/media/usb/centos.img bs=1M count=10000 status=progress
    #
    # Before running mender-convert we need to fix GPT partition table (as we didn't copy
    # whole hdd). Run following command to fix GPT partition table on copied image:
    #
    #	sgdisk -e /media/usb/centos.img
    #
    # Converted with the following command:
    #
    #	MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert \
    # --disk-image input/centos.img \
    # --config configs/centos_x86-64_hdd_config \
    # --overlay rootfs_overlay_demo/
    #
    # and image must be then copied back after conversion to internal storage (when booted again from live USB) e.g. for hdd:
    #
    #	zcat /media/usb/centos-x86_64-mender.img.gz | sudo dd of=/dev/sda bs=1M status=progress
    #
    # after copy run again (to fix GPT partition table):
    #	sgdisk -e /dev/sda
    #

    MENDER_STORAGE_DEVICE_BASE=/dev/mmcblk1p
    MENDER_DEVICE_TYPE="x86_64"

    MENDER_STORAGE_TOTAL_SIZE_MB=16000

    # Nothing to copy
    MENDER_COPY_BOOT_GAP="n"

    function platform_modify() {
        #
        # Make sure /lib64 exists since the Mender binary requires it.
        # Some systems put everything under /lib (ie Yocto) and a simple
        # symlink is enough to find everything Mender needs.
        #
        if [! -e work/rootfs/lib64]; then
            run_and_log_cmd "ln -s /lib work/rootfs/lib64"
        fi
    }

```

Apparently, partition /dev/mmcblk0p2 did not become available.

What kind of troubleshooting could be done?

Thank you!  
Mikhail

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 30, 2020, 3:56am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/14 "2020-09-30T03:56:12Z")

</div>

I tried removing mdadm by booting original system using `apt remove --purge mdadm`, and it was apparently removed, re-imaging everything just to arrive to the same result as above. It seem there should be mo mdadm anymore, but it is.

---

<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: [September 30, 2020, 10:39am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/15 "2020-09-30T10:39:13Z")

</div>

Do you use lvm partition setup? I think this is not supported only ext4 in mender convert.

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 30, 2020, 3:54pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/16 "2020-09-30T15:54:09Z")

</div>

It was done exactly as for NUC. It is GPT / ext4, I am not using lvm.

Here is partition table:

```auto
1 grml@grml ~ % sudo parted /dev/mmcblk1 :(
GNU Parted 3.3
Using /dev/mmcblk1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p                                                                
Model: MMC DF4032 (sd/mmc)
Disk /dev/mmcblk1: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number Start End Size File system Name Flags
 1 8389kB 545MB 537MB fat32 ESP boot, esp
 2 545MB 8582MB 8036MB ext4 primary
 3 8582MB 16.6GB 8036MB ext4 primary
 4 16.6GB 16.8GB 134MB ext4 primary

```

---

<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: [September 30, 2020, 4:58pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/17 "2020-09-30T16:58:17Z")

</div>

Just a shot in the dark but I’m not sure fat32 works here. Can anyone confirm or refute that?

Drew

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 30, 2020, 5:20pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/18 "2020-09-30T17:20:48Z")

</div>

It did work on the other box. And boot got past loading from reading efi partition.  
Also, original image with two partitions (before mender-convert) does have fat32 and ext4  
partitions and boots fine.

---

<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: [September 30, 2020, 7:40pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/19 "2020-09-30T19:40:40Z")

</div>

> [@mikhailtchernychev](#):
>
> No devices listed in conf file were found

Does it have kind of raid or 2 disks plugged in? Could that be a source of problem?

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 30, 2020, 7:53pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/20 "2020-09-30T19:53:39Z")

</div>

Just installed fresh Ubuntu 20 server, imaged, converted with using commit with patch, moved to CL200 and ended up with grub\> In other words it did not work at all.

---

<div class="post-metadata">

### Author: ![mikhailtchernychev](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mikhailtchernychev/32/1023_2.png) [@mikhailtchernychev](https://hub.mender.io/u/mikhailtchernychev)
#### Post date: [September 30, 2020, 8:37pm UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/21 "2020-09-30T20:37:12Z")

</div>

But I actually fixed the problem by this:

File:  
`EFI/BOOT/grub.cfg`

Original:

```auto
# Start of ---------- 00_mender_grubenv_defines_grub.cfg ----------
mender_rootfsa_part=2
mender_rootfsb_part=3
mender_kernel_root_base=/dev/mmcblk1p
mender_grub_storage_device=hd0
kernel_imagetype=
initrd_imagetype=
kernel_devicetree=kernel.dtb

```

Note `kernel_imagetype=` and `initrd_imagetype=` are blank

Correction:

```auto
kernel_imagetype=vmlinuz
initrd_imagetype=initrd.img

```

Fixes the boot. Yes I know these are symlinks.

---

<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 1, 2020, 9:15am UTC](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490/22 "2020-10-01T09:15:57Z")

</div>

Hmm this is weird. Those should be populated by mender-convert. Can you post convert log? I didn’t try Ubuntu 20 only 18.04. Thanks.

[Next page](https://hub.mender.io/t/cl200-series-x86-64-mender-convertion/2490.md?page=2)
