Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to make a disk bootable

Status
Not open for further replies.

rankar

IS-IT--Management
Jul 30, 2001
60
US
I am receiving disk errors for /var/mail, the filesystem that this falls in is /. I have copied all the files in / to another disk that is mounted on this server. My question is how do I create another / filesystem, and how do I make it bootable?

Thank you,
-Randy
 
You must run installboot to load a new bootblk on that disk, not loading a bootblk will leave this disk in an unbootable state as the boot strap program is contained within the bootblk, and this in turn is what loads the boot file called ufsboot after interfacing with the OBP (Open Boot PROM).
You can do this from your current booted disk or you may choose to boot off from cdrom via ok> boot cdrom -sw (single-user mode, writeable mode off of cdrom's mini-root), if you choose to get bootblk from your current disk:
the location of the bootblk in Solaris 2.5 or higher is under:
# /usr/platform/`uname -i`/lib/fs/ufs/bootblk
while in Solaris 2.4 or lower it's at:
# /usr/lib/fs/ufs/bootblk
e.g. if new boot disk is at target 1 on controller 0, slice s0:
# /usr/sbin/installboot /usr/platform/`uname -i`
/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0

If you choose to get bootblk from your cdrom image, x is solaris CD version:
ok> boot cdrom -sw #installboot /cdrom/solaris_2_x_sparc/s0/export/exec/sparc.Solaris_2.x /usr/platform/`uname -i`/lib/fs/ufs/bootblk
/dev/rdsk/c0txd0s0

Also don't forget to change OBP boot-device to new value, check with devalias.

Hope it helps,

Regards,

Carlos Almeida,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top