Re: [opensuse] Software mount point, to show up on df



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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: moving /home to its own partition
    ... Create the new home mount point. ... (This is exactly the entry you specified. ... > my /home partition has filled up so I need to move it. ... > Linux user #372812 ...
    (Fedora)
  • Accessing partitions using FIXIT/Live-System-CDROM?
    ... However I can't mount any paritions beside the original root-partition. ... This entry is exactly the ... Even when having an entry for the partition in question (da0s1h in the ...
    (freebsd-questions)
  • Re: Accessing partitions using FIXIT/Live-System-CDROM?
    ... >However I can't mount any paritions beside the original root-partition. ... This entry is exactly the ... >example) I cant' mount that partition. ...
    (freebsd-questions)
  • Re: /home partition
    ... If there is no entry in /etc/fstab for a partition is will not be ... might want to look at man mount or man fstab for some background info. ... > the installation process? ...
    (Debian-User)
  • Re: [SLE] hard disk failure or???? URGENT
    ... On Saturday 04 October 2003 18.42, Anders Johansson wrote: ... Sorry, this was silly, you obviously know which partition it is since you can ... mount it and look at the fstab. ... Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)