Operating System - HP-UX
1834163 Members
2551 Online
110064 Solutions
New Discussion

df to find mounted filesystems

 
Chern Jian Leaw_1
Occasional Contributor

df to find mounted filesystems

Hi,

I had used df to find the mounted points of all subfilesystems within a filesystem:
#cd/fs36
whereby /fs36 is the parent filesystem

#df *
Fileystem 512-blocks .... %Iused Mounted on
/dev/hda4 ... 100 /

I was wondering is there a way which I can find the name of the filesystem which is mounted on / within the filesystem /fs36?

Thanks
4 REPLIES 4
Peter Kloetgen
Esteemed Contributor

Re: df to find mounted filesystems

Hi,

you could simply find out by looking into the file: /etc/fstab

there you will find the needed information.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Michael Tully
Honored Contributor

Re: df to find mounted filesystems

Hi,

The /etc/fstab file should contain all known 'current' mount points. If they are missing from here, you will need to look at your 'vgdisplay -v' output to look for your logical volumes. From these you may now which ones to mount. (Hopefully you don't have raw logical volumes being used)

Cheers
~Michael~
Anyone for a Mutiny ?
Stefan Farrelly
Honored Contributor

Re: df to find mounted filesystems


cat /etc/mnttab
Im from Palmerston North, New Zealand, but somehow ended up in London...
Bill McNAMARA_1
Honored Contributor

Re: df to find mounted filesystems

# mount -p

to print the currently mounted filesystems and mount options.

You can then compare this to the /etc/fstab (mounts on boot up, not necessarily current)

If you have added filesystems/ reconfigured mounts online, you can quickly update your /etc/fstab via
# mount -p > /etc/fstab
which will avoid tipos.

Later,
Bill

It works for me (tm)