# Read only compressed rootfs in raw flash?

**URL:** <https://hub.mender.io/t/read-only-compressed-rootfs-in-raw-flash/950>\
**Category:** General Discussions\
**Created:** [August 20, 2019, 6:42am UTC](https://hub.mender.io/t/read-only-compressed-rootfs-in-raw-flash/950 "2019-08-20T06:42:31Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Ratheendran](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@Ratheendran](https://hub.mender.io/u/Ratheendran)\
**Post date:** [May 7, 2020, 5:56pm UTC](https://hub.mender.io/t/read-only-compressed-rootfs-in-raw-flash/950/11 "2020-05-07T17:56:41Z")

</div>

@mirzak I am able to flash squashfs image in standalone mender.

[quote=“mirzak, post:3, topic:950”]artifcat  
ArtifactReboot\_Enter\_50  
[/quote]

I renamed your mender state scripts and run once inside rootfs and with artifact.

1. renamed to Download\_Leave\_50 and kept as part of rootfs.
2. renamed to ArtifactInstall\_leave\_50 and integrated with release-1.mender.  
Both made mender exit with **ERRO[0007] stderr collected while running script**  
please see the log for details,let me know on how to fix this issue.

> DEBU[0000] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor  
> INFO[0000] no public key was provided for authenticating the artifact module=installer  
> INFO[0000] Update Module path “/usr/share/mender/modules/v3” could not be opened (open /usr/share/mender/modules/v3: no such file or directory). Update modules will not be available module=modules  
> DEBU[0000] checking if device [sav530] is on compatible device list: [sav530]  
> module=installer  
> DEBU[0000] installer: successfully read artifact [name: release-1; version: 3; compatible devices: [sav530]] module=installer  
> .DEBU[0000] Trying to install update of size: 14036992 module=dual\_rootfs\_device  
> DEBU[0000] Active partition: ubi0\_3 module=partitions  
> WARN[0000] Could not resolve path link: ubi0\_3 Attempting to continue module=partitions  
> WARN[0000] Could not resolve path link: ubi0\_3 Attempting to continue module=partitions  
> DEBU[0000] Detected inactive partition ubi0\_2, based on active partition ubi0\_3 module=partitions  
> INFO[0000] native sector size of block device /dev/ubi0\_2 is 126976, we will write in chunks of 2031616 module=dual\_rootfs\_device  
> … 7% 1024 KiB   
> …INFO[0000] opening device /dev/ubi0\_2 for writing module=block\_device  
> INFO[0000] partition /dev/ubi0\_2 size: 16887808 module=block\_device  
> . 14% 2048 KiB  
> … 22% 3072 KiB  
> … 29% 4096 KiB  
> … 37% 5120 KiB  
> … 44% 6144 KiB  
> … 52% 7168 KiB  
> … 59% 8192 KiB  
> … 67% 9216 KiB  
> … 74% 10240 KiB  
> … 82% 11264 KiB  
> … 89% 12288 KiB  
> … 97% 13312 KiB  
> …INFO[0006] wrote 14036992/14036992 bytes of update to device /dev/ubi0\_2 module=dual\_rootfs\_device  
> 100% 13715 KiB  
> DEBU[0006] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor  
> DEBU[0006] start executing script: Download\_Leave\_50 module=executor  
> ERRO[0007] stderr collected while running script /etc/mender/scripts/Download\_Leave\_50 [artifact\_name=release-1: Download\_Leave\_50 was called!  
> ] module=executor  
> DEBU[0007] statescript: timeout for executing scripts is not defined; using default of 1h0m0s seconds module=executor  
> DEBU[0007] Inactive partition: ubi0\_2 module=partitions  
> DEBU[0007] Marking inactive partition (ubi0\_2) as the new boot candidate. module=dual\_rootfs\_device  
> INFO[0007] Enabling partition with new image installed to be a boot candidate: 2 module=dual\_rootfs\_device  
> DEBU[0007] Have U-Boot variable: mender\_check\_saveenv\_canary=0 module=bootenv  
> DEBU[0007] List of U-Boot variables:map[mender\_check\_saveenv\_canary:0] module=bootenv  
> DEBU[0008] Marking inactive partition as a boot candidate successful. module=dual\_rootfs\_device

indent preformatted text by 4 spaces

---

_[View the full topic](https://hub.mender.io/t/read-only-compressed-rootfs-in-raw-flash/950)._
