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 wrote: > Hi > > i need to clone a nand flash. which has ubifs on it > > doing 'dd' didn't work as the source

Re: ubi cloning

2014-05-12 Thread Erez D
On Mon, May 12, 2014 at 11:51 AM, Amos Shapira wrote: > 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 to mess with it. >

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 e

Re: ubi cloning

2014-05-12 Thread Erez D
On Mon, May 12, 2014 at 12:05 PM, Baruch Siach 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 with r

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 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 dest

Re: ubi cloning

2014-05-12 Thread Erez D
On Mon, May 12, 2014 at 12:28 PM, Baruch Siach 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 > wrote: > > > On Mon, May 12, 2014 at 11:46:43AM +0300, Erez D wrote: > > > > i need to clone a nand flash. which has u

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 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 > > wrote: > > > > On Mon, May 12, 2014 at 11:46:43AM +0300, E

Re: ubi cloning

2014-05-12 Thread Erez D
thanks for your help On Mon, May 12, 2014 at 2:53 PM, Baruch Siach 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 > wrote: > > > On Mon, May 12, 2014 at 12:14:14PM +0300, Erez D wrote: > > > > On Mon, May 12, 201