New IT forum Follow us on Twitter
04 February 2012, 04:00:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: DreamPlug tutorial in Linux Format issue 145!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Restore the NAND filesystem from the rootfs.tar.gz.  (Read 1250 times)
ramses
Newbie
*
Posts: 10


« on: 08 August 2010, 06:17:03 pm »

Hi there,

I want restore the NAND filesystem from the rootfs.tar.gz that I have copied in a USB but I don't want to do all process of installer.

I have restored the rootfs.tar.gz to the root (/) NAND directory with the tar utility. This overrides the NAND files with the existing in the tar file but don't erase the NAND files that not appear in the tar file to liberate the this space.

Can anybody tell me if I can do this?


Best regards,

Ramses
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #1 on: 08 August 2010, 06:34:51 pm »

Yours is not a very good strategy. (Trying to) overwrite files that may be in use is inherently problematic. The installer is not so difficult to use.

If you are determined to use the method you describe, you could write a script to output the contents of your roofs.tar.gz to a file; output the contents of your NAND drive to another file, and obtain a diff file containing the names of the files that are present in the NAND but not in the rootfs. You could then either automate (in a script) or manually remove those files. Me - I wouldn't do it that way. If something goes wrong, you may have a plug that doesn't boot, and you might have to use the installer.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!