# How can I edit the mender artifact, which I’ve built with mender

**URL:** <https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741>\
**Category:** General Discussions\
**Created:** [June 24, 2019, 8:32am UTC](https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741 "2019-06-24T08:32:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PFGO](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@PFGO](https://hub.mender.io/u/PFGO)\
**Post date:** [June 24, 2019, 8:32am UTC](https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741/1 "2019-06-24T08:32:00Z")

</div>

How can I edit the mender artifact, which I’ve built with mender:  
sudo ./mender-artifact cat XXXX-md2.0-1.0.mender:/etc/rc.local  
Model: (file) lid partition table:  
Disk /home/pob/mender-artifact/XXXX-plc-md2.0-1.0.mender: 460991s  
Sector size (logical/physical): 512B/512B  
Partition Table: unknown  
Disk Flags:

It always shows Partition Table unknown

---

<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:** [June 24, 2019, 9:18am UTC](https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741/2 "2019-06-24T09:18:16Z")

</div>

Moved this to a separate topic.

Which `mender-artifact` version are you using?

---

<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:** [June 24, 2019, 9:24am UTC](https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741/3 "2019-06-24T09:24:55Z")

</div>

Did a quick test run using the latest version,

```auto
$ mender-artifact -version
mender-artifact version 3.0.0

```

```auto
$ mender-artifact cat artifact.mender:/etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0

```

And I can not see any problems. How do you create the Mender Artifact?

---

<div class="post-metadata">

**Author:** ![PFGO](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@PFGO](https://hub.mender.io/u/PFGO)\
**Post date:** [June 24, 2019, 3:48pm UTC](https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741/4 "2019-06-24T15:48:36Z")

</div>

Thank you mirzak.

It was my fault, I used the prebuilt mender-artifact, it is on version 2.4.X.

I got it to work, by following the instruction on this documentation site:  
“Compiling mender-artifact”  
[https://docs.mender.io/2.0/artifacts/modifying-a-mender-artifact](https://docs.mender.io/2.0/artifacts/modifying-a-mender-artifact)

---

<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:** [June 25, 2019, 7:18am UTC](https://hub.mender.io/t/how-can-i-edit-the-mender-artifact-which-i-ve-built-with-mender/741/5 "2019-06-25T07:18:51Z")

</div>

We do also have a pre-built mender-artifact version 3.0.0, and it can be found [here](https://d1b0l86ne08fsf.cloudfront.net/mender-artifact/3.0.0/mender-artifact),
