Can I mount one partition to two folders?
Would I be able to mount the same drive (partition) to 2 folders?
like for example: mount hdx(#) to /home and /usr at the same time so that they both use the same partition |
you want the contents of /home to be the same as the contents of /usr ???? how does that make any sense?? if you mean you want to store the data seperately in different locations in that partition, you could just use a symlink from, say, /home to /usr/home or something... not nice at all though.
|
Yes you can, but I don't see why you would ever need to.
|
Quote:
And I also have another question: Also is it a good idea to put /root onto it's own partition (or not)? |
A simlink is kind of like a shortcut. You can make them using "ln -s." Check the man page and info page for more details.
There's really no need to put /root on its own partition, its not used much normally anyways. |
I am just wanting to keep the /root config files (/root/.(whateverprogamthisis)) out of the "/" partition (which will be about a 1G partition)
And also thanks for your help. |
Are you only making the partition that you will mount "/" 1G? This will not be enough room unless you are running a very low lever system, like a router. Most everything goes in "/", so you will need to make this partition much bigger. I don't know you situation though, so if you know what your doing, you can just ignore my comments.
|
Quote:
Code:
$ df |
I would never advocate anything this complex--mostly because I project myself into the picture and know that **I** woudl not be able to keep track of what is going on.
Do you get a performance benefit in your scheme? |
There is the bind option while mounting another directory to a certain directory that is already mounted. For an example, you could use bind for /tmp and /var/tmp on /dev/shm to increase performance. Another example is when you want a directory to share the same directory with out using symbolic links on a SAMBA server. There are other mount options.
The correct term is directory not folders. This goes the same for Windows too. |
This seems needlessly complex.
The more complex it is, the easier it'll break, and the nastier it is to fix when it does. Keep it simple. |
Quote:
Quote:
Code:
# df |
All times are GMT -5. The time now is 06:57 PM. |