Operating System - HP-UX
1833137 Members
3641 Online
110051 Solutions
New Discussion

Re: Mounting filesystems in recovery mode

 
Jeffrey Shannon
Contributor

Mounting filesystems in recovery mode

I was wondering how to mount file systems while in the recovery mode (running a recovery shell).
4 REPLIES 4
Bill McNAMARA_1
Honored Contributor

Re: Mounting filesystems in recovery mode

Recovery shell from CD?
or hpux -is

You'll have to vgchange -a y vg00

(on the cd shell, look at your boot disk device files - they'll all have an s0 s1... device file.. try to mount that)

Later,
Bill
It works for me (tm)
Marcin Wicinski
Trusted Contributor

Re: Mounting filesystems in recovery mode

Hi,
Befor mounting file systems and changing vg you have to import command files from CD (use one of tools from recovery menu).

Later,
Marcin Wicinski
Sanjay_6
Honored Contributor

Re: Mounting filesystems in recovery mode

Hi Jeff,

If you are talking about mounting filesystem using your recovery CD, take a look at the thread below,

http://us-support.external.hp.com/cki/bin/doc.pl/sid=73217e931bab0d89ee/screen=ckiDisplayDocument?docId=200000047869323

Hope this helps.

Regds
Raul_10
Occasional Contributor

Re: Mounting filesystems in recovery mode

Hi, this is what you have to do after scaping to shell [x]:

# chroot_lvmdisk (this is a script)

# cd ROOT; chroot /ROOT /sbin/sh
# vgchange -a y /dev/vg00
# swapon /dev/vg00/lvol2 (this is default check with lvlnboot -v)
# fsck /dev/vg00/rlvol6 (if this is /usr)
# mount /dev/vg00/lvol6 /usr

and do this (fsck, mount) for all the FS you want to (/var, /tmp, ...).

When everything is done don??t shutdown, use:

# umount -a
# vgchange -a n /dev/vg00

exit and reboot from the recovery shell main menu

This is all for 11.00, in 10.20 I think the script is not chroot_lvmdisk.