- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: changing boot disk while within current OS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 08:42 AM
04-19-2002 08:42 AM
All i want to do is tell the HP OS that is booted on the PRIMARY path to boot to the SECONDARY path the next time it is booted.
Thanx for the help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 08:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 08:44 AM
04-19-2002 08:44 AM
Re: changing boot disk while within current OS
===> displays the current boot path
To change ..
# setboot -p
# setboot -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 08:47 AM
04-19-2002 08:47 AM
Re: changing boot disk while within current OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 09:29 AM
04-19-2002 09:29 AM
Re: changing boot disk while within current OS
Following is small script I use to change boot sequence on next boot.
##------------------------------
#
# Use this script to change the boot sequence # using setboot command.
#
HP=`hostname`
BOOT_PATH_LOG=/home/system/Logs/${HP}_set_bootlog
exec 2>&1 >>${BOOT_PATH_LOG}
echo "##--------------------------##"
date
echo "#-------- Check boot Paths before change"
setboot
##check pri/alt paths
PRI_PATH=`setboot |grep Pri |awk '{print $4}'`
ALT_PATH=`setboot |grep Alt |awk '{print $4}'`
echo "\nCurrent Primary Path is ${PRI_PATH} "
echo "Current Alternate Path is ${ALT_PATH} "
## Change Primary and Alternate Paths
#set primary path
setboot -p ${ALT_PATH}
#set alternate path
setboot -a ${PRI_PATH}
echo "\n#-- Check boot Paths after change"
setboot
date
echo "##-------------------------##"
##-----
Thanks.
Prashant Deshpande.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2002 09:49 AM
04-19-2002 09:49 AM
Re: changing boot disk while within current OS
I settled for the script.
Thanx again.