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.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. UNIX for Dummies Questions & Answers
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
3. Solaris
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
4. Red Hat
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
5. 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
6. Shell Programming and Scripting
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
7. Boot Loaders
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
8. UNIX for Dummies Questions & Answers
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
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
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
LEARN ABOUT MINIX
path_to_inst
path_to_inst(4) File Formats path_to_inst(4)
NAME
path_to_inst - device instance number file
SYNOPSIS
/etc/path_to_inst
DESCRIPTION
/etc/path_to_inst records mappings of physical device names to instance numbers.
The instance number of a device is encoded in its minor number, and is the way that a device driver determines which of the possible
devices that it may drive is referred to by a given special file.
In order to keep instance numbers persistent across reboots, the system records them in /etc/path_to_inst.
This file is read only at boot time, and is updated by add_drv(1M) and drvconfig(1M).
Note that it is generally not necessary for the system administrator to change this file, as the system will maintain it.
The system administrator can change the assignment of instance numbers by editing this file and doing a reconfiguration reboot. However,
any changes made in this file will be lost if add_drv(1M) or drvconfig(1M) is run before the system is rebooted.
Each instance entry is a single line of the form:
"physical name" instance number "driver binding name"
where
physical name is the absolute physical pathname of a device. This pathname must be enclosed in double quotes.
instance number is a decimal or hexadecimal number.
driver binding name is the name used to determine the driver for the device.
This name may be a driver alias or a driver name. The driver binding name must be enclosed in double quotes.
EXAMPLES
Example 1: Sample path_to_inst Entries
Here are some sample path_to_inst entries:
"/iommu@f,e0000000" 0 "iommu"
"/iommu@f,e0000000/sbus@f,e0001000" 0 "sbus"
"/iommu@f,e0000000/sbus@f,e0001000/sbusmem@e,0" 14 "sbusmem"
"/iommu@f,e0000000/sbus@f,e0001000/sbusmem@f,0" 15 "sbusmem"
"/iommu@f,e0000000/sbus@f,e0001000/ledma@f,400010" 0 "ledma"
"/obio/serial@0,100000" 0 "zs"
"/SUNW,sx@f,80000000" 0 "SUNW,sx"
FILES
/etc/path_to_inst
SEE ALSO
add_drv(1M), boot(1M), drvconfig(1M), mknod(1M)
WARNINGS
If the file is removed the system may not be bootable (as it may rely on information found in this file to find the root, usr or swap
device). If it does successfully boot, it will regenerate the file, but after rebooting devices may end up having different minor numbers
than they did before, and special files created via mknod(1M) may refer to different devices than expected.
For the same reasons, changes should not be made to this file without careful consideration.
NOTES
This document does not constitute an API. path_to_inst may not exist or may have a different content or interpretation in a future
release. The existence of this notice does not imply that any other documentation that lacks this notice constitutes an API.
SunOS 5.10 2 Nov 1995 path_to_inst(4)