Operating System - HP-UX
1827439 Members
5344 Online
109965 Solutions
New Discussion

Re: swinstall mount option

 
SOLVED
Go to solution
Bosco Tsang
Valued Contributor

swinstall mount option

I am using a mounted directory (actually mapped to an XP512) as the depot directory. Since then, I have problem when I use swinstall to install software out of that directory. It always generate error for mounting the filesystems. I have to go into option to disable the mount option before I can do so. I am wonder ...if it is okay for me to turn off this option for good? If so, how to put in the default value so I don't need to type it in everytime? Or, is there any better way around this?

Thanks,
Bosco.
7 REPLIES 7
Marco Santerre
Honored Contributor
Solution

Re: swinstall mount option

CHanging the mount option usually is not a problem unless the mount problem happens to be on one of the directory where you are installing softwares.

Your problem is generated by your /etc/fstab. Basically, it is telling that it cannot mount all the filesystems defined in your /etc/fstab. You should take a look at your fstab to make sure only what you need is in there.

Then once that is fixed, you shouldn't have a problem with your mount option in swinstall
Cooperation is doing with a smile what you have to do anyhow.
John Palmer
Honored Contributor

Re: swinstall mount option

I can't see any problem in disabling the mount_all_filesystems check if it's causing you problems.

You can do so in /var/adm/sw/defaults (system-wide) or $HOME/.swdefaults (user specific). See man swinstall for full details.

Regards,
John
sebastien_3
New Member

Re: swinstall mount option

I bosco

If you get a failure message it's probabily due to the fact you have an FS in your /etc/fstab that is actually umountable.
check for the sanity of this file.

you can always perform swinstallation this -x mount_filesystems=false. check man swinstall.
Rita C Workman
Honored Contributor

Re: swinstall mount option

First, did you register this new depot
swacl -l depot

Just to get you started,
Rita
James R. Ferguson
Acclaimed Contributor

Re: swinstall mount option

Hi:

If you wish to change this option, globally, do so in '/var/adm/sw/defaults'.

To do this only for a user, edit: '$HOME/.sw/defaults'

Regards!

...JRF...
Sridhar Bhaskarla
Honored Contributor

Re: swinstall mount option

Hi Bosco,

It is better not to disable this option. You want to make sure that all of your file systems are mounted so that the software won't get installed into root's file system. I would suggest to fix the problem instead of turning this option off. Comment/remove out the file system that is not mounted from /etc/fstab.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: swinstall mount option

Hi (again) Bosco:

There should be no problem setting 'mount_all_filesystems=false'. The man pages for 'swinstall' note that 'mount_all_filesystems' option is merely "a policy helps to ensure that files are not loaded into a directory that may be below a future mountpoint."

Regards!

...JRF...