Results 1 to 4 of 4

Thread: STlinux mount points

  1. #1
    Junior Member
    Join Date
    Apr 2008
    Posts
    13
    Thanks
    0
    Thanked 6 Times in 4 Posts
    Rep Power
    0
    Reputation
    40

    Default STlinux mount points

    As a bit of background, I need to load more files into /var than the storage

    I can size the partitions loaded from flash but the space is still limited and this will need to be redone on a firmware change

    On my octagon 9000 the partition loaded into /var is mtdblock6

    As a test I formatted a usb stick with the jffs2 filesystem and copied all the files from /var onto it.
    From here I dismounted the usb device, /var and mounted the usb as /var

    This works fine but using is usb stick for this is not really my goal.

    I'm looking next at removing the hdd, resizing (shrinking) the partition by a few Gb then adding a new partition to be used as the mount point for /var.

    I wont have time to try this today but the changes needed are in the /etc/rcS file

    This

    mount /dev/mtdblock6 /var -t jffs2
    if [ $? -ne 0 ]; then
    /usr/sbin/flash_eraseall -j /dev/mtd6
    mount /dev/mtdblock6 /var -t jffs2
    fi

    Changes to
    ### mount user mtd
    mount /dev/sda2 /var -t jffs2
    #if [ $? -ne 0 ]; then
    # /usr/sbin/flash_eraseall -j /dev/mtd6
    # mount /dev/mtdblock6 /var -t jffs2
    #fi



Look Here ->
  • #2
    Senior Member
    Join Date
    Feb 2008
    Posts
    693
    Thanks
    4
    Thanked 217 Times in 139 Posts
    Rep Power
    263
    Reputation
    2138

    Default

    Wouldn't it be simpler to load them onto a harddisk directory (eg. /var/data) and add a symlink in /var?

  • #3
    Junior Member
    Join Date
    Apr 2008
    Posts
    13
    Thanks
    0
    Thanked 6 Times in 4 Posts
    Rep Power
    0
    Reputation
    40

    Default Stlinux var mount point (Ultraplus F9000)

    Quote Originally Posted by jgm View Post
    Wouldn't it be simpler to load them onto a hard disk directory (eg. /var/data) and add a symlink in /var?
    Two reasons, i'm tring to replace all of /var and if you wipe the plugings you will also wipe the symlink


    I got this working on my Ultaplus F-9000 today

    1. Removed Hdd and conected to my PC
    2. Resized the NTFS partition shrinking it by 10gb (using gparted)
    3. Created a second partition as ext3
    4. Reinstalled the hdd
    5. Changed the /etc/rcS file


    /etc/rcS changes

    Change this

    ### mount user mtd
    mount /dev/mtdblock6 /var -t jffs2
    if [ $? -ne 0 ]; then
    /usr/sbin/flash_eraseall -j /dev/mtd6
    mount /dev/mtdblock6 /var -t jffs2
    fi

    To This
    ### mount user mtd
    #mount /dev/sda2 /var -t jffs2
    mount /dev/sda2 /var -t ext3
    #if [ $? -ne 0 ]; then
    # /usr/sbin/flash_eraseall -j /dev/mtd6
    # mount /dev/mtdblock6 /var -t jffs2
    #fi

  • #4
    Junior Member maxx09's Avatar
    Join Date
    May 2009
    Posts
    5
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Reputation
    20

    Default

    First of, sorry for replying to an old thread.
    But I really want to know how to edit the file "rcS" in /etc folder. It's a read-only file.
    I've tried many times but it never worked.
    Please help how to edit it.
    Last edited by maxx09; 22-11-12 at 09:55 PM.

  • Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •