LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount - hardware access? (https://www.linuxquestions.org/questions/linux-newbie-8/mount-hardware-access-414866/)

paddy 02-13-2006 06:13 AM

[solved] mount - hardware access?
 
you might says this is windows talk, but I just can't wrap my head around it:
if I mount a partition to /home/my-data, are all the changes in this "folder" then applied to the partition it's on (as if it were just kinda linked) and what's worse: on the /home partition, is there any hint, apart from it knowing that there's a "link" or is there an actual folder /home/my-data which is written to the /home partition (say, like in my case, hda4)

in fact, same question applies to a directory named /mnt - or doesn't it, because /mnt is designed to pass changes on to where they belong???? or is it something completely different.

then why should I mount something to /mnt and link it to /home instead of mounting it to /home

and there's more to it: if I should mount two partitions to the same directory, well then we're in real trouble, aren't we?

or am I just getting "folder" (as in your shelf) and directory (as in RE-direct, direction) confused??

J_K9 02-13-2006 06:25 AM

Hi,

It doesn't matter where you mount the partition - for all you care you could be mounting it in /usr/bin, and it would still be accessible. But, it's advisable to mount it to /mnt because then you can have all mounted partitions in the same directory (and /mnt is the default on most systems). Wherever you mount it, you information will still be written to the partition/drive, and you'll have no problems if you 'umount' them before unplugging them (although on most current systems the information will be transferred automatically, without waiting for the unmounting process to write the files over).

The point of linking to /mnt from /home is that when you open your home folder all you've gotta do is click on the link to /mnt to take you there - instead of having to type it into the address bar each time.

A 'folder' is a 'directory' in UNIX. I hope it's clearer now. :)

Cheers,

-jk

Ps. You might want to read up on a few of the links here to help you - especially the "Linux File Systems - Explained" one.


All times are GMT -5. The time now is 07:02 AM.