• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root required urgent help in extracting ramdisk.gz

ashoknraj

Newbie
hi i am getting the following error when i try to extract ramdisk from boot.img

gzip: ../boot.img-ramdisk.gz: not in gzip format

pls help...
 
Hi,

you can use the attached script.
Unzip file and you will get split_bootimg.pl file.
Use below command to extract ramdisk from boot.img

unzip split_bootimg.zip
chmod 777 split_bootimg.pl
./split_bootimg.pl boot.img

The output will produce ramdisk.gz file.
 

Attachments

Hi,

you can use the attached script.
Unzip file and you will get split_bootimg.pl file.
Use below command to extract ramdisk from boot.img

unzip split_bootimg.zip
chmod 777 split_bootimg.pl
./split_bootimg.pl boot.img

The output will produce ramdisk.gz file.

FOLLOWED THE SAME WHEN I TRIED TO EXTRACT THE BOOT.IMG-RAMDISK.GZ I am getting the following error

gzip: /home/ashoknraj/tools/boot.img-ramdisk.gz: not in gzip format
 
The "boot.img-ramdisk.gz" maybe was compressed in lzma format. So the correct command would be:
lzma -dc ../boot.img-ramdisk.gz | cpio -i
just try..
 
The "boot.img-ramdisk.gz" maybe was compressed in lzma format. So the correct command would be:
lzma -dc ../boot.img-ramdisk.gz | cpio -i
just try..

Hi,

Even I'm facing the same problem. Even lzma didn't help...

vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3$ ls
boot.img boot.img-ramdisk.gz extractboot* logo.bin out/ split_bootimg.pl* YONIP_MP_A919_v1.zip
boot.img-kernel data/ installbusybox META-INF/ sdcard/ system/

vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3$
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3$
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3$cd out
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3/out$ cd ramdisk/
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3/out/ramdisk$
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3/out/ramdisk$
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3/out/ramdisk$ lzma -dc ../../boot.img-ramdisk.gz | cpio -i
bash: lzma: command not found
cpio: premature end of archive
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3/out/ramdisk$ ~/lzma -dc ../../boot.img-ramdisk.gz | cpio -i
/users/home40/vramaraj/lzma: Decoder error
cpio: premature end of archive
vramaraj@hq1-up-swe-09:~/VIJAY/andriod/work3/out/ramdisk$
 
if you have a windows OS or Wine.. you can use my GZ fixer..
http://www.wcn.it/Fix-GZ-archives.exe
not.in.gzip.format.android.fixer.bartoloni.jpg
 
Back
Top Bottom