1832552 Members
6153 Online
110043 Solutions
New Discussion

/usr got mounted over

 
SOLVED
Go to solution
Abdul Rahiman
Esteemed Contributor

/usr got mounted over

Hi,

I have got a catch22 problem here.
One of our new network trainess was doing some testing with our DNS server which runs Solaris 8 and mounted an nfs filesystem on /usr.

Now, my machine is kind wedged and I can't run any commands (including mount,umount,ls,df etcc). Obviously the PATH is set to /usr/bin & /usr/sbin. And I only have one root session previously started by another admin. No new connections can be made like ftp,ssh etc.. because they all try to run processes over from /usr/bin.

Is there anyway I can recover this machine without rebooting and get the /usr remounted ??

regds,
Abdul.
No unix, no fun
4 REPLIES 4
Navin Bhat_2
Trusted Contributor

Re: /usr got mounted over

Are you willing to go to single user mode?
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: /usr got mounted over

Explicitly use the statically linked commands in /sbin. e.g. /sbin/mount, /sbin/umount, ...
If it ain't broke, I can fix that.
RAC_1
Honored Contributor

Re: /usr got mounted over

Thank God, HP-UX has /sbin--statically linked.

Does solaris has it?? If yes, you can usr umount command in there.

If it would have been HP-UX, it would have been /sbin/umount /mount_point.
Otherwise only options seems to be reboot.

Anil
There is no substitute to HARDWORK
Abdul Rahiman
Esteemed Contributor

Re: /usr got mounted over

Thanks Clay,

I just used the umount command from the statically linked directories and I was able to unmout the /usr and re-mount the original /usr.

Yes, there is /sbin on Solaris 8 and has essential commands like mount,umount,mountall,init etc..

Thanks again..
Abdul.
No unix, no fun