• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Saving / copying RFS (to move to another plug)  (Read 1577 times)
creeble
Newbie
*

Karma: 0
Posts: 20


View Profile
« on: September 09, 2010, 03:40:22 PM »

Okay, I'm thinking I know how to do this, but then again, maybe not Smiley

I have a rootfs on flash that I like (this is a guruplug, fwiw).  I now want to install it on other plugs.  How do I copy it off?

I did a nanddump -f rootfs.ubi.img /dev/mtd2 (to a USB stick), which created a ~512MB file.  But the original rootfs image was on the order of ~275MB, and I didn't add more than a few dozen MB.  I guess I don't mind copying the whole thing and flashing it to the new plug, but is there a way I can tell how big the current UBI fs is?  And just nanddump that?

Any help appreciated, I'm afraid of bricking another plug....
Logged

sfzhi
Jr. Member
**

Karma: 1
Posts: 83


View Profile
« Reply #1 on: September 10, 2010, 12:50:19 AM »

is there a way I can tell how big the current UBI fs is?  And just nanddump that?
No. The data is usually spread throughout the flash and you would have to cherry-pick individual blocks.

You could just copy the file system contents using tar or cpio to another Linux machine and create a new UBI image there.
Logged

Lack of knowledge is not such a big problem, unwillingness to learn is.

creeble
Newbie
*

Karma: 0
Posts: 20


View Profile
« Reply #2 on: September 15, 2010, 03:43:55 PM »

Thanks, I understand.  cpio / tar it is!

Eric.
Logged

Pages: [1]
Print
Jump to: