• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris 10 (x86/x64) : How to boot into single user mode from the Grub boot loader

by admin

By default, in Solaris x86 10 1/06 the new GRUB boot loader does not provide a fully functional single user boot option in the menu that is presented upon booting. The default menu only has a GRUB “Safe Mode” boot option to choose from, but not the option to choose to boot to single user mode.

A true “Single User” boot option is key for many customers to apply patches and perform other administration needs. The below steps will show you the procedures to boot into single user mode using GRUB. The first method shows how to do this temporarily, and the other shows how to do this permanently by modifying the GRUB menu.lst file.

Temporary method : using GRUB

To boot single user mode temporarily from the GRUB menu, boot the system up and when the GRUB menu appears, type “e” for edit. You will then see a screen that will have 2 booting options as below.

Solaris 10 GRUB boot menu

NOTE: The “findroot (rootfs0,0,a)” line in the example above may look different for your server.

Then use the up and down arrows to highlight the “kernel….multiboot” line entry and then again type “e” for edit.

Solaris 10 kernel multiboot

Once in edit mode add a space and “-s” on the end of the line, and hit enter. The new line should look like this:

solaris 10 x86 boot into single user mode

After doing so, push the enter key. Back at the grub menu type “b” to boot to the modified line item.

solaris 10 x86 single user mode

This will take you into a “real” single user mode boot level.

Solaris 10 single user mode

Permanent method : using /boot/grub/menu.lst file

To be presented with the option to boot in single user mode on every boot, and thus make this change permanent, you would edit the /boot/grub/menu.lst file (grub boot loader) and add the lines below to give the single user mode boot option. If you are using ZFS for your boot disks your menu.lst will be in the location /rpool/boot/grub/menu.lst.

Note: Your entries in the menu.lst file will would look something like the example below, however, the root entry which points to the partition to boot should correspond to your current entries and may vary slightly from this example.

First, be sure to copy your existing menu.lst file:

# cp /boot/grub/menu.lst /boot/grub/menu.lst.old

When that is done, then you can edit the file with vi. You would see 2 entries – for normal booting and a failsafe booting. Make sure you take the entry of “findroot (rootfs0,0,a)” from here. This line may be different in you case. SO make sure you copy it from your menu.lst Rest all lines are same as below :

# vi /boot/grub/menu.lst
title Solaris 10 1/06 Single User Boot
findroot (rootfs0,0,a)
kernel /platform/i86pc/multiboot -s
module /platform/i86pc/boot_archive

solaris 10 menu.lst file

When you add the above to the menu.lst and then boot your server, your GRUB boot menu will have a new line at the bottom reflecting the entry you put after “title”. In this example it will look like this:

Solaris 10 single user boot GRUB menu

You can then boot into single user mode in the future by simply highlighting the “Solaris 10 1/06 Single User Boot” entry and hitting enter.

Filed Under: Solaris

Some more articles you might also be interested in …

  1. Solaris : How to run savecore manually while booted in single user from CDROM
  2. A beginners guide to Veritas Dynamic Multipathing (VxDMP)
  3. Beginners Guide to Solaris 11 Network Administration
  4. Solaris : Troubleshooting startup (rc init) scripts
  5. Solaris Resource Manager Basics : Understanding Resource Pools
  6. Solaris Interview Questions and Answers
  7. How to set OBP Variables from the ALOM/ILOM
  8. Comparing Network configuration : Solaris 10 Vs Solaris 11
  9. How to create an OBP boot device alias in Solaris [SPARC]
  10. How to set up cron for automatic data collection from the system activity reporter (SAR) in Solaris 10 and 11

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright