1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MC on NAS 200

Discussion in 'Cisco/Linksys Network Storage Devices' started by adasch, Aug 14, 2014.

  1. adasch

    adasch Addicted to LI Member

  2. adasch

    adasch Addicted to LI Member

    Hello again,

    i found it on my old nas200 disc (much luck I have!)

    cheers
     
  3. ZoMuS

    ZoMuS Network Newbie Member

    adasch, could you send me this package on my e-mail or upload somewhere and post a link here?

    Thanks
     
  4. adasch

    adasch Addicted to LI Member

    file is too big to upload on forum (3,3mb)

    please send me email via pw
     
  5. adasch

    adasch Addicted to LI Member

    p.s.
    startup file have some errors

    #!/bin/sh

    # Let´s check the NAS200 discs configuration
    VOLUME=`mount | grep conf | sed -n 's/.*\(volume_.\).*/\1/p'`

    # If it isn´t a RAID-1 config let´s make MC to believe it is
    if [ "$VOLUME" != "volume_3" ];then

    # Did we already make the trick before?
    if [ ! -L "/harddisk/volume_3/conf/usr" ];then
    ln -s /harddisk/$VOLUME/conf/usr /harddisk/volume_3/conf/usr
    fi

    fi

    # Next let´s check if MC temp directory already exists, if not let´s create it
    TEMPDIR=/harddisk/$VOLUME/data/tmp
    if [ ! -d "$TEMPDIR" ];then
    mkdir $TEMPDIR
    fi

    # Now let´s launch MC :)
    TMPDIR=/harddisk/$VOLUME/data/tmp TERM=xterm /harddisk/volume_3/conf/usr/bin/mc -c

    ofcourse Yo can type /harddisk/volume_?/conf/usr/bin/mc -c and it works

    problem is save coniguration data. you can't chose where config file placed.

    mc want to use /home but home is read only system
    always after start mc you must again define keys
     
  6. ZoMuS

    ZoMuS Network Newbie Member

    Done :)
     
  7. adasch

    adasch Addicted to LI Member

  8. ZoMuS

    ZoMuS Network Newbie Member

    About startup file, If you're using "Separate Discks" on your NAS200 try this

    1) copy mc-NAS200-4.6.tar.gz to /harddisk/volume1/conf
    2) extract files - tar zxvf mc-NAS200-4.6.1.tar.gz
    3) edit /harddisk/volume1/conf/usr/bin/mc200

    Code:
    #!/bin/sh
    
    # Let´s check the NAS200 discs configuration
    VOLUME=volume_1
    
    # If it isn´t  a RAID-1 config let´s make MC to believe it is
    if [ "$VOLUME" != "volume_3" ];then
    
    # Did we already make the trick before?
        if [ ! -L "/harddisk/volume_3/conf/usr" ];then
            ln -s /harddisk/$VOLUME/conf/usr /harddisk/volume_3/conf/usr
        fi
    
    fi
    
    # Next let´s check if MC temp directory already exists, if not let´s create it
    TEMPDIR=/harddisk/$VOLUME/data/tmp
    if [ ! -d "$TEMPDIR" ];then
            mkdir $TEMPDIR
    fi
    
    # Now let´s launch MC :)
    TMPDIR=/harddisk/$VOLUME/data/tmp TERM=xterm /harddisk/volume_3/conf/usr/bin/mc -c
    It works fo me :)
     
  9. adasch

    adasch Addicted to LI Member

    /harddisk/volume_3/conf/usr/bin/mc -c

    work on separate disk mode? how?

    p.s.
    can You save config?
     
  10. ZoMuS

    ZoMuS Network Newbie Member

    Yes it works because "/harddisk/volume_3/conf/usr/" is only link to real path, see ln -s command.
     

Share This Page