Solaris 8 booting from wrong device

Hi,

I'm trying to boot solaris 8 box and it seems to boot off from wrong device:

ok boot -s
Boot device: /pci@1f,0/pci@1/scsi@8/disk@0,0:a  File and args: -s
SunOS Release 5.8 Version Generic_108528-20 64-bit
Copyright 1983-2003 Sun Microsystems, Inc.  All rights reserved.
ifconfig: plumb: hme0: Bad file number
moving addresses from failed IPv4 interfaces: hme0 (couldn't move, no alternative interface).
 Hostname: myhost
/dev/dsk/c0t0d0s1: No such device or address
The / file system (/dev/rdsk/c0t0d0s0) is being checked.
Can't open /dev/rdsk/c0t0d0s0
/dev/rdsk/c0t0d0s0: CAN'T CHECK FILE SYSTEM.
/dev/rdsk/c0t0d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the / filesystem. Run fsck
 manually (fsck -F ufs /dev/rdsk/c0t0d0s0). Exit the shell when
done to continue the boot process.


 Type control-d to proceed with normal startup,
(or give root password for system maintenance): 

However when I boot from cdrom I get the following:

# echo | format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,0/pci@1/scsi@8/sd@0,0

How can I get the server to boot from correct device?

Thanks!

go to your ok prompt do a devalias
and compares if any boot device alias has /pci@1f,0/pci@1/scsi@8/sd@0,0 in it.

If there isnt. Do a nvalias and map a new alias boot3(whatever) to /pci@1f,0/pci@1/scsi@8/sd@0,0

do a man on devalias
do a man on nvalias

I actually have /pci@1f,0/pci@1/scsi@8/disk@0,0

not sure if it should disk or sd?

sd did not work... got an error that cannot open boot device

hi,

boot from net or cdrom, then mount c1t0d0s0 and edit the vfstab.
change c0t0d0s* to c1t0d0s*

What taran says is correct. You need to do this. Btw Juha, I think you did a restore to this disk, correct?

Hi,

editing the vfstab did the trick... however I still can't boot up the server, I can run fsck when booting from CD, but when I try to boot the server to single user mode without CD it boots up and goes into maintenance mode, but does not let me ctrl+D or type the root password... it just hangs... :frowning:

I didn't restore the disk, it was just one very old disk that I would have needed. I've never had such a problem before :smiley:

Anyway thanks for your tips!

y can not boot from cdrom and then edit the vfstab?

if y then boot from cdrom , save the data and reinstall solaris.