Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-29-2005, 08:11 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Scottsdale,AZ
Distribution: Linspire
Posts: 13

Rep: Reputation: 0
Question What is mounting?

I noticed from reading other threads that it seems to pertain to recognition of devices such as CD or USB drives. I need a god explaination of what it is. In windows (Gasp, cough...) things are plug and play and most of hte things I have used with Linspire have been so far as well, no need to mount anything. So when does this issue come up?
Old 07-29-2005, 08:43 PM   #2
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
well, have you ever double-clicked on "My Computer" in windows and watched an icon appear when you plug your flashdrive in? or your ipod, or whatever? that's essentially the equivalent. linux needs to map the device to a location in the filesystem. so if you want to mount a data CD-Rom for instance, you create a mount point in the filesystem:

mkdir /mnt/cdrom

and then you tell the kernel to mount the device there:

mount /dev/cdrom /mnt/cdrom

and now you can cd into /mnt/cdrom and see your data. be aware though, that this DOES NOT APPLY TO MUSIC CD's. those are plug'n'play.
Old 07-29-2005, 08:46 PM   #3
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
When you insert a cd you need to mount it to a point in your filesystem so it can be used, interacted with etc. So linspire would do that for your automatically, others don't. type man mount in a terminal to get some info on the command.

Last edited by ingvildr; 07-29-2005 at 08:48 PM.
Old 07-29-2005, 10:53 PM   #4
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,614
Blog Entries: 4

Rep: Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998Reputation: 2998
You may have noticed that Linux does not have the concept of, say, a "C:\ drive."

In Linux, there is just one hierarchy of files, beginning with "/", and every file on every drive is found somewhere within that tree.

mounting is the process of telling Linux that you wish to access the files on a particular device (and partition). Linux will read the label on the drive, determine what kind of filesystem it uses, and will make all of the files available (subject to whatever security limits may apply to them).

The files will appear at some point in the overall file hierarchy. For example, if I enter the command: mount /dev/hdc /mnt/backupdrive, the files on the drive (and partition) /dev/hdc will become available, located "underneath" the mount-point /mnt/backupdrive. After you finish with this command, issuing ls /mnt/backupdrive (assuming that you have permissions) will show you the files in the outermost directory of that device.
Old 07-29-2005, 11:17 PM   #5
LQ Newbie
Registered: Jul 2005
Location: Scottsdale,AZ
Distribution: Linspire
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks everyone for your responses. Yes in Linspire it does it automatically but now I'm experimenting with Fedora a bit. Linspire still has Mount as an option in a drop down menu. So far I haven't had a situation come up where I needed to mount anything. Yet anyway.
Old 07-30-2005, 05:02 AM   #6
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Originally posted by mcd
be aware though, that this DOES NOT APPLY TO MUSIC CD's. those are plug'n'play.
I'm sorry, but IIRC, the Plug and Play technology reffers to the ability of a computer to recognize a device, not media support like CDs or DVDs, so you can't talk about a PnP CD. Also, the PnP functionality is incorporated into the bus, not the peripheral itself. The devices only comply with the standard.


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
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 05:40 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 08:34 AM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 12:00 PM
Mounting purelific Linux - Software 3 03-25-2002 04:38 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 04:13 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 PM.

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