The second disk that I'm trying to make bootable is to hold another version of Solaris (9).
I've created the partitions with format and labeled the disk - created the filesystems with newfs - created and mounted the directories.
...but I think I've missed something out like using fdisk to create a bootable partition (8 I think?). I'm not sure how to do this; do I need to create partition 8 with format first? What fdisk command do I need for creating the boot slice?
Thanks for the reply. I've just tried the installboot command again (I've previously wiped the drive - this is about my third attempt ) but I got the following error:
# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t2d0s0
/dev/rdsk/c0t2d0s0: Not a character device
The tape was created with ufsdump and looks like a normal directory structure from / when you ls it.
I've just gone through the list of files and directories at this level and added them to the restore (ufsrestore if /dev/rmt/0) and then extracted them.
I had previously created the /usr, /opt & /var directories but I assume the restore will overwrite them? Will this confuse my mount points? Will I have to umount them and re-mount?
I tried the probe-scsi command to make sure that I was trying to boot from the right partition but it complained and error'd until I restarted the box.
Anyway, I tried to the following command:
OK> boot disk2:0
Then a few minutes later it compained heavily. I couldn't catch all the information because I was on the console but it said stuff like:
"cannot assemble drivers for root"
"trying to mount vfs"
"kernel panic" - followed by lots of numbers...
I'm surprised that it mentioned vfs because I thought I was using ufs...
The restore is actually the OS that the hardware came with - for some reason it was decided to backup this and install version 8.
We did find that the vfstab file was wrong but the disk is still unbootable - I think it might have something to do with the filesystem layout being different to the original installation - everything was under the root but now we have separate mount points for the /usr, /var, /opt etc directories...
Would the difference in filesystem layout make the disk unbootable?
as far as i know you cannot use /etc as an own partition... the kernel initialisation and the boot process need many files from there like /etc/system, the vfstab, rc/init scripts...
c1t0 is the disk that's currently 'live' and contains Solaris 8. We're attempting to build a dual OS system.
The restored version was originally on the other disk - would this cause a problem now? Does the restored kernel need to be rebuilt because the hardware layout is different?
what do you exactly mean with a different hardware layout? you said that it is the same hardware, didn't you?
anyhow, you can force a kernel update/reconfiguration with the "-r" option at boot time
"boot disk2:0 -r"
have you tried to restore your backup like it was before, everything in one slice? perhaps your backup is corrupt. normally, if it is the same hw-platform, you just need to restore the file-systems, edit your /etc/vfstab, install a bootblock and everything works again.... do you have any /etc/system entries that point to the old disk, like "rootdev:/dev...."
i would try to restore the backup in one slice, to see if it would work, after that you can go step by step to see what's not working...