Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I'm a Mac and Android user. I've used simple commands in the Terminal from time to time. But now I'm trying to understand the Terminal Emulator included in the Rom Toolbox app for my Android.

What I'm really trying to accomplish right now is finding if there's an equivalent of diskutil on Android. I just want something simple enough to do disk erases and formatting, etc..

Is this possible, or can I somehow use bash commands like on my Mac? (Sorry I'm very new to this)

Anyway, thanks for reading my question. If you have and questions for me, in order to progress my search, please feel free to ask.

share|improve this question
add comment

2 Answers

The android terminal emulator uses busybox linux. Hence you should look at the busybox commands to find out what all you can do with it.

Follow this link

try this command

fdformat DEVICE eg. fdformat /dev/sdcard

share|improve this answer
    
I'm really trying to not use OS X.. That's the whole point of the post... –  James Litewski Feb 24 '12 at 6:11
    
oops i misunderstood your question, though it was not very clear. But anyways I have edited my answer. –  Dilberted Feb 24 '12 at 6:32
    
or try this .. busybox fdformat [-n] DEVICE –  Dilberted Feb 24 '12 at 6:38
    
did the command work? –  Dilberted Feb 24 '12 at 8:52
    
No, it did not work. –  James Litewski Feb 24 '12 at 18:01
show 1 more comment

What I'm really trying to accomplish right now is finding if there's an equivalent of diskutil on Android. I just want something simple enough to do disk erases and formatting, etc..

If you specify your question a little bit it might be easier to answer. You can both erase files and format partitions straight from the terminal. You remove files with rm, for safe deletions there's also shred. If binaries are not on your phone, you should be able to just install them to /bin/ or /usr/bin/

Formatting in Linux can be done for example with the fdisk command, some more info on that here, or as always you can do man fdisk (probably not on the phone terminal though as manuals might not be included).

Also, in relation to the other reply on busybox: What is Busybox?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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