OpenWrt Forum Archive

Topic: Using my SD mod

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I have not yet completed my SD mod but I am curious as to how to use it already (counting my chickens before they hatch smile).  I am going to be using a car that is 128MB and would like to use it primarily to store extra packages and the like.  How would I go about moving packages, and even the default installation location, to the SD card?  What would be the easiest way of doing this, or the best?

Thanks for the help!
     Duffin

Is there some piece of information that I have left out, or does nobody really use the SD for packages? 

Please help the new guy! smile
    Duffin

not sure if that's what your looking for but you can add a new entry to /etc/ipkg.conf

and then use "-d" in the ipkg command like so:

ipkg -d sd install mypackage

Wow, I didn't see your post for some reason and managed to figure that part out myself smile.  I also added /mnt/sd/bin and /mnt/sd/usr/bin to my path variable.  However, where are the library folders defined? (where /lib and /usr/lib are defined to be special folders).  I want to add /mnt/sd/lib and /mnt/sd/usr/lib to it.  I don't know if this is the right way of doing things, but so far it seems to kinda work.  If I could just get the lib folder to be recognized then I wouldn't have any problems. 

One problem that I ran into pretty quickly was fat's inability to create hardlinks.  So, I formatted the SD card with ext2 (using the package from nico's experimental repository) and loaded the kmod-ext2 package (also from nico's experimental).  Now the SD card has ext2 and is able to be mounted and all is well, except for the lib thing.

If anyone has any ideas or ways to refine what I am doing please let me know.  Once I have got everything working perfectly I will post a tutorial on the wiki, so help me get this right....please!

Thank you smile
    Duffin

(Last edited by Duffin444 on 14 Nov 2005, 09:54)

Here I am replying to myself again smile.  I actually figured it all out.  The environment variable that sets the path to the libs is LD_LIBRARY_PATH.  The reason that it was difficult to find is that it is not defined by default (at least I couldn't find it).  My guess is that it is assumed to be /lib and /usr/lib if it is not defined.  Anyway, I will be writing a wiki page detailing how to install and use packages on a remote drive (in my case an SD card).

Thanks,
    Duffin

The discussion might have continued from here.