Visit Our UNIX and Linux User Community


Setting a boot device alias on Sun hardware


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Setting a boot device alias on Sun hardware
# 1  
Old 04-11-2002
Setting a boot device alias on Sun hardware

I watched this done a long time ago, but cannot find it anywhere. I need to alias the boot device "disk" to /sbus@7,0/QLGC,isp@0,10000/sd@c,0

I think I need to set "use-nvramrc?" to true, and then create an alias within the nvramrc to point disk to the boot disk, but this is the step I cannot find documentation on.
Thanks
# 2  
Old 04-11-2002
From Sunsolve:

1) Creating a boot alias using nvalias from the OpenBoot PROM command line.

Get the device path for the boot disk:

# ls -la /dev/dsk/cxtxdxsx

Write down the entire (physical) path to be used for the alias.

Shutdown the system to the ok prompt.

Create the alias:

ok nvalias <alias> <device-path>

Example:

ok nvalias newdisk /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a

or for PCI based systems:

ok nvalias newdisk /pci@1f,0/pci@1/scsi@3,1/disk@3,0

NOTE: Although format will show the pci device with a "sd" designation, a translation is made as the OBP's device tree is 'disk'. This is the only name that the firmware will understand.

Modify the NVRAM so that it boots from the new alias automatically:

ok setenv boot-device newdisk

ok reset

The above will be valid till you run set-defaults or nvunalias from the ok prompt..

******************************************************************************
2) Alternate method for creating a boot alias using nvedit.

Use the NVRAM editor to create a script that will create the boot alias at reset:

ok nvedit

0: devalias newdisk /iommu@f,e0000000/sbus@f,e0001000/esp@f,800000/sd@3,0:a

^c (control c)

ok nvstore

ok setenv use-nvramrc? true

ok reset

******************************************************************************
3) Alternate method for creating a boot alias using existing device aliases provided in the OpenBoot PROM.

Use the devalias command to identify the existing device aliases:

ok devalias

The device alias names are listed on the left side of the output. Any of the device alias names that point to disk drives can be used as boot aliases.

Use one of the device alias names to set a new boot device:

ok setenv boot-device <new device alias name>

Display the new boot device alias:

ok printenv boot-device

Test the new boot alias by resetting the machine;

ok reset


Note: The device path above is an example only; you will not necessarily have the same path.
Note: The "0:" in the nvedit example (method 2) is the line number; do not type it as part of your edit.
thehoghunter
# 3  
Old 04-11-2002
Thank you very much! Where did you find that on Sunsolve?
-Chuck
# 4  
Old 04-12-2002
In a free info doc - I don't remember which one

I think I searched for alias boot device...
thehoghunter
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #562
Difficulty: Easy
Normally, the control flow of a program is sequential: each statement is executed right-to-left the next statement before the current statement.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Setting alias (quotes, acutes)

Hello, I'd like to have an alias to view some processes sorted: I have:ps -ef | grep pmon | awk -F" " '{ print $8" "$0 }' | sort | cut -d" " -f2- | grep -v "grep pmon" It doesn't work, however, if I put it as alias because on acutes insize awk:alias pmon='ps -ef | grep pmon | awk -F" " '{ print... (4 Replies)
Discussion started by: JackK
4 Replies

2. Shell Programming and Scripting

alias setting

I want to set an alias to connect to sqlplus and also run a command while it it logs in. How can I do that? (4 Replies)
Discussion started by: som.nitk
4 Replies

3. UNIX for Dummies Questions & Answers

Setting alias with echoing embedded $ sign

I tried to set up some alias in my .profile to save typing. One of the alais i tried to set up is alais test='echo 123$acct54679abc' But when I typed in test in the command line. The echo only dispaly 123 and truncated all the string starting from the $ sign. Is there any way to display the... (6 Replies)
Discussion started by: oht
6 Replies

4. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

5. Shell Programming and Scripting

Setting alias for a user - Linux ubuntu

Hi i have a user "SYSTEM" i want to set the below command in his .profile for an alias: who | awk '{print $1}'| sed '/SYSTEM/d' | sed '/root/d' |xargs -i pkill -u {} i tried as below: alias stop = " who | awk '{print $1}'| sed '/SYSTEM/d' | sed '/root/d' |xargs -i pkill -u {}" ... (3 Replies)
Discussion started by: joycesolomon
3 Replies

6. Solaris

Alias setting in Solaris

Hi All, I need some information on 'Alias' setting in SUN SOLARIS.:confused: Q1. I want to know how can i set my alias here. Q2. How to view all set 'ALIAS' for me. (say /home/jdash user) Q3. Can i modify the set 'Alias' for me or for whole environment. Q4. Is Alias setting can be change... (2 Replies)
Discussion started by: jdash.ps
2 Replies

7. Red Hat

Setting an alias in Redhat

Hi Everyone, I am trying to set up alias the only way I now how, buy making entry into .bashrc file. The entry I made is alias ll='ls -lrt' It is not working as I expect. When I enter "alias" at the command line I get the following. $ alias alias l.='ls -d .* --color=tty' alias... (2 Replies)
Discussion started by: jxh461
2 Replies

8. Solaris

cannot find boot device and won't boot off cdrom

I'm running solaris 2.5.1. My main development server is DEAD, i can't even boot off the cdrom, it powers up, acts like it is starting the boot process but then says cannot find boot device. I've done the search here on this site and saw the other posts, but at the ok prompt it won't even let me... (3 Replies)
Discussion started by: kymberm
3 Replies

9. UNIX for Dummies Questions & Answers

setting constant hardware settings

Let me give a little background on the problem. I am trying to hook up a unix box through a KVM to a display. The KVM is connected to a windows box as well. When I run the mouse and monitor directly to the unix box it works pretty well. However when I trie to load it through the KVM the keyboard... (0 Replies)
Discussion started by: Winzernotman
0 Replies

10. UNIX for Dummies Questions & Answers

Changing boot device on a Sun box

I need to change the boot slice on a Sun box, more specifically the alias of "disk". When I do a printenv from the ok prompt, it lists "boot-device disk net", but when it boots, it is looking at the wrong slice on "disk" (3 Replies)
Discussion started by: 98_1LE
3 Replies

Featured Tech Videos