Correct way to flash an MTD partition using mtd-utils

Matthew Stanger matthew_stanger at trimble.com
Fri Aug 11 09:52:51 PDT 2017


Thanks Richard,

That worked perfect for me.

Cheers,

On Fri, Aug 11, 2017 at 5:54 AM, Richard Weinberger
<richard.weinberger at gmail.com> wrote:
> Matthew,
>
> On Thu, Aug 10, 2017 at 5:42 PM, Matthew Stanger
> <matthew_stanger at trimble.com> wrote:
>> Hi all,
>>
>> I'm hoping someone would be able to tell me the correct way to backup
>> a mtd partition. Right now I'm cleaning up some code that would run
>> nanddump and pipe it to ubiformat, to dump a RFS from one primary
>> partition to an identically sized backup partition. The overlaying
>> filesystem being UBIFS. The issue is if the backup partition has an
>> extra badblock, than the source, then there isn't enough room. I'm not
>> an expert in this space so I'm hoping someone can clarify what the
>> correct way is to do this; I'm pretty sure this method isn't right? Is
>> using 'mkfs.ubifs' to copy the RFS at the UBIFS layer they way to go
>> and then restore it with 'ubinize'? Is there a better, faster way?
>> Thanks for any tips.
>
> What exactly do you want to backup?
> If you want to backup/restore UBIFS, dd from /dev/ubiX_Y and restore using
> ubiupdatevol.
>
> --
> Thanks,
> //richard



More information about the linux-mtd mailing list