Running with MMC/SD - Empties every reboot

Discussion in 'DD-WRT Firmware' started by alkizmo, Nov 14, 2006.

  1. alkizmo

    alkizmo LI Guru Member

    I've successfully added a SD card to my wrt54gl, the mounting and installing onto such card works perfectly.

    However, everytime I reboot the router, the whole content on the SD card is gone. It's as if the automatic mounting at boot clears everything that was previously present.

    Is there a way to avoid that?
    What I did to mount the SD card at bootup is this

    created the following files :
    /etc/modules.d/40-mmc - with the command : mmc
    /etc/fstab - with the command : /dev/mmc/disc0/part1 /tmp/mmc vfat defaults 0 0

    Created the script
    /etc/init.d/S51mount - command :
    mkdir /tmp/mmc
    mount /tmp/mmc


    It mounts successfully the SD every reboot, but as I said, the SD card is empty. I'd like to be able to conserve the installed ipkg on it.

    Also, Id like to know which config file I have to edit in order to not have to type manually into the console the following commands :

    export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/tmp/mmc/bin:/tmp/mmc/sbin:/tmp/mmc/usr/bin:/tmp/mmc/usr/sbin

    export LD_LIBRARY_PATH=/lib:/usr/lib:/tmp/mmc/usr/lib:/tmp/mmc/lib

    These commands are to allow running ipk apps from the MMC

    Thank you all!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice