How to extract ramdisk.img
Asked Answered
P

3

7

use ubuntu

I type file ramdisk.img and the Terminal display ramdisk.img: data, I use cpio and get nothing extracted! How can I extract such ramdisk.img?

Postcard answered 5/12, 2012 at 13:21 Comment(0)
E
13

It's highly possible that ramdisk.img actually is a compressed file ramdisk.cpio.gz. To extract it use this commands:

cd /Path/To/Folder/With/ramdisk.cpio.gz/File
mkdir temp_directory && cd temp_directory
gunzip -c ../ramdisk.img | cpio -idm

Check this blog post for more info: http://blog.djodjo.org/?p=536

Entellus answered 5/8, 2013 at 14:0 Comment(0)
F
1

you can mount images:

mkdir ~/img_mnt
mount -t udf filename.img ~/img_mnt -o loop
Frenchman answered 5/12, 2012 at 13:30 Comment(1)
it might need sudo, but depends on the envFrenchman
A
0

Just use p7-zip which is 7z just for POSIX.

7z e ramdisk.e RamdiskExtracted

I'm not sure about repacking and keeping metadata though.

I guess you could mount it as rw??

Aboutface answered 27/6, 2016 at 21:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.