- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: filesystems under root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:34 AM
тАО11-25-2003 07:34 AM
can't seem to find an answer. Maybe I can't
find the right way to ask the question.
How can I easily find out which filesystems are
under root and which have their own mountpoint.
For instance:
/home/gmoore1> bdf /
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 532792 511800 51% /
/home/gmoore1> bdf /etc
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 532792 511800 51% /
/home/gmoore1> bdf /var
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol8 8904704 1528136 7319776 17% /var
/etc is under the / directory, but /var is not.
This came up because a DBA filled up the / directory, and I couldn't quickly find what
sub-directory he filled up. The usually suspect
is /tmp, but like /var, it is a separate
mountpoint and not included in the totals for
the / directory.
How do I easily find out what is a sub-directory
of the / directory, and what is a separate
mountpoint?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:40 AM
тАО11-25-2003 07:40 AM
SolutionThis command will tell you which are the mounted file systems.
# ls -al /
This command will tell you call files and subdirectories on root (/) including mount_points. All directories except the one mounted are subdirectories in root file system.
Also, to see which subdirectory on root (/) holds the maximum space, use this command:
# du -k -x / | sort -rn | pg
This will list and sort all subdirectories in root, excluding the mount points.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:40 AM
тАО11-25-2003 07:40 AM
Re: filesystems under root
Well if you just do a bdf without any options, you will see all of your mounted file systems.
If you are in root and do and ll | more , then you can page through and see everything (files and sub-dirs). If you look at the sub-dir and it does not show up in bdf then it is not mounted seperately.
Hope this helps!
-Bryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:40 AM
тАО11-25-2003 07:40 AM
Re: filesystems under root
ll -iF
...directories shown will have a "/" appended, and the inode of a filesystem mountpoint will always be 2. A standard directory under the root directory will have an inode number >2.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:56 AM
тАО11-25-2003 07:56 AM
Re: filesystems under root
be "not possible" except by manually comparing
two lists (a bdf and ls -al, for example),
or using some knowledge of what inodes equal
to 2 in a ll -iF means and again manually
parsing the list.
Maybe that's why I've never found a clean,
simple answer!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-25-2003 07:57 AM
тАО11-25-2003 07:57 AM
Re: filesystems under root
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 12:41 AM
тАО11-26-2003 12:41 AM
Re: filesystems under root
ll -iF | grep dr | grep -v '2 dr'
And those that are mounted...
ll -iF | grep ' 2 dr'
(put a space before the 2)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 03:00 AM
тАО11-26-2003 03:00 AM
Re: filesystems under root
find / -xdev -size +2048 -print 2>/dev/null | xargs ll -d
This command will find all files in the '/' filesystem that are larger than 1MB (i.e. 2048 512byte blocks) and then using xargs, produce a ll listing for it. The -xdev option tells find not to cross (traverse) mount points.
As long as you a root when you run this, you should find all large files. You can also change the threshold at which find reports a largefile by increasing the +2048 number. i.e. to find files larger than 10MB make th e number +20480.
JL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2003 03:07 AM
тАО11-26-2003 03:07 AM
Re: filesystems under root
/stand
/
/home
/opt
/tmp
/usr
/var
and you didn't mount it, then it's a subdir of root.
these are the default mount points for hpux.