可能需要标识系统中的设备,以确定引导系统的合适设备。
需要执行以下操作后,才能安全地使用 probe 命令来确定与系统连接的设备。
将 PROM auto-boot? 参数更改为 False。
ok setenv auto-boot? false |
发出 reset-all 命令以清除系统注册。
ok reset-all |
您可以使用 sifting probe 命令查看系统提供的 probe 命令:
ok sifting probe |
如果在未清除系统注册的情况下运行 probe 命令,系统将会显示以下消息:
ok probe-scsi This command may hang the system if a Stop-A or halt command has been executed. Please type reset-all to reset the system before executing this command. Do you wish to continue? (y/n) n |
标识系统中的设备。
ok probe-device |
(可选)如果希望让系统在断电或使用 reset 命令之后重新引导,请将 auto-boot? 参数重置为 True。
ok setenv auto-boot? true auto-boot? = true |
将系统引导至多用户模式。
ok reset-all |
以下示例显示如何标识与 Ultra 10 系统连接的设备。
ok setenv auto-boot? false auto-boot? = false ok reset-all Resetting ... Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 333MHz), No Keyboard OpenBoot 3.15, 128 MB memory installed, Serial #10933339. Ethernet address 8:0:20:a6:d4:5b, Host ID: 80a6d45b. ok probe-ide Device 0 ( Primary Master ) ATA Model: ST34321A Device 1 ( Primary Slave ) Not Present Device 2 ( Secondary Master ) Removable ATAPI Model: CRD-8322B Device 3 ( Secondary Slave ) Not Present ok setenv auto-boot? true auto-boot? = true |
或者,您可以使用 devalias 命令标识 可能 与系统相连接设备的设备别名和关联路径。例如:
ok devalias screen /pci@1f,0/pci@1,1/SUNW,m64B@2 net /pci@1f,0/pci@1,1/network@1,1 cdrom /pci@1f,0/pci@1,1/ide@3/cdrom@2,0:f disk /pci@1f,0/pci@1,1/ide@3/disk@0,0 disk3 /pci@1f,0/pci@1,1/ide@3/disk@3,0 disk2 /pci@1f,0/pci@1,1/ide@3/disk@2,0 disk1 /pci@1f,0/pci@1,1/ide@3/disk@1,0 disk0 /pci@1f,0/pci@1,1/ide@3/disk@0,0 ide /pci@1f,0/pci@1,1/ide@3 floppy /pci@1f,0/pci@1,1/ebus@1/fdthree ttyb /pci@1f,0/pci@1,1/ebus@1/se:b ttya /pci@1f,0/pci@1,1/ebus@1/se:a keyboard! /pci@1f,0/pci@1,1/ebus@1/su@14,3083f8:forcemode keyboard /pci@1f,0/pci@1,1/ebus@1/su@14,3083f8 mouse /pci@1f,0/pci@1,1/ebus@1/su@14,3062f8 name aliases |