Sunday, April 01, 2007

Create a Device Alias with nvedit

If you use nvedit, it's easier to make changes to a device alias or a device path. Having to retype a device path can be quite aggravating to do.

Make sure that use-nvramrc variable is set to true. nvedit edits the NVRAMRC.

Here's the setup
ok printenv (get the variable name and its syntax)
ok setenv use-nvramrc? true
ok nvedit
devalias disk0 /pci@9,600000/SUNW,qlc@2/fp@0,0
control ^c (to exit nvedit)
ok nvstore
ok reset
ok boot disk0

No comments: