Help with results of "df-h" command.

Discussion in 'Tomato Firmware' started by Dashiell, Sep 9, 2010.

  1. Dashiell

    Dashiell Network Guru Member

    I have two questions, hopefully the gurus here know the answers... :)


    The results of "df -h" on my rtn-16 give this:

    Filesystem Size Used Available Use% Mounted on
    /dev/root 6.6M 6.6M 0 100% /
    tmpfs 62.0M 964.0K 61.1M 2% /tmp
    devfs 62.0M 0 62.0M 0% /dev
    - 132.7G 87.7G 45.0G 66% /cifs1

    Seems okay, I was just wondering if the "dev/root" being at 100% usage is normal. Sorry if this is elementary...

    Secondly, I'm trying to figure out how to write a script that will take the results of "df -h" and save them to a text file on the cifs (or other) drive. I know I'm missing something simple... anyone have an idea?

    Thanks!
     
  2. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    Yep, that's normal. That's the read-only part of the filesystem.

    Code:
    df -h > /cifs1/filename
    
     
  3. Dashiell

    Dashiell Network Guru Member

    Thank you so much for the fast reply... it was quite helpful! I had been placing the cat command in there and it never worked right...


    I understand if I place ">>" instead of ">" it will append the current file instead of replacing, correct?


    Thanks again!
     
  4. SgtPepperKSU

    SgtPepperKSU Network Guru Member

    Yep. Exactly :)
     
  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