Unix Technical Forum

switch bootdrives

This is a discussion on switch bootdrives within the comp.unix.solaris forums, part of the Solaris Operating System category; --> I want to change one of my machines (for the kids). Solaris start up from the first harddisk, but ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > comp.unix.solaris

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-11-2008, 08:36 PM
Dick Hoogendijk
 
Posts: n/a
Default switch bootdrives

I want to change one of my machines (for the kids).
Solaris start up from the first harddisk, but I want to switch drives
and have solaris boot from the *second* drive.
Changing the grub menu is easy. Changing /boot/solaris/bootenv.rc is
easy too. But what files need to be changed also?

Or is after these changes a reconfiguration reboot enough?

--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ | SunOS 10u4 08/07 ++
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-11-2008, 08:36 PM
Dave
 
Posts: n/a
Default Re: switch bootdrives

Dick Hoogendijk wrote:
> I want to change one of my machines (for the kids).
> Solaris start up from the first harddisk, but I want to switch drives
> and have solaris boot from the *second* drive.
> Changing the grub menu is easy. Changing /boot/solaris/bootenv.rc is
> easy too. But what files need to be changed also?
>
> Or is after these changes a reconfiguration reboot enough?
>



Why not teach your children to use Solaris, leaving Solaris the default
and let them take action if they wish to boot Windoze?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-11-2008, 08:36 PM
Dick Hoogendijk
 
Posts: n/a
Default Re: switch bootdrives

quoting Dave (Sun, 11 May 2008 09:58:57 +0100):
> Dick Hoogendijk wrote:
>> I want to change one of my machines (for the kids).
>> Solaris start up from the first harddisk, but I want to switch drives
>> and have solaris boot from the *second* drive.
>> Changing the grub menu is easy. Changing /boot/solaris/bootenv.rc is
>> easy too. But what files need to be changed also?
>>
>> Or is after these changes a reconfiguration reboot enough?

>
> Why not teach your children to use Solaris, leaving Solaris the
> default and let them take action if they wish to boot Windoze?


Because they sometimes just need windows. One of them the old W98 (the
game never came out for XP). So, W98 and XP both are on the second disk
and I let grub take care of this. However, because both windows versions
are on the same drive, dual booting works OK if the disk is truely the
first harddisk (no tricks by grub), but NOT if I boot from grub.
Only XP itself will boot then (or W98 if I overwrite the bootblock); W98
starts but hangs for ages..
I tried all kinds of bootmanagers, but the (dual) boot problem for
W98/XP remains and is over when I change drives and make the windows
drive the real first drive.
So I guess the easiest way out of this is change the solaris bootdrive
th the second one. At least I hope this can be done ;-) Otherwise I
(again) have to put it back from a flash archive. Last time I did this
is just a few days ago, because of that stupid kernel patch 127128-11
that still is not resolved by sun.

Curiousity satisfied? <g>

--
Dick Hoogendijk -- PGP/GnuPG key: 01D2433D
++ http://nagual.nl/ | SunOS 10u4 08/07 ++
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-13-2008, 06:09 PM
Dave
 
Posts: n/a
Default Re: switch bootdrives

Dick Hoogendijk wrote:
> I want to change one of my machines (for the kids).
> Solaris start up from the first harddisk, but I want to switch drives
> and have solaris boot from the *second* drive.
> Changing the grub menu is easy. Changing /boot/solaris/bootenv.rc is
> easy too. But what files need to be changed also?
>
> Or is after these changes a reconfiguration reboot enough?
>



I found what you probably need.

man bootadm(1m)


# bootadm list-menu
The location for the active GRUB menu is: /boot/grub/menu.lst
default 0
timeout 10
0 Solaris Express Community Edition snv_87 X86
1 Solaris xVM
2 Solaris failsafe
3 Windows
# bootadm set-menu default=3
# bootadm list-menu
The location for the active GRUB menu is: /boot/grub/menu.lst
default 3
timeout 10
0 Solaris Express Community Edition snv_87 X86
1 Solaris xVM
2 Solaris failsafe
3 Windows

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:56 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com