# FX30 - cloning the filesystem

**URL:** https://forum.sierrawireless.com/t/fx30-cloning-the-filesystem/18880
**Category:** FX30
**Created:** [January 5, 2020, 11:41am UTC](https://forum.sierrawireless.com/t/fx30-cloning-the-filesystem/18880 "2020-01-05T11:41:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![michaelpercepto](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@michaelpercepto](https://forum.sierrawireless.com/u/michaelpercepto)
#### Post date: [January 5, 2020, 11:41am UTC](https://forum.sierrawireless.com/t/fx30-cloning-the-filesystem/18880/1 "2020-01-05T11:41:45Z")

</div>

Hi,

I would like to create a binary image of the root FS in order to easily clone and restore devices to a given state. What is the recommended way to achieve this?  
I would expect swiflash would have a “read to cwe” option but it does not seem to have one…

Many Thanks.  
Michael

---

<div class="post-metadata">

### Author: ![jerdung](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@jerdung](https://forum.sierrawireless.com/u/jerdung)
#### Post date: [January 7, 2020, 8:32am UTC](https://forum.sierrawireless.com/t/fx30-cloning-the-filesystem/18880/2 "2020-01-07T08:32:06Z")

</div>

Hi michaelpercepto,  
To backup/restore FX30, you can use these ways:

- From developer PC ( the PC that you develop legato application for FX30), add all application links to file .sdef. And build new system with mksys, after that use update tool to install .update file to device. You can backup this system and apply to device when you need. ( Furthermore, you can use systocwe command [https://docs.legato.io/latest/toolsHost\_systocwe.html](https://docs.legato.io/latest/toolsHost_systocwe.html) to create legato.cwe from system.update file)
- The second way, You can use dd command to clone device’s partitions. All application/ config trees… are stored in USER1/MTD4 partition for WP85 chipset and userapp/MTD16 for WP76 chipset. Please refer [https://source.sierrawireless.com/resources/airprime/application\_notes\_and\_code\_samples/airprime\_wpflashguide/#sthash.C8sgFE9c.dpbs](https://source.sierrawireless.com/resources/airprime/application_notes_and_code_samples/airprime_wpflashguide/#sthash.C8sgFE9c.dpbs). And use swiflash tool to restore device to factory configuration (ex: swiflash -m fx30\_wp85 -r) and then copy these data to the device that you want.

If it can help, please click to “Solution”, so that the community can find the solution for their issue easily.  
Thanks,
