NAS.. how to? (2 Viewers)

1stdead

Portal Pro
February 1, 2008
1,089
139
Copenhagen
Home Country
Denmark Denmark
Hi,

I'm buying a NAS in the near future for Media storrage. It has Wake On Lan support, so my idea is to let my htpc turn on the NAS prior to use.

So is there any way to let mediaportal send the WOL and turnoff command?

And what about mediafiles in mptvseries/moving-pictures how will they work? I guess there's a minuts delay or so before the files are available.


It's the Synology DS-410 4-Bay NAS Disk Station if that matters.
 

clarkey2r

Portal Pro
February 9, 2009
215
3
Home Country
United Kingdom United Kingdom
If I were you I would write a script wake the NAS that runs on startup/wakeup and then set a delay in MP for X seconds until the device has woken up!!
 

Peter2

MP Donator
  • Premium Supporter
  • September 18, 2006
    848
    53
    Home Country
    Belgium Belgium
    Like clarkey2r wrote, you need 2 batch scripts which you could activate with multishortcut from within MP.
    If the pc cold boots and shuts down everytime, you could install those batchfiles as logon/logoff scripts but I guess you will use standby/hibernating.
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Startup:
    set log=C:\Remote.shutdown\NAS-log.txt
    set ip=10.0.0.x
    set macadr=xx
    :start
    ping -n 1 %ip%
    if %errorlevel% == 1 (
    goto fail
    ) else (
    echo "%Date% - %Time% - NAS started" >> %log%
    exit
    )
    :fail
    wolcmd %macadr% %ip% 255.255.255.0 8900
    goto start

    This should ping NAS if no respond, turn it on. Doesn't work as intended yet. It's making an endless loop if ping responds. If the delay of MP start should be implemented, i don't know how. Anyways i have to restart MP on return from standy due to 2/3 window size. Ticked the option to retstart MP.

    Shutdown:
    set log=C:\Remote.shutdown\NAS-log.txt
    echo.%Date% - %Time% >> %log%
    plink root@10.0.0.x -pw name pass >> %log%

    Works OK, but after the command has been send the window doesn't close itself before it times out.


    Peter2: Yes, ONLY standby/hibernating.



    How to use:

    I use IRSS for my remote, it has option to execute scripts upon standby/hibernating.
    Applications should be: plink and wolcmd in same dir as the scripts.

    To hide BATCH window i use:

    C:\windows\system32\wscript.exe "C:\yourpath\invis.vbs" "your file.bat"

    code invis.vbs:
    CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
     

    JDWestoby

    MP Donator
  • Premium Supporter
  • April 9, 2008
    265
    32
    69
    Poltimore, Devon
    Home Country
    United Kingdom United Kingdom
    Careful with NAS, some have limited file sizes.

    With the Freecom (mine) I can't have very large - aka TV, files so it is limited as it is formatted as FAT32. It only allows NTFS formatting when connected via USB.

    Don't know if all of them use this when connected to a LAN. Means it is somewhat less useful.

    That is why I didn't bother and instead use mine JUST for backup (of everything else). The video files are on a local MediaPortal filesystem and shared so any other client/PC can get to them.
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    When you buy NAS from synology, qnap etc or built one yourself they are normally using the linux formats ext3 or ext4 because thats licence free format.. And no sort of limitations like that.


    But yes FAT32 is limited to max 4gb files. It's quite an old format, so just try and convert it to ntfs but using "convert" in commandprompt.
    for help "convert /?"
     

    Users who are viewing this thread

    Top Bottom