The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 06:23 PM
ssh with shared mount point devjxh SUN Solaris 4 11-30-2007 08:54 AM
auto mount point legato UNIX for Dummies Questions & Answers 1 02-15-2005 04:11 PM
mount point colesy UNIX for Dummies Questions & Answers 1 01-06-2004 07:03 AM
Recover mount point here2learn UNIX for Dummies Questions & Answers 1 11-11-2003 02:33 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-07-2006
Vikas Sood Vikas Sood is offline
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.
  #2 (permalink)  
Old 06-08-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
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
  #3 (permalink)  
Old 06-08-2006
Vikas Sood Vikas Sood is offline
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
  #4 (permalink)  
Old 06-08-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
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.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:14 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0