How to change boot disk on Sun Notes: http://www.itworld.com/AppDev/616/UIR951001openboot/page_1.html devalias lists what's currently defined: ok devalias screen /iommu@0,10000000/sbus@0,10001000/cgsix@3,0 ttyb /obio/zs@0,100000:b ttya /obio/zs@0,100000:a keyboard! /obio/zs@0,0:forcemode keyboard /obio/zs@0,0 audio /iommu/sbus/SUNW,CS4231 floppy /obio/SUNW,fdtwo scsi /iommu/sbus/espdma@5,8400000/esp@5,8800000 net-aui /iommu/sbus/ledma@5,8400010:aui/le@5,8c00000 net-tpe /iommu/sbus/ledma@5,8400010:tpe/le@5,8c00000 net /iommu/sbus/ledma@5,8400010/le@5,8c00000 disk /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 cdrom /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@6,0:d tape /iommu/sbus/espdma@5,8400000/esp@5,8800000/st@4,0 tape0 /iommu/sbus/espdma@5,8400000/esp@5,8800000/st@4,0 tape1 /iommu/sbus/espdma@5,8400000/esp@5,8800000/st@5,0 disk3 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0 disk2 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@2,0 disk1 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@1,0 disk0 /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@0,0 Nut what we want (on an external disk pack) is not on our list so we need to create a new alias (disk): First remove the old definition: ok nvunalias disk Now determine which disk we want to use: ok probe-scsi-all /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000 Target 9 Unit 0 Disk SEAGATE ST318404LSUN18G 42070023T0F6RK Copyright (c) 2000 Seagate All rights reserved Target a Unit 0 Disk SEAGATE ST318203LSUN18G 034A9952905189 Copyright (c) 1999 Seagate All rights reserved Target b Unit 0 Disk SEAGATE ST318203LSUN18G 034A9936399013 Copyright (c) 1999 Seagate All rights reserved Target c Unit 0 Disk SEAGATE ST318404LSUN18G 52210018T06ALG Copyright (c) 2000 Seagate All rights reserved Target d Unit 0 Disk SEAGATE ST318203LSUN18G 034A9936404012 Copyright (c) 1999 Seagate All rights reserved Target e Unit 0 Disk FUJITSU MAJ3182M SUN18G 08040048P23835 /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000 Target 6 Unit 0 Removable Read Only device TOSHIBA XM-4101TASUNSLCD175506/24/95 In this case we want to use "Target 9" so note the path "/iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000" above target 9. Now we need to format the path string for nvalias. format: name@address,arguements This means disk partition (slice) a on scsi disk at target 9, logical unit 0 on the fas device at slot 2, offset 8800000 which is connected to sbus (system bus) at slot 0 offset 10001000 The new alias in this case would be: /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a Some times this can be a bit dodogy with all the different kinds of Sparc hardware out there. On good way to verify how your path names work with your hardware is to boot single user off of an install cd and use the format command to determine the path of the drive you wish to add: ok boot cdrom -s INIT: SINGLE USER MODE # format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c1t9d0 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0 1. c1t10d0 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@a,0 2. c1t11d0 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@b,0 3. c1t12d0 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@c,0 4. c1t13d0 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@d,0 5. c1t14d0 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@e,0 Since target 9 is what we want we copy down the path name format supplies us: /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0 again we test this by halting and attempting a boot from that path: ok boot /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a Resetting ... SPARCstation 5, No Keyboard ROM Rev. 2.24, 256 MB memory installed, Serial #7843032. Ethernet address 8:0:20:77:ac:d8, Host ID: 8077acd8. Rebooting with command: /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a Boot device: /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a File and args: Type help for more information Ok it's a good test so now let's set an alias for it: ok devalias disk9 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a ok devalias disk10 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@10,0:a Confirm it was set: ok devalias disk10 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@10,0:a disk9 /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a Now we need to setup our Sun to always boot off of these disks by default since they will be a mirror set. ok printenv Parameter Name Value Default Value auto-boot? true true boot-device disk net disk net Normally Suns are set to boot disk first and then attempt to bootp from the network but we need to change the boot order from "disk" to disk9 first then disk10: ok setenv boot-device disk9 disk10 boot-device = disk9 disk10 Now try a boot! ok boot Boot device: /iommu@0,10000000/sbus@0,10001000/SUNW,fas@2,8800000/sd@9,0:a File and args: viola!