I want to know if I take the mkfs.ext3 file, or any other mkfs file, from another Linux system like Ubuntu, and put it with my mkfs.vfat and mkfs.ext2 located at /system/xbin, Would it work?

And how can I call them from terminal emulator?

If relevant, I have a Huawei u8160 running Cyanogenmod 7.2.


I realized that it cannot be taken from Ubuntu or any non-ARMv6 built system ,so my question now is: Where can I find binaries that are built for ARMv6 phone? (at least mkfs ones(except mkfs.vfat and mkfs.ext2,I already have them) ).


Native binaries (as the mkfs.* tools are) need to be compiled for the platform they should run on. So if you take the mkfs.ext3 from your Ubuntu workstation, which probably is either x86 or x86-64, it will not work on your Android device, which most likely uses ARM architecure.

| improve this answer | |
  • is there is any other way to make it work ,take it from another android phone maybe? – Mohamed Essam Sep 14 '12 at 12:19
  • and yes,it uses ARM v6. – Mohamed Essam Sep 14 '12 at 12:20
  • if you take it from a compatible platform (i.e. also ARM v6), it could work. When compiled statically, it should work. Otherwise (compiled dynamically) it depends of the libraries used: if those are available on the target system, it should be no problem. (btw: this explanation was not specific to the binary in question, but rather generic to all native binaries). – Izzy Sep 14 '12 at 12:58
  • could you find anywhere that I can find ARM v6 binaries (at least mkfs ones)? – Mohamed Essam Sep 14 '12 at 12:59
  • In case you find a compatible one: You call it as usual by its name. When called without parameters, it should yield its syntax requirements (as it did last time for your mkfs.vfat). In case you get some "not found" instead, invoke it with the full path, e.g. /system/xbin/mkfs.ext3. – Izzy Sep 14 '12 at 13:01

Since I think there aren't reliable sources for these binaries you could prefer to compile it (statically) using busybox with a cross compiler.

You are using cyanogenmod so should be also easy to compile it using the cyanogenmod source code (search on their site since I can't post more link :)), busybox is in the external/ directory.

| improve this answer | |
  • For to compile, using CM, requires to download around 9GB of source code, it would be nightmare just to download one small tiny part of what makes up CM, or basically, use google-fu to navigate around the net as am sure others would have attempted it :) – t0mm13b Dec 28 '12 at 20:01
  • I understand, but at first I talked about downloading directly busybox so downvoting seems a little bit excessive to me :). Also is not a good practice to install on your phone software found around the web – gipi Dec 28 '12 at 22:05
  • Hummm... I did not downvote you... – t0mm13b Dec 28 '12 at 22:12
  • ok, sorry for the misunderstanding – gipi Dec 28 '12 at 22:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.