Jump to content

HP-UX: Difference between revisions

From Smithnet Wiki
 
(One intermediate revision by the same user not shown)
Line 110: Line 110:
which should produce a device file like "/dev/floppy/c0t1d0".
which should produce a device file like "/dev/floppy/c0t1d0".


Format a floppy (DOS 1.44 MB):
Format a floppy (1.44 MB) for use with HFS and mount filesystem:
  mediainit -f 16 /dev/rfloppy/c0t1d0
  mediainit -f 16 /dev/rfloppy/c0t1d0
newfs -F hfs /dev/rfloppy/c0t1d0
mount /dev/rfloppy/c0t1d0 /floppy


where 16 is the format type listed in the floppy command's man page. Use 26 for 1.6 MB.
Here, 16 is the format type listed in the floppy command's man page. Use 26 for 1.6 MB.


Read/write data to device file with tar, or access DOS formatted files with:
Access MS-DOS formatted files (disks cannot be formatted in HP-UX) with:
  dosls /dev/rfloppy/c0t1d0:/somedir
  dosls /dev/rfloppy/c0t1d0:/somedir
  doscp /tmp/somefile.txt /dev/rfloppy/c0t1d0:/
  doscp /tmp/somefile.txt /dev/rfloppy/c0t1d0:/

Latest revision as of 21:05, 14 July 2026

Software

OS Installation images:

Other software archive:

Boot

Processor Dependent Code

Interrupt PDC boot process by keyboard in 10s, to enter Boot Console Handler (BCH):

To show current options and help, and get to main menu:

display
help
main

Show boot path:

path

Boot from primary or alternative paths:

boot PRI
boot ALT

Search for boot devices:

search

Search for IPL devices:

search ipl

Boot from one of the paths above with Path Number:

boot P1

Set primary boot path to SCSI ID 6:

path pri P2

Enter configuration menu:

configuration

Show/change monitor configuration:

monitor list

Show/change time configuration:

time

Enter information menu:

information

Enter service menu:

service

Initial System Loader

Once a boot command is sucessful, the ISL is read from disk, and can be interacted with if chosen. Run Offline Diagnostics Environment (ODE):

ode

Or the HP-UX Secondary System Loader which starts the HP-UX kernel (vmunix):

hpux

possibly with flags for single user, maintenance, or a custom kernel:

hpux –is
hpux –lm
hpux (;0)/stand/vmunix.prev

When booting off CD-ROM to install:

hpux (;0):INSTALL

See help for more.

Installation

TBC

Support Plus

mkdir /cdrom
ioscan -fnC disk
mount -F cdfs -o ro -r /dev/dsk/c1t2d0 /cdrom

See documents:

* /cdrom/USRGUIDE.PDF
* /cdrom/TEXT_FILES

Administration

See also:

Hardware

If new devices are not detected:

cd /dev
insf -e

Show all devices:

ioscan -f

Scan for disks:

/usr/sbin/ioscan -d sdisk

Scan for a floppy drive:

ioscan -fnC floppy

which should produce a device file like "/dev/floppy/c0t1d0".

Format a floppy (1.44 MB) for use with HFS and mount filesystem:

mediainit -f 16 /dev/rfloppy/c0t1d0
newfs -F hfs /dev/rfloppy/c0t1d0
mount /dev/rfloppy/c0t1d0 /floppy

Here, 16 is the format type listed in the floppy command's man page. Use 26 for 1.6 MB.

Access MS-DOS formatted files (disks cannot be formatted in HP-UX) with:

dosls /dev/rfloppy/c0t1d0:/somedir
doscp /tmp/somefile.txt /dev/rfloppy/c0t1d0:/

Desktop

Enable/disable auto-start:

/usr/dt/bin/dtconfig -e
/usr/dt/bin/dtconfig -d

Control which X servers to start:

/etc/dt/config/Xservers

Errors:

/var/dt/Xerrors

Networking

Show network interfaces:

lanscan -i
ifconfig lan0

Configuration files for IPv4 / IPv6:

  • /etc/rc.config.d/netconf
  • /etc/rc.config.d/netconf-ipv6

Disks

Show physical disk info:

ioscan -funC disk

Software

Show software bundles:

swlist -i

Other