LinuxQuestions.org
Help answer threads with 0 replies.
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 06-14-2012, 08:08 AM   #1
hari_sahaya
LQ Newbie
 
Registered: Jun 2012
Posts: 5

Rep: Reputation: Disabled
Devices/file system on linux


Hi,

I am trying to understand the device naming conventions in Linux. Looking for some information on mount points.
If someone can elaborate or direct me to some pointers/weblinks, it would be very helpful.

Thanks!
 
Old 06-14-2012, 09:34 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The document here will give you a good overview for mount points (filesystems).
http://www.pathname.com/fhs/pub/fhs-2.3.pdf

Note that "mount point" and "device" are separate things when talking about filesystems.

mount point = The directory you mount the device on and from which you access the files in the filesystem. When the filesystem is NOT mounted this directory exists but is mostly empty (it should have only the . and .. hard links in it to pwd and parent directory). The one filesystem all UNIX/Linux systems will always have is "/" (root). There may or may not be others.

device = The partition, logical volume or media (e.g. usb or DVD) you mounted on the mount point. Examples would be /dev/sda2 for the second partition of your first hard drive, /dev/VolGroup03/lvol4 for the 4th logical volume of the 3rd volume group).

When you run df -hP you see the device in the left column and the mount point in the last column.

Note also that there are pseudo filesystems that are created at each boot (e.g. /proc, /sys on Linux with kernel 2.6 and greater).

Last edited by MensaWater; 06-14-2012 at 10:29 AM. Reason: Finally had enough coffee to see my typos
 
1 members found this post helpful.
Old 06-14-2012, 10:08 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
A "mount point" is the same thing as a directory---the only difference is how it is used.

try this:

create a new directory (anywhere), called testdir and copy some files into it.
In the parent directory, do "ls testdir" and you will see a list of the files.
now, "mount" some other directory to the new one. eg "somedir" mounted to "testdir":
mount <path>somedir testdir
now, do "ls testdir", and you will see the contents of "somedir" The orignal contents of "testdir" are still there, but are hidden by the mounted directory. If you unmount somedir, then the original contents will reappear.
 
1 members found this post helpful.
Old 06-14-2012, 11:57 AM   #4
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Salix
Posts: 6,191

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
Let's have another go at explaining.

Linux, unlike Windows, keeps a single filing system: you don't have to keep track of c:, d:, e:, etc. The mount point is the place in the filing system used for a particular device. So, on my desktop
/dev/sda1 [first hard drive, first partition] is mounted at /
/dev/sda2 [first hard drive, second partition] is mounted at /home
/dev/sda3 [first hard drive, third partition] is mounted at /media/guest
and when I plug in a USB memory stick, I get
/dev/sdb1 mounted at /media/usb

Where things go in /media depends on your distribution, but you can fix it by altering /etc/fstab.
 
1 members found this post helpful.
Old 06-15-2012, 12:00 AM   #5
abhiionweb
LQ Newbie
 
Registered: Jun 2012
Posts: 15

Rep: Reputation: Disabled
I think you should try these link also along with the links and suggestions of other users :

http://lowfatlinux.com
http://lowfatlinux.com/linux-files.html
http://lowfatlinux.com/linux-filenames.html

Boob helps you lot!! :-)

Last edited by abhiionweb; 06-15-2012 at 12:03 AM.
 
2 members found this post helpful.
  


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
system calls to devices?Talking to devices. kiruxa Linux - Hardware 6 12-09-2006 06:46 PM
LXer: Selecting a flash file system for wireless devices LXer Syndicated Linux News 0 11-11-2006 01:33 AM
when does linux switch from realmode file system to protectedmode file system sitthar Linux - General 3 04-08-2006 09:05 AM
how to install 2 same pci devices in 1 linux system? maximurs Linux - Hardware 3 04-05-2004 05:17 AM

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

All times are GMT -5. The time now is 06:57 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