Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
It appears to be doing what you asked. The /home shows the same details in df as /mnt/extradiskA because the bind mount is simply remounting the SAME device in a different location accordingly you'll see the SAME device and usage in df.
If you do ls -l /mnt/extradiskA do you see a subdirectory called home there?
If you do ls -l /mnt/extradiskA/home and ls -l /home do you see the same files in both? If so the bind mount worked.
The bind mount while it does make the mount restricted to the subdirectory you specified (/mnt/extradiskA/home in your case) it does NOT limit the size to that subdirectory - the size is based on the underlying mount just as if you ran "df -hP /mnt/extradiskA/home" would show you the underlying mount, /mnt/extradiskA.
The problem is not mounted.
'/mnt/extradiskA/home /home none bind 0 0' on fstab is not recognized correctly.
It is interpreted not bind type.
So df shows '/dev/vdb 41153856 549492 38507212 2% /home'
Do you know how to fix?
You appear to be thinking it will show the device as /mnt/extradiskA/home but as I noted in my previous answer it actually will show the real device which is /dev/vdb.
I suspect what you're seeing about the bind type is occurring because you're trying mount /home again even though it is already mounted.
What happens if you:
a) umount /home
b) df /home
c) mount /home (with no other options on command line)
d) df /home (again)
Be sure to provide full output rather than summarizing so we can see the exact errors if any.
Last edited by MensaWater; 04-13-2016 at 07:48 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.