HP-UX 11i v3 Installation and Update Guide, September 2007 (Update 1 Release)

Create a New Root Home Directory
Consider creating a root home directory that is not /. Doing this keeps the user root
dot files out of the /directory. Make sure it is on the root volume by calling it something
like /homeroot. Doing this is especially important if you are using Logical Volume
Manager (LVM) and /home is a separate volume.
1. Log in as root.
2. Except on trusted systems, edit /etc/passwd to change the home directory from
root to /homeroot and save it.
3. Create the /homeroot directory:
mkdir /homeroot
4. Move root's personal files (files beginning with . ) to /homeroot:
mv /.[^.]* /homeroot
5. Exit and log in again as root.
Recover Files
Recover all the customized and personal files that you saved previously by merging
them manually. For example, do not overwrite /etc/passwd with your old version.
Instead, either paste in entries from your old files or merge the old information into the
new files.
Restore /home
If you had a local home directory, you can restore it as follows:
For instance, if you copied it to /backup/system1/home, enter these commands:
cd /backup/system1/homefind . -depth | cpio -pdm /system1/home
If you backed it up to tape with fbackup, enter:
frecover -x -i /system1/home -v
Restore Other Files
Carefully use the same techniques to restore other files and directories, such as /usr,
/local, and /opt. For help in importing entire volume groups, refer to either HP-UX
System Administrator's Guide or Managing Superdome Complexes.
The commands cited in this section do not write over newer files, so your new operating
system and any files you update are well protected.
The Next Step
Continue with Chapter 7: “Installing HP Applications and Patches” (page 107).
86 Cold-Installing HP-UX 11i v3 From Media