Operating System - HP-UX
1854662 Members
7235 Online
104102 Solutions
New Discussion

Re: Finding the last mountpoint

 
Michael F. Dick
Advisor

Finding the last mountpoint

Hi there,

How can I find out where a filesystem was previously mounted. (e.g. splitting bcv's and mounting on a different host)

Michael
Well, thats all just my $.02
5 REPLIES 5
boley janowski
Trusted Contributor

Re: Finding the last mountpoint

im guessing the /etc/fstab is not an option, or an old backup of the /etc/fstab. Wishful thinking. Some bcv setups use something along the lines of a database created based on how the disk are allocated and this may be an option. I would look for old copies of bdf or /etc/fstab.

good luck
Volker Borowski
Honored Contributor

Re: Finding the last mountpoint

Unless it has already been re-mounted, you can do an fsck which will tell you where it was last mounted.

Volker
Ravi_8
Honored Contributor

Re: Finding the last mountpoint

if u have an old backup, u can look into path of any file in that filesystem or fstab file
never give up
Chin Guan
Valued Contributor

Re: Finding the last mountpoint

If it's a HFS file system, fsck will tell you the last mounted mount point. e.g.

fsck -F hfs /dev/vgdata/lvol1
** /dev/vgdata/lvol1
** Last Mounted on /MountPoint


But fsck on a vxfs file system will not tell you this information.
Michael F. Dick
Advisor

Re: Finding the last mountpoint

Sorry, here is some more info: It's a vxfs filesystem. Due to the bcv backups, we have to create a volume group on the backup host (raw device backup is not an option). Getting the last mount point would ease the administrative work to get the bcv backup going. Is there any way, I can get the mount point out of the superblock (e.g. dd)??

Thanks again
Well, thats all just my $.02