HP 5187-2725 사용자 설명서
Cold-Installing HP-UX 11i v2
Retrieving Information after Cold-installing
Chapter 5
90
Retrieving Information after Cold-installing
After completing the cold-install, you can retrieve the information you
had previously saved onto another system. Here are some tips:
had previously saved onto another system. Here are some tips:
Creating a new
root home
directory
root home
directory
Consider creating a root home directory that is not
/
. 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
. This is especially important if you
are using LVM and
/home
is a separate volume.
Step 1. From the CDE login screen, select
Options
->
Command Line Login
and
login as root.
Step 2. Except on trusted systems, edit
/etc/passwd
to change the home
directory from root to
/homeroot
and save it.
Step 3. Create the
/homeroot
directory:
mkdir /homeroot
Step 4. Move root’s personal files (files beginning with
.
) to
/homeroot
:
mv /.[a-zA-Z]* /homeroot
Step 5. Exit and log in again as root.
Recovering files
Recover all the customized and personal files that you saved previously
by merging them manually. For example, do not overwrite
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.
or merge the old information into the new files.
Restoring
/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/home
find -depth | cpio -pdm /system1/home
•
If you backed it up to tape with
fbackup
, enter:
frecover -x -i /
system1/home
-v