Creating a bootable disk in 9.10

I am trying to copy a HP-UX disk. Both the OS and H/W are quite old
HP-UX hpeval3 B.09.10 A 9000/382 080009789a46

I have a 1.5Gb disk and a new 2Gb disk. I have been using the following method to create the copy, which must be a bootable disk.

#mediainit /dev/rdsk/cEd1s0

(2Gb disk) cEd0s0 is the 1.5gb existing boot disk.

#newfs -s 1800000 /dev/rdsk/cEd1s0 SEAGATE_35151N

Remainder for swap (think this is maybe where I am going wrong) I have
Tried without the size option as disktab suggests it will be worked out.
I have defined the disktype in the disktab file which came from the disk supplier see below.

#mount /dev/dsk/cEd1s0 /mnt
#fbackup -o -i / -e /mnt -f - | (cd /mnt; frecover -Xrf -)

I then edit the checklist file on the newly copied disk and change the root disk from cEd0s0 to cEd1s0.

Power cycle, reset & pick the new disk from the list.

It boots up a valid HP OS but fails with no swap space configured.
I am considering doing a dd though this will loose me the extra space, but wondered if I am missing something first?

Entry in disktab:-
SEAGATE_ST32151N:\
:2147.5 MB:ns#30:nt#25:nc#2659:\
:s0#1994752:b0#8192:f0#1024:\
:se#512:rm#5400:

Greetings,
I have no idea what kind of box you are dealing with since I know only serie 700 and 800, and nerver heard of 9.10 (I started with 8.00) so 2 way of seing things a serie 800 before 10.XX didnt have tools to make bootable backup, you need to boot from the CD...
a serie 700 with 9.05 and on had commands to create bootable tapes...
In your case, Im not sure what your goal is : have a spare disk to boot from? or replace existing?
Have you tried a copy of disk using dd (this works well!) only trouble in this case you will loose 500 MB...

Ah but thinking of it...
You used mediainit to initialize the media but did you use lifinit after? to create a lif volume

About dd:
dd if=/dev/dsk/cEd0s0 of=/dev/dsk/cEd1s0 bs=1024k

vbe thanks,
I have considered dd as that is my normal method when copying like for like disks on UNIX systems (more Solaris than anything else), just was hoping to use the slightly larger capacity.

I have not used or heard of a lif volume or lifinit. Will look into this. My objective is to have an alternative boot disk, so dd really is looking like the way to go.

I have moved office since I received the media on CD, they seem to have disappeared since.

With a bit of luck, you should have a script in /etc called mkrs ( for make a recovery system)

That script does exist :cool:

its more than 12 years since the last time I used mkrs...
I used it for dds tape for 712 and 715 boxes..
I remember it was said able to use any device (cartridge, magneto-optico, DDS DAT, and other hard disks)
So why not give it a try?
something like mkrs -v -f/dev/dsk/cEd1s0 -r/dev/dsk/cEd0s0 [-mseries] the last option was for the case it failed and I had to give -m700 (for serie 700) so it would be 300 for you...

Cheers,
I have just re-ran mediainit for the umpteenth time. Going to try this lifinit if that fails have a go at the mkrs. If all that fails there is always trusty dd

Many thanks for your help and time.

Start by seing what is on your boot disk:

On a 10.20 I get:
civ:/home/vbe $ lifls -l /dev/dsk/c1t6d0
volume ISL10 data size 7984 directory size 8 96/05/28 04:10:13
filename type start size implement created

ODE -12960 584 848 0 01/10/11 16:50:53
MAPFILE -12277 1432 128 0 01/10/11 16:50:53
SYSLIB -12280 1560 353 0 01/10/11 16:50:53
CONFIGDATA -12278 1920 231 0 01/10/11 16:50:53
SLMOD -12276 2152 132 0 01/10/11 16:50:53
SLDEV -12276 2288 202 0 01/10/11 16:50:53
SLDRIVERS -12276 2496 475 0 01/10/11 16:50:53
SLSCSI -12276 2976 117 0 01/10/11 16:50:53
MAPPER -12279 3096 233 0 01/10/11 16:50:53
IOTEST -12279 3336 208 0 01/10/11 16:50:53
PERFVER -12279 3544 198 0 01/10/11 16:50:53
PVCU -12801 3744 64 0 01/10/11 16:50:53
SSINFO -12286 3808 2 0 08/06/26 18:01:07
ISL -12800 3816 240 0 96/05/28 04:10:13
AUTO -12289 4056 1 0 96/05/28 04:10:13
HPUX -12928 4064 848 0 96/05/28 04:10:13
LABEL BIN 4912 8 0 07/11/13 10:33:09
civ:/home/vbe $

On a 9.XX you should see at least:
SYSHPUX
SYSDEBUG
SYSBACKUP
SYSTEST

We bought a 1Gb disk in the end and all is well using my original method

Thanks.