[opensuse] Software mount point, to show up on df
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. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 September 2008 22:02:55 Ben Kevan wrote:
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@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 26 September 2008 01:57:33 pm Anders Johansson 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
Anders, This is the method I'm using, but is there anyway to make it into fstab, so that it's automaticlly written to mtab and shows when I do a df? Otherwise, I have to re-add on reboot. or umount / mount .. Thanks. Ben -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Anders Johansson
-
Ben Kevan