Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-30-2003, 04:08 AM   #1
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat
Posts: 4

Rep: Reputation: 0
Angry finding filesystem availability

Is there a simple way - without making statfs call - to find out if a currently mounted filesystem is unavailable?

The filesystem could be unavailable because the hosting disk is no longer available.
Old 07-30-2003, 04:26 AM   #2
Registered: Jul 2003
Posts: 88

Rep: Reputation: 15
Not 100% sure but you could poll /etc/mtab though TBH I don't think that will take care of stale NFS mounts

Old 07-30-2003, 04:52 AM   #3
LQ Newbie
Registered: Jul 2003
Distribution: Red Hat
Posts: 4

Original Poster
Rep: Reputation: 0
Rus, thanks for your reply.

The problem that I face is that I have an external hard disk on which I have a filesystem that is auto mounted. My software application uses this filesystem. I want to know from the application when the disk containing the filesystem becomes unavailable.

/etc/mtab and /proc/mounts don't get updated if the media containing the filesystem is suddenly not available.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Quake 3 - Availability bkeating Linux - Software 5 06-15-2005 02:35 AM
SUSE9.3 availability..? captain skywave SUSE / openSUSE 75 04-22-2005 09:49 PM
Is there a command for finding out the filesystem type? nodger Linux - Software 2 03-04-2005 03:04 PM
getopt availability Bostonian Programming 2 12-26-2004 10:37 AM
Availability of BSD in Uk dai *BSD 7 08-13-2002 10:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:46 PM.

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