# \[mender-convert-modify\] Sorry, not able to determine target architecture

**URL:** <https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474>\
**Category:** General Discussions\
**Tags:** debian, x86\
**Created:** [April 8, 2021, 7:41am UTC](https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474 "2021-04-08T07:41:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dirk](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dirk/32/1289_2.png) [@Dirk](https://hub.mender.io/u/Dirk)\
**Post date:** [April 8, 2021, 7:41am UTC](https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474/1 "2021-04-08T07:41:07Z")

</div>

Hi all,

I tried to convert a new Debian Image with mender-convert. I used this tutorial "  
[Convert a Mender Debian image](https://docs.mender.io/system-updates-debian-family/convert-a-mender-debian-image)"

```
fdisk -l
Disk /dev/sdb: 58.7 GiB, 63023063040 bytes, 123091920 sectors
Disk model: Generic
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 426D7739-915A-4024-B48B-A9734A997101

Device Start End Sectors Size Type
/dev/sdb1 2048 391167 389120 190M EFI System
/dev/sdb2 391168 1368063 976896 477M Linux filesystem
/dev/sdb3 1368064 13086719 11718656 5.6G Linux filesystem

```

My build stepps:

- mkdir input
- cd input
- dd if=/dev/sdb of=debian.img bs=1M conv=fdatasync
- cd …
- ./scripts/bootstrap-rootfs-overlay-hosted-server.sh --output-dir ${PWD}/rootfs\_overlay\_demo --tenant-token ${MENDERTOKEN}
- MENDER\_ARTIFACT\_NAME=release-1 ./docker-mender-convert --disk-image input/debain.img --config configs/generic\_x86-64\_hdd\_config --overlay rootfs\_overlay\_demo/

But I get this error message:

```
2021-04-07 22:57:31 [INFO] [mender-convert-modify] Using configuration file: 
configs/mender_convert_config
2021-04-07 22:57:31 [INFO] [mender-convert-modify] Using configuration file: 
./work/override_compression_config
2021-04-07 22:57:31 [INFO] [mender-convert-modify] Using configuration file: configs/generic_x86- 
64_hdd_config
2021-04-07 22:57:32 [INFO] [mender-convert-modify] Installing Mender client and related files
2021-04-07 22:57:32 [FATAL] [mender-convert-modify] Sorry, not able to determine target architecture
2021-04-07 22:57:32 [FATAL] [mender-convert-modify] Unknown arch:

```

This is the Content of the /boot folder

```
root@dev:~# ls -lah /mnt/boot/EFI/debian/
total 5.1M
drwxr-xr-x 2 root root 1.0K Apr 7 21:54 .
drwxr-xr-x 3 root root 512 Apr 7 21:28 ..
-rwxr-xr-x 1 root root 108 Apr 7 21:28 BOOTX64.CSV
-rwxr-xr-x 1 root root 1.2M Apr 7 21:28 fbx64.efi
-rwxr-xr-x 1 root root 121 Apr 7 21:28 grub.cfg
-rwxr-xr-x 1 root root 1.5M Apr 7 21:28 grubx64.efi
-rwxr-xr-x 1 root root 1.3M Apr 7 21:28 mmx64.efi
-rwxr-xr-x 1 root root 1.3M Apr 7 21:28 shimx64.efi
root@dev:~#

```

Can someone please tell me what else I need to adjust?

Thanx  
Dirk

---

<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:** [April 8, 2021, 1:28pm UTC](https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474/2 "2021-04-08T13:28:14Z")

</div>

Hi @Dirk welcome to Mender hub.

My guess is that this is due to the extra partition in your input image. What are the two Linux filesystems used for here? The mender-convert probe functions may need to be modified to support this partition layout.

Drew

---

<div class="post-metadata">

**Author:** ![Dirk](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dirk/32/1289_2.png) [@Dirk](https://hub.mender.io/u/Dirk)\
**Post date:** [April 8, 2021, 1:47pm UTC](https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474/3 "2021-04-08T13:47:01Z")

</div>

Hi @drewmoseley ,

I I followed this [schema](https://hub.mender.io/t/intel-nuc-x86-64-ubuntu-18-04/2214):

- /boot/efi - size 200MB
- / (root partition) - size ~6GB

Don’t I have to create an extra partition for /boot?

Dirk

---

<div class="post-metadata">

**Author:** ![Dirk](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/dirk/32/1289_2.png) [@Dirk](https://hub.mender.io/u/Dirk)\
**Post date:** [April 8, 2021, 5:08pm UTC](https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474/4 "2021-04-08T17:08:26Z")

</div>

@drewmoseley Yes, you are right. I created the image only with a Linux partition and now it ran through. 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:** [April 8, 2021, 5:21pm UTC](https://hub.mender.io/t/mender-convert-modify-sorry-not-able-to-determine-target-architecture/3474/5 "2021-04-08T17:21:19Z")

</div>

Great. Thanks for reporting back.
