ubi cloning

2014-05-12 Thread Erez D
Hi i need to clone a nand flash. which has ubifs on it doing 'dd' didn't work as the source and dest have different bad sectors. is there an easy way to clone a ubifs nand-flash ? thanks erez. ___ Linux-il mailing list Linux-il@cs.huji.ac.il

Re: ubi cloning

2014-05-12 Thread Amos Shapira
How about ddrescue (the GNU one I think, there are multiple implementations with same name) into an image file then try to fix the fs around the bad sectors? On 12 May 2014 18:46, Erez D erez0...@gmail.com wrote: Hi i need to clone a nand flash. which has ubifs on it doing 'dd' didn't work

Re: ubi cloning

2014-05-12 Thread Erez D
On Mon, May 12, 2014 at 11:51 AM, Amos Shapira amos.shap...@gmail.comwrote: How about ddrescue (the GNU one I think, there are multiple implementations with same name) into an image file then try to fix the fs around the bad sectors? ubifs already handles the bad sectors, and i do not want

Re: ubi cloning

2014-05-12 Thread Baruch Siach
Hi Erez, On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote: i need to clone a nand flash. which has ubifs on it doing 'dd' didn't work as the source and dest have different bad sectors. dd is not the way to go with raw NAND flash access; it's not aware of bad blocks. is there an easy

Re: ubi cloning

2014-05-12 Thread Erez D
On Mon, May 12, 2014 at 12:05 PM, Baruch Siach bar...@tkos.co.il wrote: Hi Erez, On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote: i need to clone a nand flash. which has ubifs on it doing 'dd' didn't work as the source and dest have different bad sectors. dd is not the way to go

Re: ubi cloning

2014-05-12 Thread Baruch Siach
Hi Erez, On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote: On Mon, May 12, 2014 at 12:05 PM, Baruch Siach bar...@tkos.co.il wrote: On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote: i need to clone a nand flash. which has ubifs on it doing 'dd' didn't work as the source and

Re: ubi cloning

2014-05-12 Thread Erez D
On Mon, May 12, 2014 at 12:28 PM, Baruch Siach bar...@tkos.co.il wrote: Hi Erez, On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote: On Mon, May 12, 2014 at 12:05 PM, Baruch Siach bar...@tkos.co.il wrote: On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote: i need to clone a

Re: ubi cloning

2014-05-12 Thread Baruch Siach
Hi Erez, On Mon, May 12, 2014 at 02:14:34PM +0300, Erez D wrote: On Mon, May 12, 2014 at 12:28 PM, Baruch Siach bar...@tkos.co.il wrote: On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote: On Mon, May 12, 2014 at 12:05 PM, Baruch Siach bar...@tkos.co.il wrote: On Mon, May 12, 2014

Re: ubi cloning

2014-05-12 Thread Erez D
thanks for your help On Mon, May 12, 2014 at 2:53 PM, Baruch Siach bar...@tkos.co.il wrote: Hi Erez, On Mon, May 12, 2014 at 02:14:34PM +0300, Erez D wrote: On Mon, May 12, 2014 at 12:28 PM, Baruch Siach bar...@tkos.co.il wrote: On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote: