Switch Between 32-bit and 64-bit Kernel in Solaris

Solaris, by default, loads a 64-bit kernel during boot up, if the hardware supports it.

If, for whatever reason, you need to load Solaris in 32-bit mode, the following commands can be used to switch between the 32-bit and 64-bit kernels.

To boot into a 32-bit kernel:

To boot into a 64-bit kernel on Solaris x86:

To boot into a 64-bit kernel on Solaris SPARC:

To restore the default auto detected boot behavior:

If you are on the OBP (Open Boot PROM), you can use the setenv command to set the ‘boot-file’ parameter. OBP is only available on SPARC Hardware.

A reboot is necessary to switch to the new kernel.

ibrahim = { interested_in(unix, linux, android, open_source, reverse_engineering); coding(c, shell, php, python, java, javascript, nodejs, react); plays_on(xbox, ps4); linux_desktop_user(true); }

« Previous Article