<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: directory tree showing mountpoints in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535969#M222302</link>
    <description>bdf shows the mountpoints. I'm not sure what else you would need. Thed source for the mountpoint is the first element and the attachment point (mountpoint) is the last element. For mounts that are hierarchical (like /var/adm/sw) the mounpoint will have the fullpath. bdf also accepts a filename or any directory and the result will be the mountpoint for the given file/directory.&lt;BR /&gt; &lt;BR /&gt;bdf does make scripting a pain because of long source names such as NFS that get split onto two lines. There is an easy workaround though. This code snippet will handle split lines and remove the title line:&lt;BR /&gt; &lt;BR /&gt;bdf | while read SOURCE SIZ USED FREE PCT MOUNT&lt;BR /&gt;do&lt;BR /&gt;[ "$SIZ" = "kbytes" ] &amp;amp;&amp;amp; continue&lt;BR /&gt;[ "$SIZ" = "" ] &amp;amp;&amp;amp; read SIZ USED FREE PCT MOUNT&lt;BR /&gt;echo $SOURCE $SIZ $USED $FREE $PCT $MOUNT&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 May 2005 21:05:54 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2005-05-02T21:05:54Z</dc:date>
    <item>
      <title>directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535965#M222298</link>
      <description>Is anybody aware of a way to show a directory tree which would indicate mountpoints?&lt;BR /&gt;This could be a great time saver!&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 02 May 2005 12:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535965#M222298</guid>
      <dc:creator>Thomas Moersch</dc:creator>
      <dc:date>2005-05-02T12:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535966#M222299</link>
      <description>&lt;BR /&gt;maybe something like this: &lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/Gnome/gfv-0.2.1/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/Gnome/gfv-0.2.1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;bdf, showmount and exportfs also work.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 02 May 2005 12:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535966#M222299</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-02T12:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535967#M222300</link>
      <description>The gui sounds interesting but is not possible on my servers.  GUIs are out.&lt;BR /&gt;Maybe a combination of bdf, showmount, find, du etc. will haev to do.&lt;BR /&gt;&lt;BR /&gt;;-)&lt;BR /&gt;&lt;BR /&gt;Thomas</description>
      <pubDate>Mon, 02 May 2005 12:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535967#M222300</guid>
      <dc:creator>Thomas Moersch</dc:creator>
      <dc:date>2005-05-02T12:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535968#M222301</link>
      <description>Maybe &lt;A href="http://hpux.ee.ualberta.ca/hppd/hpux/hpux/Users/cls-1.8/" target="_blank"&gt;http://hpux.ee.ualberta.ca/hppd/hpux/hpux/Users/cls-1.8/&lt;/A&gt; and modify the color for mounted directories?&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Mon, 02 May 2005 13:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535968#M222301</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-05-02T13:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535969#M222302</link>
      <description>bdf shows the mountpoints. I'm not sure what else you would need. Thed source for the mountpoint is the first element and the attachment point (mountpoint) is the last element. For mounts that are hierarchical (like /var/adm/sw) the mounpoint will have the fullpath. bdf also accepts a filename or any directory and the result will be the mountpoint for the given file/directory.&lt;BR /&gt; &lt;BR /&gt;bdf does make scripting a pain because of long source names such as NFS that get split onto two lines. There is an easy workaround though. This code snippet will handle split lines and remove the title line:&lt;BR /&gt; &lt;BR /&gt;bdf | while read SOURCE SIZ USED FREE PCT MOUNT&lt;BR /&gt;do&lt;BR /&gt;[ "$SIZ" = "kbytes" ] &amp;amp;&amp;amp; continue&lt;BR /&gt;[ "$SIZ" = "" ] &amp;amp;&amp;amp; read SIZ USED FREE PCT MOUNT&lt;BR /&gt;echo $SOURCE $SIZ $USED $FREE $PCT $MOUNT&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 May 2005 21:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535969#M222302</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-05-02T21:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535970#M222303</link>
      <description>Do you mean something like "TREE" command in MS-DOS?&lt;BR /&gt;&lt;BR /&gt;Interesting !!</description>
      <pubDate>Tue, 03 May 2005 01:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535970#M222303</guid>
      <dc:creator>Suraj Singh_1</dc:creator>
      <dc:date>2005-05-03T01:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535971#M222304</link>
      <description>My memory points to `find` with the "--mount" or "-xdev" option to not enter mountpoints. Something like `find . -xdev -print` (or "-ls" or "-exec ls -ld {} \;")&lt;BR /&gt;&lt;BR /&gt;Just tune this to how you like to see mountpoints.</description>
      <pubDate>Tue, 03 May 2005 02:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535971#M222304</guid>
      <dc:creator>C. Beerse_1</dc:creator>
      <dc:date>2005-05-03T02:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535972#M222305</link>
      <description>find ./ -xdev -type d</description>
      <pubDate>Tue, 03 May 2005 03:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535972#M222305</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2005-05-03T03:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: directory tree showing mountpoints</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535973#M222306</link>
      <description>Hi,&lt;BR /&gt;this might do what you request, but it takes forever to execute: try it with a directory starting point as "$1":&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;find "$1" -type f -print| while read line&lt;BR /&gt;do&lt;BR /&gt;        bdf "$line" | tail -1| awk -v filename=$line '{print filename " mounted on:" $NF}'&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;regards,&lt;BR /&gt;John K.&lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2005 03:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/directory-tree-showing-mountpoints/m-p/3535973#M222306</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2005-05-03T03:56:58Z</dc:date>
    </item>
  </channel>
</rss>

