LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-27-2010, 10:18 AM   #1
amirsd
LQ Newbie
 
Registered: Dec 2009
Posts: 8

Rep: Reputation: 0
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.
 
Old 01-27-2010, 10:21 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 01-27-2010, 10:23 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
mount points are basically folders (files)

You can use any empty folder that is not being used

#mount


read
#man mount
 
Old 01-27-2010, 01:49 PM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Quote:
Originally Posted by amani View Post
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.
 
Old 01-27-2010, 04:11 PM   #5
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
fyi mount without any options just displays the contents of /etc/mtab
 
Old 02-01-2010, 11:09 AM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
@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.
 
Old 02-01-2010, 01:40 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Quote:
Originally Posted by amani View Post
@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.

 
  


Reply



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
Unable to export DISPLAY or mount an NFS partition on RHEL5 sudheer_tenneti Linux - Networking 0 08-30-2007 06:48 AM
mount points and partition clarification tuxrules Linux - Newbie 8 07-21-2004 05:16 PM
Partition formatted, mount points, data lost eneko Linux - Newbie 7 11-16-2003 08:46 PM
partition mount points fireal Linux - Newbie 10 06-28-2003 03:05 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration