HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)
h
hpux(1M) hpux(1M)
drwxr-xr-x 2 0 3 1024 krs/
drwxr-xr-x 2 0 0 65536 lost+found/
drwxr-xr-x 5 0 3 1024 nextboot/
-rw------- 1 0 0 12 rootconf
-rw-r--r-- 1 0 3 1892 system
-rwxr-xr-x 4 0 3 17163704 vmunix*
Getting The Version
The -v option is used to get the version numbers of
hpux.
ISL> hpux -v
Release: 10.00
Release Version:
@(#) X10.20.B HP-UX() #1: Dec 4 1995 16:55:08
DEPENDENCIES
Workstations Only
The restore operation is provided as a recovery mechanism in the event that a disk becomes totally
corrupted. It copies data from a properly formatted bootable tape to disk. When this tape contains a
backup image of the disk, the entire disk is restored. To create a properly formatted tape (DDS ONLY),
the following commands should be executed:
dd if=/usr/lib/uxbootlf of=/dev/rmt/0mn bs=2k
dd if=/dev/rdsk/1ss of=/dev/rmt/0m bs=64k
The first dd puts a boot area on the tape, making it a bootable image (see dd(1)). Once the boot image is
on tape, the tape is not rewound. The next
dd appends an image of the disk to the tape. The entire pro-
cess takes about one hour for a 660 MB HP 2213 disk. To avoid later problems with
fsck after the disk
is restored, bring the system to single user mode and type
sync a few times before doing the second
dd
(see fsck(1M)). Once created, the tape can be used to completely restore the disk:
1. Insert the tape into the tape drive.
2. Instruct the machine to boot to ISL from the tape. This is usually done by specifying
scsi.3 as
the boot path.
3. Enter the following in response to the ISL prompt:
ISL> hpux restore disk(scsi.1;0)
This restores the disk image from the tape to the actual disk at scsi.1. Any existing data on the disk
will be lost. This command destroys the contents of the device specified by devicefile. The restoration
process takes about one hour for a 660 MB drive.
NOTE: There is a 2 GB limit on the amount of data that can be restored. The tape and disk must be on
the boot device interface.
Also, this command may be replaced in the future by superior installation and recovery mechanisms. At
that time, this command will be removed.
SEE ALSO
boot(1M), fsck(1M), init(1M), isl(1M), pdc(1M), errno(2), a.out(4), inittab(4), magic(4).
Section 1M−−292 Hewlett-Packard Company − 9 − HP-UX 11i Version 2: September 2004