Mailinglist Archive: opensuse (1695 mails)
| < Previous | Next > |
Re: [opensuse] Software mount point, to show up on df
- From: Anders Johansson <ajohansson@xxxxxxx>
- Date: Fri, 26 Sep 2008 22:57:33 +0200
- Message-id: <200809262257.33625.ajohansson@xxxxxxx>
On Friday 26 September 2008 22:02:55 Ben Kevan wrote:
What is a software mount point?
You can add an entry in /etc/mtab with your mount point. df will then do a
"statfs" on it, which will yield the free disk space on that partition, or
it's parent (if it's a normal directory and not its own partition)
e.g. the entry
foo /home/anders/Documents ext3 rw 0 0
makes df print out
foo 78937896 58694580 16233492 79% /home/anders/Documents
Note that the file system must be a valid one (and not 'none'), or it will be
ignored by df
Note also that this may have unforeseen consequences, in that some tools use
mtab to see which partitions are available, and this may well cause headaches
at some future point. I can't think of anything at the moment, but it is
something to bear in mind
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Is there a way to have a software mount point that will have a directory
showup on df? and show the main size left on it's parent mount point?
That would be awesome if there were.
What is a software mount point?
You can add an entry in /etc/mtab with your mount point. df will then do a
"statfs" on it, which will yield the free disk space on that partition, or
it's parent (if it's a normal directory and not its own partition)
e.g. the entry
foo /home/anders/Documents ext3 rw 0 0
makes df print out
foo 78937896 58694580 16233492 79% /home/anders/Documents
Note that the file system must be a valid one (and not 'none'), or it will be
ignored by df
Note also that this may have unforeseen consequences, in that some tools use
mtab to see which partitions are available, and this may well cause headaches
at some future point. I can't think of anything at the moment, but it is
something to bear in mind
Anders
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |