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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-27-2010, 10:18 AM
|
#1
|
LQ Newbie
Registered: Dec 2009
Posts: 8
Rep:
|
Display mount points on a partition
If there is a partition. e.g /dev/sda1 is there a command that I can use to display all mount points on this particular partition. Any tip would be nice.
|
|
|
01-27-2010, 10:21 AM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
|
Mount points
A mount point is just a directory until it is used. If you want to know what mount points are in use, the 'mount' command with no parameters will display them.
|
|
|
01-27-2010, 10:23 AM
|
#3
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
mount points are basically folders (files)
You can use any empty folder that is not being used
#mount
read
#man mount
|
|
|
01-27-2010, 01:49 PM
|
#4
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,980
|
Hi,
Quote:
Originally Posted by amani
mount points are basically folders (files)
You can use any empty folder that is not being used
#mount
read
#man mount
|
' mount point' is a directory not a folder. This is not M$, synonymous but typical description when speaking GNU/Linux or even UNIX.
Quote:
excerpt 'mount point';
Mount point
In Unix-like systems, the mount point is the location in the operating system's directory structure where a mounted file system appears. For example, many modern Linux distributions automatically mount the CD drive as /media/cdrom, so the contents of the CD drive will appear in the /media/cdrom directory.
Normally only the root user can mount a new file system usually using the mount utility, but there are often provisions to allow normal users to mount removable media, such as the pmount package.
Microsoft Windows
The equivalent to mounting in Microsoft Windows is known as mapping a drive. In these systems, all files and directories available to the operating system and its users are to be found relative to the root directory (\), whether those directories are on the same machine or not.
Microsoft's NTFS 3 also supports Volume Mount Points through the use of NTFS reparse points, which allows volumes to be mounted at arbitrary locations in the file system in addition to the standard drive letters (e.g. C:, E .
|
Quote:
excerpt from Mounting Definition;
Mounting is the attaching of an additional filesystem to the currently accessible filesystem of a computer.
A filesystem is a hierarchy of directories (also referred to as a directory tree) that is used to organize files on a computer or storage media (e.g., a CDROM or floppy disk). On computers running Linux or other Unix-like operating systems, the directories start with the root directory, which is the directory that contains all other directories and files on the system and which is designated by a forward slash ( / ). The currently accessible filesystem is the filesystem that can be accessed on a computer at a given time.
In order to gain access to files on a storage device, the user must first inform the operating system where in the directory tree to mount the device. A device in a mounting context can be a partition (i.e., a logically independent section) on a hard disk drive (HDD), a CDROM, a floppy disk, a USB (universal serial bus) key drive, a tape drive, or any other external media. For example, to access the files on a CDROM, the user must inform the system to make the filesystem on the CDROM appear in some directory, typically /mnt/cdrom (which exists for this very purpose).
The mount point is the directory (usually an empty one) in the currently accessible filesystem to which a additional filesystem is mounted. It becomes the root directory of the added directory tree, and that tree becomes accessible from the directory to which it is mounted (i.e., its mount point). Any original contents of a directory that is used as a mount point become invisible and inaccessible while the filesystem is still mounted.
|

|
|
|
01-27-2010, 04:11 PM
|
#5
|
Member
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567
Rep:
|
fyi mount without any options just displays the contents of /etc/mtab
|
|
|
02-01-2010, 11:09 AM
|
#6
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766
Rep: 
|
@onebuck, the concept of 'folder' is used in Mac as well and in *nix everything is a file. Of course, mount points are directories, but I was explaining to a M$ user.
|
|
|
02-01-2010, 01:40 PM
|
#7
|
Moderator
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,980
|
Hi,
Quote:
Originally Posted by amani
@onebuck, the concept of 'folder' is used in Mac as well and in *nix everything is a file. Of course, mount points are directories, but I was explaining to a M$ user.
|
Then use the proper definitions and separate the OS from each other.

|
|
|
All times are GMT -5. The time now is 06:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|