LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 06-30-2009, 03:58 AM   #1
raikar
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Getting Notification when disk space cross a threshold value


I am writing a programm on linux ( ubuntu)

i have a requirement that when the available disk ( hard disk ) space crosses a certain limit ( specified by me ) , then i should get a call back from the OS . can somebody tell me how to do that ?

I want this notification to come when any of the disks ( C drive , D Drive ... ) free space cross a specified thrreshold value.

Last edited by raikar; 06-30-2009 at 03:59 AM.
 
Old 06-30-2009, 04:18 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
confusing ...
you say linux and you also say 'C' and 'D' drive which is more unique to dos-like operating systems.
If you really want to keep a watch on disk space you can use this link
http://www.cyberciti.biz/tips/shell-...isk-space.html

do you want to mount 'C','D' drives of some other machines using samba into a central machine
and watch them ? The above script will anyway work for almost all the mounted cases.
 
Old 06-30-2009, 05:11 AM   #3
raikar
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bhaslinux View Post
confusing ...
you say linux and you also say 'C' and 'D' drive which is more unique to dos-like operating systems.
If you really want to keep a watch on disk space you can use this link
http://www.cyberciti.biz/tips/shell-...isk-space.html

do you want to mount 'C','D' drives of some other machines using samba into a central machine
and watch them ? The above script will anyway work for almost all the mounted cases.

Sorry for the confusion ,

I mean, i want to get notification from OS whevent the free space for any of the "mounted drives" goes below a threshold value .
 
Old 06-30-2009, 05:50 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Did you even read the script ?.
Won't take much to modify it - perhaps you should make some effort to do it yourself.
 
Old 06-30-2009, 05:54 AM   #5
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by raikar View Post
I am writing a programm on linux ( ubuntu)

i have a requirement that when the available disk ( hard disk ) space crosses a certain limit ( specified by me ) , then i should get a call back from the OS . can somebody tell me how to do that ?

I want this notification to come when any of the disks ( C drive , D Drive ... ) free space cross a specified thrreshold value.

See here for an example.
 
  


Reply

Tags
disk, notification, space



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
user-space notification of USB device attached/detached rhardy Linux - Newbie 1 10-25-2006 08:31 AM
callback or notification from kernel to user space yhus Programming 5 09-18-2005 09:41 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
E-mail notification of low disk space Hypocrite Linux - General 2 11-10-2004 02:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration