Operating System - HP-UX
1836768 Members
2470 Online
110109 Solutions
New Discussion

Mount /usr FS by booting thr' OS Recovery CD

 
SOLVED
Go to solution
Bharat Katkar
Honored Contributor

Mount /usr FS by booting thr' OS Recovery CD

I have booted my system using Core OS DVD and went into Recovery Shell. There i mount root filesystem on /ROOT. I am able to access root file system but now i am not able to mount /usr fs on /ROOT/usr. I need that fs mounted for making change to certain file.
How do i specify the device file for the same?
Originaly it was /dev/vg00/lvol6 mounted on /usr. Disk Device was c2t1d0.
Thanks Bharat
You need to know a lot to actually know how little you know
5 REPLIES 5
Elmar P. Kolkman
Honored Contributor
Solution

Re: Mount /usr FS by booting thr' OS Recovery CD

If your root is correct, why not boot in LVM maintenance mode or single user mode? Then your /dev entries are a lot more usefull and you could activate vg00 and mount /usr...

How did you mount your root filesystem? If it's mounted read-only that might also be the cause of your problem.
Every problem has at least one solution. Only some solutions are harder to find.
Ralph Grothe
Honored Contributor

Re: Mount /usr FS by booting thr' OS Recovery CD

Bharat,

I haven't yet used the recovery shell from the bootable Core OS CD.
So what I suggest may be plain wrong.
But from my fiddling with various Linux boxes in recovery mode I can tell that the usual procedure is to do a chroot to the path where your Root partition/slice/LV is mounted.
However be warned, this is a oneway.
Please see man 1m chroot for usage.
Madness, thy name is system administration
KapilRaj
Honored Contributor

Re: Mount /usr FS by booting thr' OS Recovery CD

loadfil /sbin/ioscan
loadfil /sbin/vgimport
loadfil /sbin/mknod

Import the rootvg , activate and then try mounting /usr filesystem

I have'nt tried but looks logical !

Kaps
Nothing is impossible
Shaikh Imran
Honored Contributor

Re: Mount /usr FS by booting thr' OS Recovery CD

Hi,
As per the literal meaning of ur post
1) you mounted root on /ROOT
2) You try to mount /dev/vg00/lvol6 on the same Mountted F.S. i.e. /ROOT/usr ?
How is it Possible ?
Make a directory /oldusr and then try to mount /dev/vg00/lvol6 /oldusr.

Regards,

I'll sleep when i am dead.
Bharat Katkar
Honored Contributor

Re: Mount /usr FS by booting thr' OS Recovery CD

HI All,
Thanks for support.
Got the problem resolved. It was actually vey simple.
I booted into single user mode, mounted /usr FS on /mnt instead of /usr and then used mv command to restore back the file.( from .org to original name )
I was not able to do that by mounting /usr FS on /usr.

Thanks a lot
Bharat
You need to know a lot to actually know how little you know