Solaris grub: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
No edit summary
Line 55: Line 55:


=grub rescue>=
=grub rescue>=
In this example the boot environment is named Solaris11.3SRU1
==Get into the normal grub==
Find your devices:
<source lang=grub>
grub rescue> ls
(hd0) (hd0,gpt9) (hd0,gpt2) (hd0,gpt1) (hd1)
</source>
===Find the directory where the normal.mod file resides===
<source lang=grub>
grub rescue> ls (hd0,gpt2)/ROOT/Solaris11.3SRU1/@/boot/grub/i386-pc
... normal.mod ...
</source>
===Set the prefix to the right place===
<source lang=grub>
grub rescue> set
prefix=(hd0,gpt2)//@/boot/grub/i386-pc
root=hd0,gpt2
grub rescue> set prefix=(hd0,gpt2)/ROOT/Solaris11.3SRU1/@/boot/grub/i386-pc
</source>
===Now you can load and start the module called "normal"===
<source lang=grub>
grub rescue> insmod normal
grub rescue> normal
</source>

Revision as of 18:55, 19 December 2016

Grub

SP-Konsole auf x86-Systemen

Speed und Port im GRUB setzen

/rpool/boot/grub/menu.lst

title Oracle Solaris 10 X86
findroot (pool_rpool,0,a)
kernel$ /platform/i86pc/multiboot -B $ZFS-BOOTFS,console=ttya,ttya-mode="115200,8,n,1,-"
module /platform/i86pc/boot_archive

title Solaris failsafe
findroot (pool_rpool,0,a)
kernel /boot/multiboot -s -B console=ttya,ttya-mode="115200,8,n,1,-"
module /boot/amd64/x86.miniroot-safe

Speed im Solaris bekannt machen

/boot/solaris/bootenv.rc

setprop ttya-mode '115200,8,n,1,-'

Nach reboot aktiv

Console login speed setzen

/etc/ttydefs

console115200:115200 hupcl opost onlcr:115200::console
# svccfg -s svc:/system/console-login setprop ttymon/label= astring: "console115200"
# svcadm refresh svc:/system/console-login
# svcadm restart svc:/system/console-login

Speed im BIOS setzen

Mit CTRL+E ins BIOS, dann: Advanced -> Serial Port Console Redirection -> Bits per second : 115200


Speed im SP setzen

-> set SP/serial/host pendingspeed=115200 commitpending=true
Set 'pendingspeed' to '115200'
Set 'commitpending' to 'true'

-> show SP/serial/host speed

  /SP/serial/host
    Properties:
        speed = 115200

grub rescue>

In this example the boot environment is named Solaris11.3SRU1

Get into the normal grub

Find your devices:

grub rescue> ls
(hd0) (hd0,gpt9) (hd0,gpt2) (hd0,gpt1) (hd1)

Find the directory where the normal.mod file resides

grub rescue> ls (hd0,gpt2)/ROOT/Solaris11.3SRU1/@/boot/grub/i386-pc
... normal.mod ...

Set the prefix to the right place

grub rescue> set
prefix=(hd0,gpt2)//@/boot/grub/i386-pc
root=hd0,gpt2
grub rescue> set prefix=(hd0,gpt2)/ROOT/Solaris11.3SRU1/@/boot/grub/i386-pc

Now you can load and start the module called "normal"

grub rescue> insmod normal
grub rescue> normal