LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-12-2012, 10:54 AM   #1
ajay06081993
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Rep: Reputation: Disabled
what do you mean by mount????


hey

please give me the full definition of mount.what do you mean by mounting a filesystem .why we are using it in linux. i googled but not get an appropriate answer please give it full descriptions and example(if any)

with regards
ajay

Last edited by ajay06081993; 10-12-2012 at 10:55 AM.
 
Old 10-12-2012, 11:05 AM   #2
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,791

Rep: Reputation: 157Reputation: 157
Basically to mount a file system means to attach it to the system at a directory location. You can kind of think of it like you would "mount" a horse to ride it... If a file system is unmounted, it is separated from the directory structure. The attachment address is called the "mount point." For instance, a separate user-space/user account partition's mount point would be /home .

You cannot browse an unmounted file system, nor save or modify files on it. However, you cannot format or modify partitions on a mounted file system (normally, anyway). Unmounted file systems are identified by their udev name (i.e.: /dev/sda1, /dev/sda2, etc.).
 
Old 10-12-2012, 11:07 AM   #3
rmknox
Member
 
Registered: May 2010
Posts: 354

Rep: Reputation: 34
there is a set of manuals that come with unix type systems
you have the ability to get to a command line
it may be a function called "terminal"
go to the command line
then type man mount
and it will display the manual for the mount command
or
info mount
will give you more detail
 
Old 10-12-2012, 11:22 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Hi Ajay,
Let's take an example, suppose you have a big house surrounded by strong walls and it has no gate or windows at all. If you want to enter into the house, you will definately need a gate. Similarly, in Unix, in order to access the storage i.e. hard disks or any other storage media from your Unix system, you will need a gate i.e. some entry point or some access point. So your storage is the "house" and your mount point the "gate", which means you can access or enter into the house though that gate. In Unix, we create a directory, which is called "mount point", and attach it to the storage device, so we can access the storage though that directory by keeping our data into it. This processs of creating a directory to access storage is called "mounting" or simply "mount".
Hope it will clear your doubts. :-)
 
1 members found this post helpful.
Old 10-12-2012, 02:52 PM   #5
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Rep: Reputation: Disabled
i'm running ubuntu server on one 2TB drive (will add another once i figure out how to move my media from my win7 machine to my new server)
where should mount the HD?
is there a standard that i should stick to?
 
Old 10-12-2012, 02:58 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
What do you mean with "where to mount the drive". If the OS is on it it is already mounted.
You can see which partition is mounted at which mountpoint with just launching the mount command without any parameters.
 
Old 10-12-2012, 03:11 PM   #7
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Rep: Reputation: Disabled
oh, right, i have logical volumes
this is a whole new world
thx!
 
Old 10-12-2012, 05:39 PM   #8
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I like to explain to people that a filesystem is structured like an upside-down tree, with the leaves being all of the files, and the branches like directories (or, probably 'folders' for the Windows oriented). Mounting a new filesystem is then like grafting a branch onto the tree. Not too surprisingly, it is performed using the mount command
It is also somewhat confusing to Windows oriented people that Linux has no concept of 'drives', and uses a single filesystem with a single root. This is distinct from DOS/Windows, where each partition is seen as a distinct drive with it's own root directory. By mounting a partition, it's contents become part of the one and only filesystem on a Linux host, and are therefore addressable within the filesystem.
In general, it is possible to mount a partition at any point in the filesystem (although there are fewer places where it actually makes sense to do so), just as you could generally graft a branch onto a tree wherever you want.
Also confusing is the way the term filesystem is used in multiple but different ways. There is 'the filesystem' as alluded to above. Then, there is the filesystem that constitutes an individual partition, which we build when we 'format' a partition. Then, there is a filesystem type, which we refer to as simply a 'filesystem', such as ext2, ext3, xfs, jffs2, fat, NFS, SMB/CIFS, etc. Usually, it is easy to tell from context which usage is implied, but to the newbie, it can be confusing.
Just to add even more confusion to the uninitiated, Linux likes to treat all devices like files. They even show up in the filesystem under the /dev directory. While they obey most of the semantics of files, they are really just access points to allow software to access physical or logical hardware devices. Same goes for the /proc pseudo filesystem (note the use of a filesystem type, here), which is a convenient entry point into some kernel internals, allowing for standard tools to access those internals. Even though it looks like a filesystem, it occupies no storage on any physical media; it is a virtual filesystem.
Confused enough yet?
--- rod.

Last edited by theNbomr; 10-12-2012 at 05:43 PM.
 
1 members found this post helpful.
Old 10-12-2012, 07:19 PM   #9
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Rep: Reputation: Disabled
lol thx rod
i've got a lot to learn
 
Old 10-12-2012, 07:38 PM   #10
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,791

Rep: Reputation: 157Reputation: 157
That was a very nice explanation Rod,... very newbie friendly ...

By the way, I should point out that in my own post above, it reads as though the file system only shows up under its udev name (like; /dev/sda1) when it is not mounted. That is clearly not the case. Hardware shows up under /dev regardless of whether it has been given a user-friendly mounting point or not. Another area where you'll likely need udev names for things is with cameras, sound output and input, and USB (and other serial ports).
 
Old 10-12-2012, 09:45 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
My understanding is that the term "mount" comes from the early days of mainframes when the "drives" were actually honking great tape drives. To place a memory tape on a spindle, the operators had to physically lift the spool of tape up to the drive and "mount" it on the spindle.

This may be simply geek legend, but it makes sense and does explain the term.
 
Old 10-12-2012, 09:49 PM   #12
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 12.04/14.04, Scientific Linux 6.3/6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,791

Rep: Reputation: 157Reputation: 157
Don't know,... sounds reasonable though...
 
Old 10-13-2012, 01:24 AM   #13
ajay06081993
LQ Newbie
 
Registered: Oct 2012
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JaseP View Post
Don't know,... sounds reasonable though...
thanks a lot all of you.
 
Old 10-13-2012, 02:13 PM   #14
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by frankbell View Post
My understanding is that the term "mount" comes from the early days of mainframes when the "drives" were actually honking great tape drives. To place a memory tape on a spindle, the operators had to physically lift the spool of tape up to the drive and "mount" it on the spindle.

This may be simply geek legend, but it makes sense and does explain the term.
I'm pretty sure that is accurate.
--- rod.
 
Old 10-13-2012, 02:18 PM   #15
Master_CAPS
Member
 
Registered: Mar 2012
Location: I live at ::1 usually...
Distribution: Yes.
Posts: 55

Rep: Reputation: Disabled
-----O
/ -------
| HDD |
-------

There is a good explination about linux mounting
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
manual mount cifs works but srcipt mount cifs has mount error (13): Permission denied CADIT Linux - Newbie 6 11-20-2009 03:48 PM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 03:15 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration