LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-21-2011, 02:25 AM   #1
hk_centos
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Rep: Reputation: Disabled
How to ensure mount point is mounted correctly ?


Hi ALL

I need to know particular mount point mounted or not before send data to that mount point.

Are there any commands
i used this command.
mount -t nfs 172.16.102.50:/root/ESSR_share /root/shared_storage/pc50 -o rw,hard,intr

but it take long time (when machine(172.16.102.50) is not available)

Thank You !
 
Old 06-21-2011, 02:35 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You might test for the existence of a particular directory on the mounted disk, e.g.
Code:
[[ -d /root/shared_storage/pc50/path/to/dir ]] || exit 1
 
Old 06-21-2011, 03:16 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685Reputation: 2685
Can you not parse the output of the mount command? or maybe /proc/mounts
 
Old 06-21-2011, 04:18 AM   #4
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
Quote:
Originally Posted by hk_centos View Post
Hi ALL


i used this command.
mount -t nfs 172.16.102.50:/root/ESSR_share /root/shared_storage/pc50 -o rw,hard,intr

but it take long time (when machine(172.16.102.50) is not available)

Thank You !
hello Friend..
You are mounting an NFS share. Obviously it will not respond to mount command if the NFS Server(in this case 172.16.102.50) is not available.

To Verify there are many ways.
mount |grep '/root/shared_storage/pc50'

This should give you a result.

df -hP /root/shared_storage/pc50 -- this should point to your NFS filesystem, not the root filesystem.

--Rameez
 
1 members found this post helpful.
Old 06-24-2011, 07:14 AM   #5
hk_centos
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Hi Rameez,

Thank You very much for your kind cooparation. Actually it's working. Yes thanks buddy

Cheers !
 
  


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
[SOLVED] Problem writing to nfs mounted mount point blainemiller Linux - Newbie 4 10-26-2010 02:03 PM
Device already mounted or mount point busy with CentOS/corosync/pacemaker/DRBD aschoessler Linux - Server 1 04-02-2010 09:11 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 06:02 PM
Mount Problem: evice already mounted or mount point busy paldebojyoti Linux - Distributions 5 08-27-2009 03:46 AM
gtkpod not interfacing correctly with mount point LiveFree Linux - Hardware 1 10-02-2006 11:17 AM


All times are GMT -5. The time now is 06:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration