1. HUGE Androidforums.com UPDATE! Learn what's new (and download the new app!)
    Dismiss Notice

issue with creating a swap file on sdcardSupport (Browse All)

Last Updated:

  1. lupus

    lupus New Member This Topic's Starter

    Oct 9, 2009
    Likes Received:
    1.) Model Number ? HTC Magic
    2.) Firmware Version ? 1.6 (with root)
    3.) Baseband Version ? 62.50S.20.17H_2.22.19.26I
    4.) Kernel Version ? 2.6.29-00479-g3c7df37 android-build@apa26 #19
    5.) Build Number ? DRC83

    Carrier ? Vodafone IT

    Country you are using your phone in ? ITALY

    Yesterday I installed Donut on my phone, and it seems to work fine.
    Then I followed a guide about creating a swap file on microsd, that would be very useful because the Vodafone-issued htc magic has only 192Mb. This is what the guide suggests:

    - open a terminal
    - su
    - dd if=/dev/zero of=/sdcard/swap.swp bs=1024 count=24576
    - mkswap /sdcard/swap.swp
    - swapon /sdcard/swap.swp

    which is pretty much standard linux procedure.

    well, i launch my "better terminal emulator", give the "su" command, allow becoming root from the popup menu, then create the file on the sd card with "if" (i just made it larger that 24Mb).

    everything works fine, but when I try to use the "mkswap", "swapon" or even "free" commands, it says "not found", as if the command didn't exist. i thought it could be some path issue, but i really don't know where to look for those... under /sbin there's only one file, "adbd". can anybody help?

    thanks in advance

  2. pradeepcmst

    pradeepcmst Member

    Sep 26, 2012
    Likes Received:

    Install Busybox and try.
    Busybox is very much important app after rooting since it has many commands for the OS to communicate.

Share This Page