Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
mount --bind
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Why Tea  
View profile  
 More options Mar 17 2011, 8:37 am
Newsgroups: comp.unix.shell
From: Why Tea <ytl...@gmail.com>
Date: Thu, 17 Mar 2011 05:37:47 -0700 (PDT)
Local: Thurs, Mar 17 2011 8:37 am
Subject: mount --bind
If I have done the following:

# mount --bind /a/b /y/z

how do I find out if /y/z has been mounted to /a/b
in a bash script?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Samel  
View profile  
 More options Mar 17 2011, 9:20 am
Newsgroups: comp.unix.shell
From: Samel <sameli...@gmail.com>
Date: Thu, 17 Mar 2011 13:20:54 +0000 (UTC)
Local: Thurs, Mar 17 2011 9:20 am
Subject: Re: mount --bind

Why Tea <ytl...@gmail.com> wrote:
> If I have done the following:

> # mount --bind /a/b /y/z

> how do I find out if /y/z has been mounted to /a/b
> in a bash script?

Check $? for any command result

--- news://freenews.netfront.net/ - complaints: n...@netfront.net ---


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
goarilla  
View profile  
 More options Mar 17 2011, 12:14 pm
Newsgroups: comp.unix.shell
From: goarilla <kevin.pau...@mtm.DOTremove-thisDOT.kuleuven.DOTbe.invalid>
Date: Thu, 17 Mar 2011 16:14:04 +0000 (UTC)
Local: Thurs, Mar 17 2011 12:14 pm
Subject: Re: mount --bind

On Thu, 17 Mar 2011 05:37:47 -0700, Why Tea wrote:
> If I have done the following:

> # mount --bind /a/b /y/z

> how do I find out if /y/z has been mounted to /a/b in a bash script?

i think it's the reverse
/a/b is now accessible as /y/z *AND* /a/b

or I'm just misreading


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Waldby  
View profile  
 More options Mar 17 2011, 12:49 pm
Newsgroups: comp.unix.shell
From: James Waldby <n...@valid.invalid>
Date: Thu, 17 Mar 2011 16:49:50 +0000 (UTC)
Local: Thurs, Mar 17 2011 12:49 pm
Subject: Re: mount --bind

On Thu, 17 Mar 2011 05:37:47 -0700, Why Tea wrote:
> If I have done the following:

> # mount --bind /a/b /y/z

> how do I find out if /y/z has been mounted to /a/b in a bash script?

Maybe you could test  mount | grep /y/z  ?

Eg,
        sudo mount --bind 123 mnt
        mount | grep 123
shows
        /home/jw/tmp/123 on /home/jw/tmp/mnt type none (rw,bind)

--
jiw


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »