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

Root Created directory in /system/ and now can't remove it?

I was running into a weird problem replacing my PowerOn.mp3, so I created a directory in /system/sounds/poweron/ to make sure I was able to write to it. I now can't remove the directory. It's not hurting anything, but I want to know why I can't remove it.

Code:
# rm -rf /system/sounds/poweron/wat
rm failed for -rf, Read-only file system
# mount -o remount,rw /dev/block/mtdblock5 /system
# rm -rf /system/sounds/poweron/wat
rm failed for -rf, No such file or directory
# pwd
/system/sounds/poweron
# ls
wat
PowerOn.old
#
I am confused.
 
You must remount the system partition as read/write first.

Code:
busybox mount -o remount,rw /system

Or use a file manager to remount the system r/w
 
</>
Either remove the arguments or execute it as:
Code:
busybox rm -rf


Terminal output:
BusyBox v1.16.2androidfull (2010-08-01 14:57:25 EDT) multi-call binary.



Usage: rm [OPTIONS] FILE...



Remove (unlink) FILEs



Options:

-i Always prompt before removing

-f Never prompt

-R,-r Recurse
 
you guys think too much, just use root explorer in R/W mode. do this stuff from a gui in like a second.
 
Back
Top Bottom