Linux.com

Home Learn Linux Linux Answers High Performance How do you get a workstation to boot into one of the specific runlevels everytime?
Answers
  • Edit your boot loader's config (probably grub) to add the runlevel you want as a parameter to the kernel. So for example, right after "linux" but before the other parameters, enter 1 - 5 or emergengy or single. You may want to make it a boot option in boot loader, too (e.g. a new entry in Grub's menu.lst).

    Answered by gomer
    4 years ago
    0 0
  • In the file /etc/inittab edit the following line. For example, the distro I'm using now is set to runlevel 5 as shown here:

    # Default runlevel. The runlevels used by PCLinuxOS are:
    # 0 - halt (Do NOT set initdefault to this)
    # 1 - Single user mode
    # 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
    # 3 - Full multiuser mode
    # 4 - unused
    # 5 - X11
    # 6 - reboot (Do NOT set initdefault to this)
    #
    id:5:initdefault:

    Answered by TsaniApani
    4 years ago
    0 1
  • You can modify /etc/inittab so that the runlevel is 3. The line would then read:

    id:3:initdefault

    Answered by billsdesk
    4 years ago
    0 2
  • Modify your /etc/inittab file. Change the line:

    id:3:initdefault

    Where 3 is the runlevel.

    Answered by kunal
    4 years ago
    1 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category High Performance

Upcoming Linux Foundation Courses

  1. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details
  2. LFS520 OpenStack Cloud Architecture and Deployment
    08 Sep » 11 Sep - Virtual
    Details
  3. LFD320 Linux Kernel Internals and Debugging
    15 Sep » 19 Sep - Virtual
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board