INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

ksh for root file system

ksh for root file system

(OP)
/ was filled up 100%.  The reason was that there was a filesystem that was not mounted, thus it affected / when it had many files with large size.  

If there is .ksh that can get filesystems that are not mounted and give me du, that will be great.  In that case, I can monitor which filesystems (that are not mounted) can cause the issues again.

Any ideas, please?

thx much

RE: ksh for root file system

My dispus script will show you the disk space usage of all directories on the root filesystem, but ignore the mounted filesystems:

http://anni.galaxy4.net/?page_id=3

Alternatively there is a method provided by SamBones (previously posted in these forums) described here:

http://anni.galaxy4.net/

Annihilannic.

RE: ksh for root file system

(OP)
Annihilannic,

That is really cool!!!
One question about the size...
Can we change the size for the display from KB to MB or GB?

thx much

RE: ksh for root file system

My personal preference is to use KB, but you could easily modify the script to divide the values by 1024 or 1024^2 and display MB or GB if you preferred.

I don't like df -h style format where the units are changed, I find it much easier to see at a glance when numbers are bigger if they have a lot more digits smile

Annihilannic.

RE: ksh for root file system

(OP)
Annihilannic,

sorry, but which line should I modify?

thx much

RE: ksh for root file system

I'm working on a new version that will give you a choice... how's that for service?  smile

Annihilannic.

RE: ksh for root file system

(OP)
Annihilannic,

That will be fantastic!

Really appraciate it.

RE: ksh for root file system

The new version is now available:

http://anni.galaxy4.net/?page_id=3

You need to modify the script and change $human_readable=0 to $human_readable=1 to get the format you want.

Annihilannic.

RE: ksh for root file system

(OP)
It works so GOOD!!
Thanks a lot!!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close