Busybox do you have the right one?

Discussion in 'Coby Generation 3 Development' started by vampirefo., Nov 20, 2012.

  1. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    adb shell

    busybox tar --Usage

    Code:
    busybox tar --Usage
    tar: unrecognized option '--Usage'
    BusyBox v1.18.3 (2011-07-08 15:05:12 CST) multi-call binary.
    
    Usage: tar -[cxtvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE]...
    
    Create, extract, or list files from a tar file
    
    Operation:
    	c	Create
    	x	Extract
    	t	List
    Options:
    	f	Name of TARFILE ('-' for stdin/out)
    	C	Change to DIR before operation
    	v	Verbose
    	O	Extract to stdout
    	h	Follow symlinks
    	exclude	File to exclude
    	X	File with names to exclude
    	T	File with names to include
    What you are looking for is
    Code:
    z	(De)compress using gzip
    if
    Code:
    z	(De)compress using gzip
    isn't displayed your dump will excluded system.tgz

    system.tgz is very important, it is the most important part of your dump.

    If
    Code:
    z	(De)compress using gzip
    isn't displayed you need to swap out your busybox before running dump commands or scripts.

    download busybox

    adb push busybox /data/local/tmp/busybox

    adb shell

    chmod 755 /data/local/tmp/busybox

    /data/local/tmp/busybox mount -o remount,rw /system

    /data/local/tmp/busybox cp /data/local/tmp/busybox /system/bin/busybox

    busybox tar --Usage

    Code:
    tar: unrecognized option `--Usage'
    BusyBox v1.18.4 (2011-04-04 18:40:20 CDT) multi-call binary.
    
    Usage: tar -[cxtzjamvO] [-X FILE] [-f TARFILE] [-C DIR] [FILE]...
    
    Create, extract, or list files from a tar file
    
    Operation:
    	c	Create
    	x	Extract
    	t	List
    Options:
    	f	Name of TARFILE ('-' for stdin/out)
    	C	Change to DIR before operation
    	v	Verbose
    	z	(De)compress using gzip
    	j	(De)compress using bzip2
    	a	(De)compress using lzma
    	O	Extract to stdout
    	h	Follow symlinks
    	m	Don't restore mtime
    	exclude	File to exclude
    	X	File with names to exclude
    	T	File with names to include
    
    
    Now the
    Code:
    z	(De)compress using gzip
    is displayed you can now dump your tablet and system.tgz will be created.
     
    Last edited: Nov 20, 2012
    • Like Like x 10
  2. Traveller

    Traveller Super Moderator Staff Member

    Joined:
    Jun 16, 2012
    Messages:
    2,277
    Likes Received:
    878
    Trophy Points:
    460
    Tablet / Device:
    Coby Kyros MID9742, Dell Streak 5, Samsung Galaxy S4, Nexus 6
    This should be stickied.
     
    • Like Like x 7
  3. tpaine

    tpaine Senior Member

    Joined:
    Aug 18, 2012
    Messages:
    525
    Likes Received:
    130
    Trophy Points:
    132
    Location:
    Socal
    Tablet / Device:
    Coby 7042, Coby 8065, Lenovo A2109
    Thanks for the info. A check of my original backups show system.tar Does this have to be gzip before using for restore ? I used your 7042 without livesuite instructions originally.
     
    • Like Like x 6
  4. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    pure tar is just fine, you don't need gzip if using pure tar like you did. restoring pure tar is the same as restoring compressed version minus the z in the command. this thread is for users making dumps using z ie compressed backups. still good that you checked and noticed you had a system backup, everyone should take a moment and check their backups to see if they have a system dump.
     
    • Like Like x 6
  5. Traveller

    Traveller Super Moderator Staff Member

    Joined:
    Jun 16, 2012
    Messages:
    2,277
    Likes Received:
    878
    Trophy Points:
    460
    Tablet / Device:
    Coby Kyros MID9742, Dell Streak 5, Samsung Galaxy S4, Nexus 6
    The Windows root utility has been updated to replace Coby's nerfed busybox version with the version from this thread, when creating a system dump.
     
    • Like Like x 6

Share This Page

Search tags for this page

how to check busybox version

,

how to download busybox tar

,

tar unrecognized option soft name

,

vampirefo busybox