Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

boot drive 1

Status
Not open for further replies.

simanek

Programmer
Jan 19, 2001
137
US
Hi all,

I have an ultra 5 with 2 hard drives. both of these drives have bootable partitions. How can i tell, without rebooting, which drive I booted from? Or at the very least, how can I tell which is the master drive?

Thanks. Mike
~~~~
simanek@uiuc.edu
"It's a Swingline!"
~~~~
 
You can use eeprom to see from which drive you boot
 
There are several ways. One is to do a df -k and see where
the / filesystem is mounted from, another is to look at
either dmesg or the file /var/adm/messages to see the boot sequence information, there will be a line saying something like "root on /sbus@1f,0..........." the end will be 0,0:a for example, this is on sbus0 (first controller) and is target 0, disk 0 and partition a (the first partition). The address of the above would be /dev/dsk/c0t0d0s0.
You could always shut the machine down and look at:
Do a printenv to see what boot-device is set to, normally it is "disk". Now do a devalias disk to see what "disk" is assigned to. This should be the physical path of the boot disk.
Good luck John Philcox
Mobile Ventures Limited UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top