The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Mount point options Sunguy222 UNIX for Advanced & Expert Users 1 04-24-2008 03:23 PM
ssh with shared mount point devjxh SUN Solaris 4 11-30-2007 05:54 AM
auto mount point legato UNIX for Dummies Questions & Answers 1 02-15-2005 01:11 PM
mount point colesy UNIX for Dummies Questions & Answers 1 01-06-2004 04:03 AM
Recover mount point here2learn UNIX for Dummies Questions & Answers 1 11-11-2003 11:33 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 06-07-2006
Registered User
 

Join Date: May 2006
Posts: 32
concept of mount point

Hi All

I Know it is a really basic and stupid question perhaps...But I am going bonkers..

I have following valid paths in my unix system:

1. /opt/cdedev/informatica/InfSrv/app/bin
2. /vikas/cdedev/app

Both refer to the same physical location. So if I created one file 'test' in first
path, when i cd to /vikas/cdedev/app and do a ls -ltr, i see the 'test' file

When I do a df -k . on 1 and 2 above, i get the same mount point which is as follows:

/vikas/cdedev/app

Now, I am perhaps taking a long shot, but the most logical reasoning I can give myself is mount point is nothign but actual physical location in hard drive whereas directories are logical pointers to mount points. So 1 and 2 above are logical pointers to the same physical location. In other words, they point to the same mount point.

I might be way off. In any case, can somebody throw some light on following:

a. concept of mount point as well as Unix file system?

b. Is it possible to see which directories refer to one particular mount point by some unix command?

Appreciate it much.
Reply With Quote
Forum Sponsor
  #2  
Old 06-08-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 989
Everything sprouts from a "root partition". When nothing's mounted but the root, it acts much like you'd think it would. Files are files, directories are directories.

Directories can be mount points. Mount a partition on a directory, and you see the contents of the partition. This lets you put partitions wherever you please, which is handy.

You can't mount the same partition twice, however! Could you post the output of:
Code:
ls -ld /opt/cdedev/informatica/InfSrv/app/bin /vikas/cdedev/app
I think one of them must be a symbolic link, sort of the file-equivalent of a hyperlink.

Also, you can list what directories currently have things mounted on them with:
Code:
df -h
Reply With Quote
  #3  
Old 06-08-2006
Registered User
 

Join Date: May 2006
Posts: 32
Thanks

Thanks for your reply

You were right

/opt/cdedev/informatica/InfSrv/app is a symbolic link to vikas/cdeddev/app.

I did not know that you could create soft links for directories as well. Thanks again for your reply.

Vikas
Reply With Quote
  #4  
Old 06-08-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 989
Quote:
Originally Posted by Vikas Sood
I did not know that you could create soft links for directories as well. Thanks again for your reply.
No problem. There's no limit on what kind of files you can symlink because all a symlink contains, is a path. It'll even let you link to files that don't exist, though they'll fail to open when you use them, much like a webpage 404.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0