# Modify PFC200 initramfs

**URL:** <https://www.wago.community/t/modify-pfc200-initramfs/1926>\
**Category:** Hardware and Linux\
**Tags:** pfc200, linux\
**Created:** [June 6, 2025, 6:08am UTC](https://www.wago.community/t/modify-pfc200-initramfs/1926 "2025-06-06T06:08:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourabh](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sourabh](https://www.wago.community/u/sourabh)\
**Post date:** [June 6, 2025, 6:08am UTC](https://www.wago.community/t/modify-pfc200-initramfs/1926/1 "2025-06-06T06:08:52Z")

</div>

Hello,

I have a PFC200 and would like to modify the initramfs/initrd image to include a script to run after boot but before mounting filesystem. The script will execute a custom binary which will check the SD card status. In the /boot folder I couldn’t find any initramfs/initrd image files. Also, I didn’t find any public documentaton about how to regenerate initramfs image.

There is rc.d files in /etc but I beleive these scripts are triggered after mounting filesystems.

It would be great if you can support with this topic. Please let me know if you need further info.

Thank you,  
Sourabh

---

<div class="post-metadata">

**Author:** ![WagoIcard](https://sea2.discourse-cdn.com/flex016/user_avatar/www.wago.community/wagoicard/32/1508_2.png) [@WagoIcard](https://www.wago.community/u/WagoIcard)\
**Post date:** [June 16, 2025, 12:34am UTC](https://www.wago.community/t/modify-pfc200-initramfs/1926/2 "2025-06-16T00:34:51Z")

</div>

That’s a complicated thing, you want to check the SD card status before the filesystem is mounted.  
I don’t think we have this kind of knowledge here and I would recommend to contact the WAGO technical support.  
Maybe on the [WAGO Github page](https://github.com/WAGO/pfc-firmware-sdk-G2) about the Firmware SDK you could have a better chance but not sure at all.
