I refer to the post How do I mount a folder from another partition?. I have /home associated with a partition and this is working.
From the post it seems that my fstab should read:
/whatever /home none bind
Can I have /whatever related to this partition without is being under /home? In scripts I would like to refer to this location as /whatever
rather than as /home/whatever
I come from the Windows environment the my reasoning is that Drive D could have any number of folders under it.
Thanks
Clarification note
I have the following in my fstab
UUID=109bff64-xxxx /home ext4 defaults 0 2
I want to add a directory /whatever to resolve to the save device having UUID=109bff64-xxxx.
I do not want /whatever to be under /home.
/whatever
? What do you want it to be? Where do you want to have its data mounted? – terdon Jan 08 '23 at 14:46sudo ln -s /home /whatever
? And your comment about "drive D having multiple folders" is also confusing,/home
can have as many folders under it as you like. I am having trouble understanding what advantage you see in having this/whatever
. Why is it easier to use/whatever
in a script than to use/home
? I feel this may be an xy problem. – terdon Jan 09 '23 at 09:16Maybe it needs time to sink in.
– chribonn Jan 09 '23 at 09:46\C:
and the drive. So just like your system partition is accessible via\C:
in Windows, so your home partition is accessible via/home
in Linux. Sure, the mechanics might be different, but from the user perspective it is basically the same. But, again, what is the benefit for you in having/whatever
point to/home
? What can you do with/whatever
that you cannot do with/home
? – terdon Jan 09 '23 at 10:15