1. Check out our companion app, Forums for Android! Download from Google Play

Root Mytouch can't write to system even in recovery

Discussion in 'Android Devices' started by operat0r, Dec 5, 2010.

  1. operat0r

    operat0r Member
    Thread Starter
    5

    Sep 21, 2009
    9
    0
    5
    UPDATE: did some PATH hackery ... this is not a fix tho ....

    Code (Text):
    1.  
    2.  
    3. mount -o rw,remount -t yaffs2 /
    4. rm -Rf /nmap
    5. mkdir /nmap
    6.  
    7. echo 'export PATH=$PATH:/nmap' > path
    8.  
    9. cd /nmap
    10. wget http://rmccurdy.com/stuff/G1/BINS/NMAP/NMAP.zip
    11. unzip NMAP.zip
    12. chmod 777 /nmap/*
    13. export PATH=$PATH:/nmap
    14. echo run /nmap/path before you start nmap
    15. nmap -vvv 127.0.0.1
    16.  
    rmccurdy.com/nmap.sh (tested on CM6 / mytouch slide )


    in normal mode ..
    Code (Text):
    1. bash
    2. localhost / # mount -o rw,remount -t yaffs2 /system
    3. mount -o rw,remount -t yaffs2 /system
    4. localhost / # cd /system
    5. cd /system
    6. localhost system # for i in `ls` ;do mkdir $i\\nmap ;done
    7. for i in `ls` ;do mkdir $i\\nmap ;done
    8. mkdir: can't create directory 'app\nmap': Out of memory
    9. mkdir: can't create directory 'bin\nmap': Out of memory
    10. mkdir: can't create directory 'build.prop\nmap': Out of memory
    11. mkdir: can't create directory 'etc\nmap': Out of memory
    12. mkdir: can't create directory 'fonts\nmap': Out of memory
    13. mkdir: can't create directory 'framework\nmap': Out of memory
    14. mkdir: can't create directory 'lib\nmap': Out of memory
    15. mkdir: can't create directory 'lost+found\nmap': Out of memory
    16. mkdir: can't create directory 'media\nmap': Out of memory
    17. mkdir: can't create directory 'usr\nmap': Out of memory
    18. mkdir: can't create directory 'xbin\nmap': Out of memory
    19.  
    in "Android system recovery (2e)" :
    ( note: /system is also a vfs I think .. I adb push to it and reboot and the file is gone ... )
    Code (Text):
    1.  
    2.  
    3. C:\Documents and Settings\Administrator\nmap>adb shell
    4. - exec '/system/bin/sh' failed: No such file or directory (2) -
    5.  
    6. C:\Documents and Settings\Administrator\nmap>
    7.  
     

    Advertisement

  2. Iliketrains

    Iliketrains Well-Known Member
    18

    Jul 9, 2010
    66
    10
    18
    Professional Couch Warmer
    Texas
    If your phone does not have root, you cannot write to the system. The file would disapper because of the NAND protection I would bet, unless you already have root. But this is still very impressive: what is this for exactly? A mod? It looks interesting.
     
  3. operat0r

    operat0r Member
    Thread Starter
    5

    Sep 21, 2009
    9
    0
    5
    its fully unlocked and overclocked CM6 reference "http://forum.xda-developers.com/showthread.php?t=701589&page=4" you can't write to /system I want to be able to write to system ....

    uname -a
    Linux localhost 2.6.29.6-cyanogenmod #1 PREEMPT Fri Sep 17 16:05:39 PDT 2010 arm
    v6l GNU/Linux
    #

    I am the first person on the internet that I can find that was able to compile nmap for android http://wjholden.com/nmap/ took the idea and ran with it :)
     

Share This Page

Loading...