Ok guys,
So after having seen a million and one questions on how to extract RFS files and all the complex answers we keep getting on mounting rfs files in linux and blah blah blah (all a waste of time if all you need is to view/extract files from an RFS file from some firmware)... and now there is no excuse for those few requesting other members to extract stuff for them.. you can do it yourself!
Here is the easy/fast way to do it without having to go through all the trouble
NOTE: This, mind you is mainly for extracting/viewing. Not for editing RFS files.
Go to:
-http://www.magiciso.com/
-Download MagicISO (its free trial but that don't matter for viewing/extracting)
-Install
-Open MagicISO
-Hit File->Open
-In the section "Files of type:" - Click the drop down and select "All Files (*.*)"
-Select RFS file of your choosing (For example: factoryfs.rfs where all firmware apps are located)
and..
VIOLA!
Browse/Extract anything you need... No hassles.
To extract you can simply click and drag to another folder/desktop as needed
Cheers!
TY for this guide. Unlike htc hd2 forums I really have hard time getting answers to my questions in tab forums so this kind of guides helps me very much. Again TY.
You sir, are very welcome!
Glad it helped. Thats what we're here for!
Make it a sticky !
add it to the wiki rather than making this post sticky. http://modadroid.com/index.php/Main_Page
Just tried it with UltraISO. It seems to work, too.
Thanks
tovarish said:
add it to the wiki rather than making this post sticky. http://modadroid.com/index.php/Main_Page
Click to expand...
Click to collapse
Its locked for editting
MagicISO didn't work for me. I copied the .rfs file to a directory on Linux and mounted as read/write and was able to modify the file system. Then, I unmounted it and flashed the changes to my GT using Heimdall.
Sent from my SCH-I800 using XDA App
chuckbeasley said:
MagicISO didn't work for me. I copied the .rfs file to a directory on Linux and mounted as read/write and was able to modify the file system. Then, I unmounted it and flashed the changes to my GT using Heimdall.
Sent from my SCH-I800 using XDA App
Click to expand...
Click to collapse
This guide is only for browsing and extracting RFS files hence the name. It is not for modification.
I'm aware of what the original post was explaining. I tried that solution and it failed. That's why I suggested another method. MagicISO didn't work for me. If others try it and it doesn't work for them either, at least they have another solution that will always work and the option to modify the file system, if they so choose.
Sent from my SCH-I800 using XDA App
chuckbeasley said:
I copied the .rfs file to a directory on Linux and mounted as read/write and was able to modify the file system. Then, I unmounted it and flashed the changes to my GT using Heimdall.
Click to expand...
Click to collapse
That's the Linux command line, right ?
#mount -o loop factoryfs.rfs /mnt/rfs
Otherwise on Mac OS X, you can use this:
#sudo mkdir /Volumes/RFS
#sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ARCHIVE.rfs
#sudo mount_msdos /dev/disk{n} /Volumes/RFS
daniel.weck said:
That's the Linux command line, right ?
#mount -o loop factoryfs.rfs /mnt/rfs
Otherwise on Mac OS X, you can use this:
#sudo mkdir /Volumes/RFS
#sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount ARCHIVE.rfs
#sudo mount_msdos /dev/disk{n} /Volumes/RFS
Click to expand...
Click to collapse
Please don't forget when you finished on OSX to run:
sudo umount /Volumes/RFS/
hdiutil detach /dev/disk{n}
i can't open the factoryfs.rfs of a samsung galaxy s. can anyone send me the /lib folder from galaxy s and the flash apk in the app folder...thanks
seven2099 said:
Ok guys,
-In the section "Files of type:" - Click the drop down and select "All Files (*.*)"
-Select RFS file of your choosing (For example: factoryfs.rfs where all firmware apps are located)
and.. VIOLA!
Browse/Extract anything you need... No hassles.
Click to expand...
Click to collapse
Didn't work for me either. MagicISO did extract four files only from factoryfs.rfs.
Two were exe files of significant size... Samsun_Mobile_USB_Driver.exe, and ToolLauncher-Bootstrap.exe.
All the files apk files are probably empedded in the first of those, but no further extraction was possible from the .exe file using MagicISO.
I'm trying to find the origianal VZW Vcast apk files that I stupidly deleted instead of just renaming. I need them so the EC02 update script will run. Any ideas, anyone?
Robin M said:
Didn't work for me either. MagicISO did extract four files only from factoryfs.rfs.
Two were exe files of significant size... Samsun_Mobile_USB_Driver.exe, and ToolLauncher-Bootstrap.exe.
All the files apk files are probably empedded in the first of those, but no further extraction was possible from the .exe file using MagicISO.
I'm trying to find the origianal VZW Vcast apk files that I stupidly deleted instead of just renaming. I need them so the EC02 update script will run. Any ideas, anyone?
Click to expand...
Click to collapse
you could look up the long way of mounting and extracting RFS.. Its a major pain though, why dont you make a post asking for those missing files in the forum.
Better bet.
Robin M said:
Didn't work for me either. MagicISO did extract four files only from factoryfs.rfs.
Two were exe files of significant size... Samsun_Mobile_USB_Driver.exe, and ToolLauncher-Bootstrap.exe.
All the files apk files are probably empedded in the first of those, but no further extraction was possible from the .exe file using MagicISO.
I'm trying to find the origianal VZW Vcast apk files that I stupidly deleted instead of just renaming. I need them so the EC02 update script will run. Any ideas, anyone?
Click to expand...
Click to collapse
I used Root Uninstaller and got rid of a vcastmusic.apk file. It's 4.46mb. Is this what you need?
Where is the thanks button!! It worked for me..!! I needed it!!
one question: I am unable to extract one particular factoryfs.rf of one rom, MagicISO says it is not an image file. Can you help me there?
Use linux disk reader to open ext4 files (even .rfs files can be ext4)
@neo yea magiciso says so on ext4 archives
cdesai said:
Use linux disk reader to open ext4 files (even .rfs files can be ext4)
@neo yea magiciso says so on ext4 archives
Click to expand...
Click to collapse
@cd if i select factoryfs.rfs from linux reader i only get the same single file as the output!! No use yaar
Works for Galaxy Ace's firmwares. Thanks. I'm trying to cook my first ROM for Galaxy Ace (cooper). Wish me luck!
Related
This lagfix will mount /data /dbdata /cache on your external SD almost whichever
FS you choose.
You must partition your SD with 4 partitions in this order:
primary FAT32 (size you wish)
primary your_FS 2Gb for /data
primary your_FS 128Mb for /dbdata
primary your_FS 30Mb for /cache
Supported filesystems are btrfs, ext4, jfs, reiserfs
Sizes are given as indication
This kernel mounts filesystems noatime,nodiratime
Kernel includes busybox full and su. adbd starts at boot by default.
You can even mix and match FS like reiserfs on dbdata, ext4 on data and jfs on cache
How to do:
1: partition your external SD appropriately and format it (using i.e. http://partedmagic.com/)
2: flash zImage_0.1 as kernel with Heimdall
or alternatively flash zImage_0.1.tar with Odin
Kernel can be found at http://llorien.org/samsung_galaxys/jpm/universal
This will obviously wipe your data, if you don't copy it first.
I only tested this on the international Samsung Galaxy S GT-I9000 running froyo JPM.
NOTE: Do not flash unnumbered versions
If you want to revert back to the normal behavior, just flash a stock jpm kernel and you should be fine.
Well, this seems very promising.
Thank you Nikademus.
+1
What do you mean by unnumbered versions?
And what about battery life on HD2 if filesystem is on SD it drains more battery?
nikademus said:
This lagfix will mount /data /dbdata /cache on your external SD almost whichever
FS you choose.
You must partition your SD with 4 partitions in this order:
primary FAT32 (size you wish)
primary your_FS 2Gb for /data
primary your_FS 128Mb for /dbdata
primary your_FS 30Mb for /cache
Supported filesystems are btrfs, ext4, jfs, reiserfs
Sizes are given as indication
This kernel mounts filesystems noatime,nodiratime
Kernel includes busybox full and su. adbd starts at boot by default.
You can even mix and match FS like reiserfs on dbdata, ext4 on data and jfs on cache
How to do:
1: partition your external SD appropriately and format it (using i.e. http://partedmagic.com/)
2: flash zImage_0.1 as kernel with Heimdall
or alternatively flash zImage_0.1.tar with Odin
Kernel can be found at http://llorien.org/samsung_galaxys/jpm/universal
This will obviously wipe your data, if you don't copy it first.
I only tested this on the international Samsung Galaxy S GT-I9000 running froyo JPM.
NOTE: Do not flash unnumbered versions
If you want to revert back to the normal behavior, just flash a stock jpm kernel and you should be fine.
Click to expand...
Click to collapse
Can you somehow make this automated? Not a lot of people here are on linux & repartitioning is not really everyone's cup of tea.
Thnaks.
Some bugs:
1.Tried o flash zImage_0.1.tar and that did corrupt the phone system, so beware!!
The zImage in the tar file is named zImage_0.1, it should be named zImage (more on this later).
2.Extracted zImage_0.1.tar and renamed zImage_0.1 to zImage and added it to a tar file using 7-zip and tried using Odin, that did not work, Odin would hang on flashing zImage.
3. Downloaded zImage_0.1 and renamed that to zImage and flashed using Heimdall, this worked, but the phone seemed to continue scan the external SD-card.
4. Powered down the phone and did a cache wipe and a factory reset and rebooted the phone, it booted but then got to a black screen with the return-key and menu-key on all the time.
The card was partitioned using Partedmagic in external card-reader.
Will try again now and report back.
eclair or froyo ?
hi
Can't read anywhere.
Is this lagfix for eclair rom or froyo ?
It seems the mounbt point of external sdcard isn't just the same on those roms.
Op, could you make the light, please ?
Thanks
deli_gt said:
And what about battery life on HD2 if filesystem is on SD it drains more battery?
Click to expand...
Click to collapse
That does not seem to really affect battery usage.
ragin said:
Can you somehow make this automated? Not a lot of people here are on linux & repartitioning is not really everyone's cup of tea.
Thnaks.
Click to expand...
Click to collapse
That is planned, although you will probably have to put a config file somewhere to define filesystems you want.
[Ramad] said:
Some bugs:
1.Tried o flash zImage_0.1.tar and that did corrupt the phone system, so beware!!
The zImage in the tar file is named zImage_0.1, it should be named zImage (more on this later).
Click to expand...
Click to collapse
Well, I just verified and it's called zImage, not zImage_0.1
[email protected]:~/galaxy$ tar xvf zImage_0.1.tar
zImage
2.Extracted zImage_0.1.tar and renamed zImage_0.1 to zImage and added it to a tar file using 7-zip and tried using Odin, that did not work, Odin would hang on flashing zImage.
Click to expand...
Click to collapse
I don't know what created this. But I haven't tested with Odin yet.
3. Downloaded zImage_0.1 and renamed that to zImage and flashed using Heimdall, this worked, but the phone seemed to continue scan the external SD-card.
Click to expand...
Click to collapse
You don't need to rename it to flash with Heimdall.
What do you mean by phone seems to continue scan the external SD?
4. Powered down the phone and did a cache wipe and a factory reset and rebooted the phone, it booted but then got to a black screen with the return-key and menu-key on all the time.
The card was partitioned using Partedmagic in external card-reader.
Will try again now and report back.
Click to expand...
Click to collapse
Did you format the filesystems?
@nikademus
Here is the deal...The zImage_0.1.tar that can be downloaded from the link you provided is not a tar file but a Gzip file, when extracted then there is what appears to be a file named zImage_0.1, this is not a file but a tar file, that is missing the tar extension, by adding the tar extension, i.e renaming it to zImage_0.1.tar then it can be flashed using Odin. The majority of us are using windows, and some of us are using Linux and OSX where these archives might be read right by the operating system, but in windows it can only be checked by using winrar or 7-zip.
I'm not a novice Windows or Linux user, I know enough, and offcourse I did format the 3 partitions as jfs.
Well, I don't know how you have got a gzipped file but I can ensure you that the tar file is a real tar file. I don't use windows at all, so it's a little bit hard for me to test on windows to find the reason behind this.
@nikademus
Details of the zImage_0.1.tar when downloaded from http://llorien.org/samsung_galaxys/jpm/universal/ :
Uploaded with ImageShack.us
Details when the zImage_0.1.tar is extracted:
Uploaded with ImageShack.us
.tar extension added:
Uploaded with ImageShack.us
Details on the file above, viewed by winrar (se the zImage inside it, now this tar file can be flashed using Odin):
Uploaded with ImageShack.us
I hope that these pictures does show what I mean.
nikademus said:
Well, I don't know how you have got a gzipped file but I can ensure you that the tar file is a real tar file. I don't use windows at all, so it's a little bit hard for me to test on windows to find the reason behind this.
Click to expand...
Click to collapse
He's right. Although it's strange that "tar xvf" would extract without the z option (pipe through gzip), but if you rename the file to .tar.gz, then gunzip will work on it, and more importantly, 'file' identifies it as a gzipped file:
[email protected]:~/Downloads$ ls -l zImage_0.1.tar
-rw-r--r-- 1 carl carl 5704623 2010-10-29 21:32 zImage_0.1.tar
[email protected]:~/Downloads$ file zImage_0.1.tar
zImage_0.1.tar: gzip compressed data, from Unix, last modified: Fri Oct 29 13:42:54 2010
[email protected]:~/Downloads$
Click to expand...
Click to collapse
then, rename to .tar.gz and gunzip, and identify again:
[email protected]:~/Downloads$ mv zImage_0.1.tar zImage_0.1.tar.gz
[email protected]:~/Downloads$ gunzip zImage_0.1.tar.gz
[email protected]:~/Downloads$ file zImage_0.1.tar
zImage_0.1.tar: POSIX tar archive (GNU)
[email protected]:~/Downloads$
Click to expand...
Click to collapse
cmf said:
He's right.
Click to expand...
Click to collapse
Thanks, at last
I was trying to point out that the file can be flashed by Heimdall but not by Odin, Odin can only flash tar files, if you flash the file in it's current stat then it will corrupt the system and when the majority here are using Odin this should have been taken seriously, but it appear that it does not matter, unless a member reporting a bug has been spaming the forum and has a load of posts to backup his words.
I'm done testing this release...good luck.
Well, I must admit this is quite strange because this is not gzipped. Which program did you use to download the file? I would say it's probably because the web server compresses pages using gzip to reduce bandwidth and the program who fetched the file did not uncompress the file like it should have done.
nikademus said:
Well, I must admit this is quite strange because this is not gzipped. Which program did you use to download the file? I would say it's probably because the web server compresses pages using gzip to reduce bandwidth and the program who fetched the file did not uncompress the file like it should have done.
Click to expand...
Click to collapse
I used Google Chrome on Ubuntu Maverick x64. I'll try wget and see what happens, but that's an interesting thought regarding mod_gzip or whatever the apache extension is called.
Regardless, perhaps it would be best to supply a .tgz instead? What's the point in tar-ing a single file ? The idea of tar is to pretty much concatenate multiple files into a single file, without compression, isn't it?
cmf said:
I used Google Chrome on Ubuntu Maverick x64. I'll try wget and see what happens, but that's an interesting thought regarding mod_gzip or whatever the apache extension is called.
Click to expand...
Click to collapse
I am not using apache, but the idea is about the same.
Regardless, perhaps it would be best to supply a .tgz instead? What's the point in tar-ing a single file ? The idea of tar is to pretty much concatenate multiple files into a single file, without compression, isn't it?
Click to expand...
Click to collapse
Because Odin only understands .tar format. If you run from linux, just download the zImage_0.1 with tar, you can flash this one with heimdall
Same with wget:
[email protected]:~/Downloads$ wget http://llorien.org/samsung_galaxys/jpm/universal/zImage_0.1.tar
--2010-10-29 23:09:29-- http://llorien.org/samsung_galaxys/jpm/universal/zImage_0.1.tar
Resolving llorien.org... 206.251.244.96
Connecting to llorien.org|206.251.244.96|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5704623 (5.4M) [application/octet-stream]
Saving to: `zImage_0.1.tar'
100%[==========================================================>] 5,704,623 332K/s in 13s
2010-10-29 23:09:43 (442 KB/s) - `zImage_0.1.tar' saved [5704623/5704623]
[email protected]:~/Downloads$ file zImage_0.1.tar
zImage_0.1.tar: gzip compressed data, from Unix, last modified: Fri Oct 29 13:42:54 2010
[email protected]:~/Downloads$
Click to expand...
Click to collapse
nikademus said:
I am not using apache, but the idea is about the same.
Because Odin only understands .tar format. If you run from linux, just download the zImage_0.1 with tar, you can flash this one with heimdall
Click to expand...
Click to collapse
Ah, fair enough.
Strange then!
BTW, "tar xvf" *does* still work on the apparently gzipped file. Which is weird. Unless GNU tar is just being 'clever' by detecting the gzip compression..
At first I was just looking at your output from before where you did tar xvf, but I just tried it myself on the supposedly gzip file. Weird.
HELLO TO ALL THIS IS A SOFTWARE FOR WINDOWS USERS AND WINDOWS SERIES THIS CAN EXTRACT SYSTEM.IMG FROM STOCK ROMS U SHOULD TRY THIS
THIS IS USE FULL SOFTWARE TOO GOOD U SHOULD TRY THIS http://www.mediafire.com/?3cwmxr03qmffwph HAVE A GOOD DAY :good::good::good::good::laugh::laugh::laugh:
THIS IS NOT REALLY FINDED BY ME THIS IS SUGGESTED BY SAVIE THANKS TO HIM
irfanbagus said:
if you do that just to extract some files from stock rom then it's ok. but if you do that you loose file attribute. link from hdulani also not working for sgy (sgy use rfs, not yaffs).
simple way to extract files from *.img is put in your sdcard (ex: system.img), mount to folder and backup using tar
Code:
cd /mnt/sdcard
mkdir -f system
busybox mount -o loop,ro system.img system
busybox tar -cf system.tar system
busybox umount system
you got your system.img content in system.tar file. if you extract in linux you got original file attributes.
Click to expand...
Click to collapse
INSTRUCTION
IF U R CREATING A ROM FOR DEVICE THAT U DOES N'T HAVE SO IT IS VERY HELP FULL
1.DOWNLOAD STOCK ROM OF THAT DEVICE LIKE MINI,ACE,FIT,Y,Y DUOS,SGS, SGS2,SGS3
2.EXTRACT PDA OF THAT DEVICE WITH WINRAR OR 7ZIP,WINZIP TOO MANY SOFTWARES ARE THERE
3.U WILL SE SYSTEN.IMG ON THAT
4.OPEN IT BY ULTRAISO
5.AND U WILL SEE ALL SYSTEM FILES
6.COPY IT TO ANYWHERE C,D,E,G,F ANYWHERE ON LOCAL DISK
IF U R MAKEING ROM FOR THAT U SHOULD EDIT ALL THE FILE IN IT AND MAKE IT DEODEX AND MAKE A UPDATER SCRIPT OR TAKE A UPDATE SCRIPT FROM ANY ROM AND MAKE A ZIP AND U R ROM IS READY TO SERVE IN XDA
SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE :angel::angel::angel::angel:
IT IS TO EASY IF U FOLLOW ALL THE INSTRUCTION CORRECTLY :good::good::good::good:
DON'T FORGET TO THANKS ME:laugh::laugh::laugh::laugh::laugh::laugh::laugh::laugh::angel::angel::angel:
Sent from my GT-S5360 using Tapatalk
i try so many tools for windows and finally work good for me Linux Reader
install/Open Linux Reader -->Drives -->>Mount Image -->>Raw Disk Images-->>open System.img-->>Save File To Ur Folder.....
for linux use XDA kitchen (u know about it) .............
the file is encrypted. common tools won't work. I always use CWM to make a nandroid backup to extract system files from stock rom.
manoranjan2050 said:
i try so many tools for windows and finally work good for me Linux Reader
install/Open Linux Reader -->Drives -->>Mount Image -->>Raw Disk Images-->>open System.img-->>Save File To Ur Folder.....
for linux use XDA kitchen (u know about it) .............
Click to expand...
Click to collapse
I AM ON WINDOWS 7 BRO I AM NOT ON LINUX
thx for the compliment
somkll said:
I AM ON WINDOWS 7 BRO I AM NOT ON LINUX
thx for the compliment
Click to expand...
Click to collapse
its for widows os not for linux check 1st please ...............
Linux Reader Read all Linux File System/Raw Image File (System.img) in Windows OS
Step By Step Tutorial For U
http://d-h.st/FYF
Try 1st then Post
Thanks........
when i open system image it show files that does n't exist what's problem
UltraISO software or something like that i've forget.
What do u want to extract?
Do u want to extract the 'SYSTEM.IMG' or the contents of it??
if you want to extract the file then its damn simple... just open the PDA tar file from the Odin..... in my case(galaxy y) it is "PDA_S5360DDKK1_REV05.tar"... if u want to extract the system.img file go to this thread http://forum.xda-developers.com/showthread.php?t=961164
Suggest freely
SORRY TO ALL BUT I MY ANSWER ULTRAISO CAN EXTRACT IT NO PROBLEM JUST SUGEST FREELY :angel::angel::angel::laugh::laugh::laugh::laugh::good::good::good: THUMBS UP FOR ALL
Sent For My GT-s5360
wats the use of this?
hell_lock said:
wats the use of this?
Click to expand...
Click to collapse
Extract system.img in windows
savie said:
Extract system.img in windows
Click to expand...
Click to collapse
i mean wats the use of extracting when its of no use to us?!
hell_lock said:
i mean wats the use of extracting when its of no use to us?!
Click to expand...
Click to collapse
Haha sory for simple answer.
Actually some people wanna customize rom with extract system.img not nandroid cwm backup.
Longtime ago i've try to extract radio.img and data.img too and stuck bcoz don't have this tool.
IF U R CREATING A ROM FOR DEVICE THAT U DOES N'T HAVE SO IT IS VERY HELP FULL
1.DOWNLOAD STOCK ROM OF THAT DEVICE LIKE MINI,ACE,FIT,Y,Y DUOS,SGS, SGS2,SGS3
2.EXTRACT PDA OF THAT DEVICE WITH WINRAR OR 7ZIP,WINZIP TOO MANY SOFTWARES
3.U WILL SE SYSTEN.IMG ON THAT
4.OPEN IT BY ULTRAISO
5.AND U WILL SEE ALL SYSTEM FILES
6.COPY IT TO ANYWHERE C,D,E,G,F ANYWHERE ON LOCAL DISK
IF U R MAKEING ROM FOR THAT U SHOULD EDIT ALL THE FILE IN IT AND MAKE IT DEODEX AND MAKE A MAKE OR TAKE A UPDATE SCRIPT FROM ANY ROM AND MAKE A ZIP
SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE SIMPLE
IT IS TO EASY IF U FOLLOW ALL THE INSTRUCTION
Send For My GT-s5360 Using Tapatalk APP
Porting from another device and beware of bootlove.. lol..
Maybe u can add in first post bro or change the thread to guide developing tools..
This is very usefull tools even not many user use it coz lack of knowledge or information like me before.. lol..
savie said:
porting from another device and beware of bootlove.. Lol..
Maybe u can add in first post bro or change the thread to guide developing tools..
This is very usefull tools even not many user use it coz lack of knowledge or information like me before.. Lol..
Click to expand...
Click to collapse
done that thanks for sharing a u r knowledge
Well done bro. Might be of use!
somkll said:
IF U R CREATING A ROM FOR DEVICE THAT U DOES N'T HAVE SO IT IS VERY HELP FULL ...
Click to expand...
Click to collapse
if you do that just to extract some files from stock rom then it's ok. but if you do that you loose file attribute. link from hdulani also not working for sgy (sgy use rfs, not yaffs).
simple way to extract files from *.img is put in your sdcard (ex: system.img), mount to folder and backup using tar
Code:
su
cd /mnt/sdcard
mkdir -f system
busybox mount -o loop,ro system.img system
busybox tar -cf system.tar system
busybox umount system
you got your system.img content in system.tar file. if you extract in linux you got original file attributes.
irfanbagus said:
if you do that just to extract some files from stock rom then it's ok. But if you do that you loose file attribute. Link from hdulani also not working for sgy (sgy use rfs, not yaffs).
Simple way to extract files from *.img is put in your sdcard (ex: System.img), mount to folder and backup using tar
Code:
cd /mnt/sdcard
mkdir -f system
busybox mount -o loop,ro system.img system
busybox tar -cf system.tar system
busybox umount system
you got your system.img content in system.tar file. If you extract in linux you got original file attributes.
Click to expand...
Click to collapse
it is not easy on phone but on computor it becomes easy
bro this for windows 7 and series that is easy for u r using linux but we are not using it
Somekill i know ur purpose but i think irfan info is very usefull.
Why don't u make this thread general information to extract *.img from windows and linux.
If u don't have good knowledge of linux (same with me - lol) u can add link to irfan or other member that have knowledge to share.
This can be usefull thread not only in sgy but other device i think and hope usefull info not gone with spam or junk thead.
All we need is usefull information and applicable to sgy so can make our device more better.
Hi!
i was checking dsixda's Android Kitchen
but he says in topic that doesnt support HOX Rom
HTC One X
- no ROM support, but de-odexing only! (Here is the guide to de-odex)
Click to expand...
Click to collapse
so what kitchen can i use
I use it and it works fine, at least for my needs
madsurfer1 said:
I use it and it works fine, at least for my needs
Click to expand...
Click to collapse
hi!
i can do everything on kitchen but then i have this problem reffered on FAQ
QUESTION: When flashing my ROM I get the error "mount expects 4 args got 3" or similar.
This refers to the fact your mount command takes 4 parameters (e.g. ext4, EMMC, /dev/block/.., /system) and your update-binary file only checks for 3 parameters. You'll have to change the update-binary file to a compatible one, found under the /tools/update_files folder. Just copy the appropriate file and rename to update-binary. e.g. If you're going to be using MTD partitions, copy 'mtd-update-binary' to /META-INF/com/google/android as "update-binary".
Click to expand...
Click to collapse
my english is not so good, so i think i cant understand correctly the solution.
i already copyed the update-binary from my rom.zip to /tools/update_files
i already copyed the update-binary from my rom.zip to /META-INF/com/google/android
but with no sucess.. i did some copy / pasts with that files just to see if ill find a solution, but i have always the same error...
can you or anyone give me a clue / hint to pass this problem ?
i even tryed to create a template in /tools/edify_defs/ just to give support to HOX device in kitchen, but like i said, my english is not so good, and the info i found on the net is not so clear for my understanding :|
any help?
thanks
Hello all,
I sold off my note 2 but i miss the ringtones that it had. I want to extract them from the stock ROM and use it in my current device.
I extracted the .tar.md5 file and a few .img files appeared. I tried to extract / view the system.img file but I couldn't. These programs couldn't read the .img files.
What should i do?
You need to convert system.img file to ext4
Then you can mount that on Linux.
Or
Simply request someone to port from device, that will be easy with root explorer.
Sent from my GT-N7100 using xda premium
dr.ketan said:
You need to convert system.img file to ext4
Then you can mount that on Linux.
Or
Simply request someone to port from device, that will be easy with root explorer.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Thank you for pointing me into the right direction.
I used this Wonderful tool and avoided opening the file in Linux
http://sourceforge.net/projects/androidicsjbext/
- I unzipped e.g. T705XXU1ANF from samdownloads.de.rar.
- Then I opened the T705XXU1ANF7.tar.md5 and extracted the *.img files with winrar.
- Then I tried to mount system.img / recovery.img with OSFMount.
Mounting worked but non of the ext2 tools (Ext2Fsd, ext2explore, explore2fs-1.08beta9, Paragon ExtFS for Windows, LinuReader ) would recognice the mounted image or could mount the image itself to view the files.
For ICS/JB I read about ext4_unpacker. Do we have something like that for Kitkat ? Or is it possible under Linux (I am a noob there)
Basically on Linux, it's really easy.
mount -o loop disk1.iso /mnt/disk
Or wherever that you want it to be.
did one of you mount an system.img from Kitkat Stock Rom already ?? Because I dont think ist about W7/8 .... some of the tools listed should be able to read ext4 ... (ext4_unpacker wont work either !!)
pegasus21 said:
Basically on Linux, it's really easy.
mount -o loop disk1.iso /mnt/disk
Or wherever that you want it to be.
Click to expand...
Click to collapse
no it cant be mounted that way... I tried under unbuntu LiveDVD. the System.img can be mounted, but there is no readable filesystem. So it must be processed in some form like ext4unpacker did for ICS/JB ...
gggg said:
no it cant be mounted that way... I tried under unbuntu LiveDVD. the System.img can be mounted, but there is no readable filesystem. So it must be processed in some form like ext4unpacker did for ICS/JB ...
Click to expand...
Click to collapse
You're right... I thought it worked out of the box.
Anyway, I used RKwinTools to extract the system.img contents on Windows.
Place system.img in RKwinTools_v133\unpack\firmware\image\
Run the batch file and select option 6 and you'll find the contents under RKwinTools_v133\unpack\System
pegasus21 said:
You're right... I thought it worked out of the box.
Anyway, I used RKwinTools to extract the system.img contents on Windows. Place system.img in RKwinTools_v133\unpack\firmware\image\
Run the batch file and select option 6 and you'll find the contents under RKwinTools_v133\unpack\System
Click to expand...
Click to collapse
THX unpacking worked like a charm, but is there also a way of just converting the img to one that is a mountable.ext4. This one I could use under Win and Linux as it would keep permissions ... (Simg2img didnt work)
This is the error:
Code:
*** Please wait... ***
Ext4Extractor version 1.5.2 Created by And_PDA Based on sources ext4_unpacker
Extractor for images in EXT2\EXT3\EXT4\SPARSE formats
Open image file Unpack/Firmware/Image/system.img successfull...
Found SPARSE FORMAT
Convert to EXT4 format started...
Convert to EXT4 format finish success
*********************************
*** Error! ***
*********************************
gggg said:
THX unpacking worked like a charm, but is there also a way of just converting the img to one that is a mountable.ext4. This one I could use under Win and Linux as it would keep permissions ... (Simg2img didnt work)
This is the error:
Code:
*** Please wait... ***
Ext4Extractor version 1.5.2 Created by And_PDA Based on sources ext4_unpacker
Extractor for images in EXT2\EXT3\EXT4\SPARSE formats
Open image file Unpack/Firmware/Image/system.img successfull...
Found SPARSE FORMAT
Convert to EXT4 format started...
Convert to EXT4 format finish success
*********************************
*** Error! ***
*********************************
Click to expand...
Click to collapse
Well option 7 will convert the sparse ext4 image to a normal ext4 image. The message shows error but it would seem that it's converted. Find the image in the same location that you placed system.img.
Mount system_ext4.img on linux using
Code:
mount -t ext4 -o loop system_ext4.img /mnt
pegasus21 said:
Well option 7 will convert the sparse ext4 image to a normal ext4 image. The message shows error but it would seem that it's converted. Find the image in the same location that you placed system.img.
Click to expand...
Click to collapse
THX so far, I can mount it on my Linux PC not under Win8
- Linux Rader still cant open it
- I can Mount it with OSFMount, but neither paragon ExtFS nor ext2Mgr recognice the mounted Drive ????
ideas very welcome
gggg said:
ideas very welcome
Click to expand...
Click to collapse
try this windows system to ext4 double click bat file then drag your system.ing,cache.img or data.img to the open window
pegasus21 said:
You're right... I thought it worked out of the box.
Anyway, I used RKwinTools to extract the system.img contents on Windows.
Place system.img in RKwinTools_v133\unpack\firmware\image\
Run the batch file and select option 6 and you'll find the contents under RKwinTools_v133\unpack\System
Click to expand...
Click to collapse
How to decompile the boot and the kernel?
hello... how to repack the unpacked files?
pegasus21 said:
You're right... I thought it worked out of the box.
Anyway, I used RKwinTools to extract the system.img contents on Windows.
Place system.img in RKwinTools_v133\unpack\firmware\image\
Run the batch file and select option 6 and you'll find the contents under RKwinTools_v133\unpack\System
Click to expand...
Click to collapse
bro can you little explain how its work, i have win , after extract i have just this 3 folders
_in
app
cywim
so where i put system.img.ext4 files?
i really don,t care about extracted i need to repack to ext4