SD card, etc and ipkg.

Discussion in 'DD-WRT Firmware' started by preko, Aug 21, 2005.

  1. preko

    preko Network Guru Member


    What I have done to my wrt54g router is to add a 128mb sd card.
    Now I'm about to configure everything. I have pre5 of 2.2 dd-wrt
    So I have a couple of questions.

    1. Seems like the sd card is mounted as msdos partition as default. How do I change this so that during boot time it uses vfat instead? I cant find any fstab file =).

    2. I have done a mount -o bind /mmc/etc /etc and changed the ipkg.conf so that root is pointing att the mmc dir. But when I'm doing
    ipkg update I still get:
    mkdir: Cannot create directory `//jffs/usr/': Read-only file system
    I'm I missing something here ?

    3. Are there any great howtos or guides that explains the filestructure and how things are loaded on the router ?


  2. pasys

    pasys Network Guru Member

    1. MSDOS and vfat are same right..I don't know about those stuff

    2. well , it seems that you don't have JFFS-enabled in your router. Go and enable it (FOUND in your management page)...or better yet you can use the terminal (see DD-WRT WiKi on how-to eanbel that)

    3. read the wiki i can read the OpenWRT has all the information you need
  3. macsat

    macsat Network Guru Member

    I can imagine though, that you will see some errors with some ipk packages, while running vfat on the card.

    Some ipkg packages (like libs) will try to make symlinks, this is not supported on vfat - so there you will need ext3.

    Also - there is no real reason to change the root to the SD card mount point, you could also add a line like:

    dest sd /sd

    (Where I regard your sd card as beeing mounted on /sd).

    Then you can choose to install to the sd card, by running :
    ipkg -d sd install <package-name>

    Instead of just:
    ipkg install <package-name>

    In this way, you can choose to install "core" stuff, like kernel modules and so on, directly to the jffs2 area, and stuff like web servers, ftp servers and so on to your SD card.

    .....just a thought :)
  4. preko

    preko Network Guru Member

    Thanks for the info.
    Msdos is not like vfat in that sense that
    msdos only have 8+3 characters while vfat has more.
    I think the filestructure is the same though, only more info on vfat.

    Is it possible to mount the sdcard as an ext3 partition then ?
    And how do I create the ext3 partition? =) . I suppose fdisk isn't int the dist. ?

  5. macsat

    macsat Network Guru Member

    True - there is no fdisk.

    You will need a computer with SD Card support, and a linux or something like Partition Magic or something...
  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