Mount---Mount points

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
wesireal

Mount---Mount points

Post by wesireal »

I did a search and went through 21 links, but I am no wiser. It would be wonderful if someone could point me in the right direction.

Quistion; What is a mountpoint and how and why is it done. I have come across " mount this etc etc" what does it mean.

Please bear with me, I know nothing about linux and very little about windows.

Thanks in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
MagnusB
Level 6
Level 6
Posts: 1252
Joined: Sun Nov 18, 2007 12:39 pm
Location: Norway

Re: Mount---Mount points

Post by MagnusB »

Mount points are just file paths to where you want to mount a partition. Let us say I have a partition called A, and to browse the files on partition A I have to go to /media/partA. That makes /media/partA the mount point for partition A.
Image
You're not drunk if you can lie on the floor without holding on.
--Dean Martin
wesireal

Re: Mount---Mount points

Post by wesireal »

Thank you.

To browse files in windows all I have to do is click on c-d-e-etc.

Will I have to type something everytime I want to look into a file? :roll:
Fred

Re: Mount---Mount points

Post by Fred »

wesireal,

This is the root of a lot of confusion and common misunderstandings from Windows users coming to Linux. I guess I should try to do a wiki entry on it one of these days.... If I can get over my laziness. :-)

Windows sees drives/partitions and the files on them. Linux sees only the file system. The folder tree is everything in Linux. It neither knows nor cares where the contents of a given folder is actually physically located. Linux only sees the folders relative to their position in the file tree. Where the actual contents of the folders resides is not recognized or important to Linux.

Example: The "Music" folder is only defined by the fact that it is in the "fred" folder. The "fred" folder is defined by the fact that it exists in the "home" folder. Where the actual data is doesn't matter. It could be on a different partition, a different drive, a different computer, in a cloud somewhere... it doesn't matter to Linux.

All of the folders in the file tree exist under / (root). / (root) is the very top of the file tree. If it doesn't exist in a folder somewhere under / (root), it doesn't exist, as far as Linux is concerned.

This is a very important difference between Windows and Linux. You really need to get your head wrapped around this concept of things to understand why a lot of things are done as the are in Unix/Linux.

OK... We have this file system floating around out there in space. But it is useless because it is not tied to any data. It is just a collection of folder names in Linux's imagination. An empty shell, if you want to look at it like that.

In order to make the file system useful we must "bind" or "mount" all of these folders to a source of real data. The most common data storage source is a section or partition of magnetic media on one or more hard drives.

We can attach the entire file system to one partition by binding or mounting / (root) to a given partition; say sda1. In this case, the entire file system or the entire Linux world would exist on the first partition of the first hard drive. But we don't have to stop there. We can also assign, bind, or mount almost all of the folders in the file system to their own partitions if we so chose. Once we bind or mount the folders we want to the storage partitions we want, we have a working system that contains real data. Where that data is physically located is immaterial to the operation of the system.

This concept has some very powerful consequences. It gives you tremendous flexibility as far as the way your system is structured. By being able to isolate your data, programs, kernel, temp files, logs, etc. on their own partitions you can enhance security, robustness, speed, serviceability, ease of upgrading, and many other things. It is like sweets and beautiful women though. You can over do anything. Where too much segmentation is for one person, it is not enough for someone else. Thus you will find as many opinions on partitioning as you care to ask for.

To get back to your original question about mounting. Mounting is what you do to tie a folder in the file system, either the ones that are there by default or the folders you create yourself, to a storage partition. Look at it as binding the two together if that is more descriptive for you.

You can mount a given partition to as many folders in the file system as you wish. You can only mount one partition to a given folder however.

I hope this helps you understand the purpose of mounting better.

Fred
wesireal

Re: Mount---Mount points

Post by wesireal »

Fred;

Thank you very much. I will now wait for my head to stop spinning. I shall get there. In the meantime I have obtained a book--Linux Bible by Christopher Negus--
I hope to read it and work out the problems by actually installing linuxmint and take it up from there.

I am gratefull for the detailed reply. If the book cant solve a problem I may run into I shall come back to the forum. In any case when I have become comfortable with linux I shall report back. :D
Fred

Re: Mount---Mount points

Post by Fred »

wesireal wrote:
Please bear with me, I know nothing about linux and very little about windows.
Actually, this might be a point in your favor. Long time Windows users that are quite proficient in Windows tend to have more problems with Linux than you might expect. They tend to have more to unlearn. Many things that they just expect to be universally true aren't. This leads to more confusion for them sometimes, than for relatively uninformed users.

Partitions can be mounted or bound to folders with the "mount" command. There are of course several GUI utilities available to do this graphically also.

Partitions can also be mounted to folders automatically on boot by putting the appropriate lines in a file called /etc/fstab.

Good luck on your journey into Linux.

Fred
Locked

Return to “Beginner Questions”