You can also just do
# reboot n
where n is the entry you want to reboot to.
Sherry
On Sat, Aug 29, 2009 at 01:59:22PM -0700, Vikram Hegde wrote:
> Hi,
>
>
> You can select the next booted OS at reboot time by consulting bootadm.
>
> First run bootadm list-menu
>
> # bootadm list-menu
> the location for the active GRUB menu is: /boot/grub/menu.lst
> default 4
> timeout 10
> 0 c1d0s0
> 1 c1d0s0 failsafe
> 2 c1d0s3
> 3 c1d0s3 failsafe
> 4 c1d0s6
> 5 c1d0s6 failsafe
> 6 c1d0s6 - xVM
> 7 c1d0s6 - 32 bit
>
> To boot a particular entry (say 32 bit entry above), just say
>
> reboot -p 7
>
> Skipping the -p has same effect except it does Solaris fast reboot which
> only works with Solaris.
>
> With -p it will work for any OS.
>
> Thats it. Note, if your BIOS is setup to boot some other disk/partition
> by default or does PXEboot first by default, then this obviously wont
> work
> The system must be setup to boot the same GRUB menu each time for this
> to work.
> Also this is "sticky" so once you change, it will stay changed until you
> change it again.
>
> Vikram
>
> Kees Nuyt wrote:
>> On Sat, 29 Aug 2009 18:44:01 +0200, you wrote:
>>
>>
>>> Is it really true that I have to go through a SYSTEM SHUTDOWN just to
>>> be able to select another option in my grub menu?
>>>
>>
>> Grub selects how to boot and where to boot from. Obviously,
>> you can't select another bootstrap without rebooting.
>>
>>
>>> Like many of us I have a few boot options in menu.lst. ;-)
>>> A reboot from B121 just gives me a new B121 boot.
>>> DUH.. That can't be true. Who's responsible for this idea?
>>> Or am I overlooking something?
>>>
>>> There might even be a command line to reboot through the BIOS.
>>> But what is that line?
>>>
>>
>> init 6
>>
>>
>>> Advice appreciated.
>>>
>
> _______________________________________________
> indiana-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
--
Sherry Moore, Solaris Core Kernel http://blogs.sun.com/sherrym
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss