Questions tagged [boot]

Bootloader issues: what happens before the operating system itself starts.

Use this tag for issues related to booting the operating system, from power on to loading the kernel. Use for issues that come up during the startup of the operating system itself.

Overview of a computer boot sequence

When a computer boots, it first runs firmware stored in persistent memory. On PCs, this firmware is called the BIOS. If you have a problem at this stage, it's off-topic for this site, since Unix is not involved yet, but try asking on Super User.

The firmware then loads a bootloader, typically from disk or from the network. Although bootloaders are not part of the operating system proper, questions about bootloaders typically associated with unix and Linux are welcome on this site.

The bootloader loads the operating system . The kernel initializes itself and some hardware devices, then on typical Unix systems runs the init program. Init in turn starts system services, including programs that present a login prompt.

Related tags

  • for what happens after the kernel is loaded
  • for bootloaders in general
  • if you have more than one operating system

Bootloaders

  • (and ): a versatile bootloader used by many Linux distributions
  • : the traditional bootloader for Linux on PCs

Kernel boot sequence

  • , : on Linux, a virtual RAM disk that is loaded by the kernel before the “real” OS starts. The code in the RAM disk typically loads additional drivers (modules).

Unix boot sequence

  • : process number 1
  • : scripts that start and stop services, invoked by init at boot time
  • : a replacement for the traditional init program

Further reading

3425 questions
121
votes
4 answers

How can I make a script in /etc/init.d start at boot?

I think I read something a while back about this, but I can't remember how it's done. Essentially, I have a service in /etc/init.d which I'd like to start automatically at boot time. I remember it has something to do with symlinking the script…
Naftuli Kay
  • 38,686
  • 85
  • 220
  • 311
121
votes
10 answers

Set the default kernel in GRUB

How can I pick which kernel GRUB 2 should load by default? I recently installed a Linux real-time kernel and now it loads by default. I'd like to load the regular one by default. So far I only managed to pick the default OS... and for some reason…
TomTom
  • 2,453
  • 6
  • 18
  • 23
88
votes
6 answers

Why do iptables rules disappear when restarting my Debian system?

I add this rule: sudo iptables -t nat -A OUTPUT -d a.b.c.d -p tcp \ --dport 1723 -j DNAT --to-destination a.b.c.d:10000 When restart computer rules are deleted. Why? What I can do to make the rules persist?
Jhonathan
  • 3,525
  • 4
  • 24
  • 23
72
votes
11 answers

SSH to decrypt encrypted LVM during headless server boot?

When I installed Ubuntu 10.04 and, now, 10.10, I was offered the option of enabling "encrypted LVM" for my hard drive. After choosing that option, I am prompted for my password during boot to decrypt the LVM. Now, I am thinking about setting up a…
hpy
  • 4,517
  • 8
  • 53
  • 73
66
votes
4 answers

Why does "drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message" show up and what can I do to fix it?

This error shows up everytime I install Kali Linux, whenever I try to boot it. Then, it dissapears and the screen blacks out. The error is the following:+[drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message. Here's also an screenshot…
63
votes
6 answers

Why does Linux allow ‘init=/bin/bash’?

I recently found out that if I edit GRUB before booting and I add rw init=/bin/bash I end up with a root shell. Being in a condition that I want to understand everything I would like to know why this happens. I mean is it a bug? is it a feature? is…
triedtoomuck
61
votes
2 answers

How to know if I'm booting using UEFI?

I was searching, but didn't find an obvious way to know if GRUB is using UEFI in the system boot, or the BIOS compatibility mode, or a full fledged BIOS. I found only Windows methods. Is there something in GRUB or the Kernel boot logs that shows if…
Braiam
  • 35,380
  • 25
  • 108
  • 167
45
votes
5 answers

Create wireless access point and share internet connection with nmcli

How can I create a Wi-Fi hotspot with the command line tool nmcli and share/bridge the ethernet internet connection with the wireless access point? Furthermore, how can I start this automatically at boot? Is this possible with nmcli?
BuZZ-dEE
  • 2,033
  • 2
  • 18
  • 21
41
votes
4 answers

How to fix boot failure due to incorrect fstab?

It seems that I have added incorrect record to /etc/fstab: //servername/share /mnt/share cifs defaults,username=myuser 0 0 When I did mount -a, it asked user password to mount network share. It seems that it cannot proceed without…
altern
  • 1,900
  • 3
  • 18
  • 20
40
votes
7 answers

Why do most distributions chain UEFI and grub?

Most distributions install a additional boot loader on an UEFI system. UEFI itself is a boot loader, it offers a menu to select different operating systems or individual kernels. Furthermore, the UEFI settings can easily be altered with userspace…
Marco
  • 33,188
  • 10
  • 112
  • 146
39
votes
6 answers

How does a kernel mount the root partition?

My question is with regards to booting a Linux system from a separate /boot partition. If most configuration files are located on a separate / partition, how does the kernel correctly mount it at boot time? Any elaboration on this would be great. I…
Mr. Shickadance
  • 6,884
  • 6
  • 26
  • 28
38
votes
3 answers

Why can't I specify my root fs with a UUID?

My system boots OK with this in my GRUB 2 config: linux /bzImage root=/dev/sda2 init=/usr/lib/systemd/systemd ro But if I replace /dev/sda2 with the corresponding UUID: linux /bzImage root=UUID=666c2eee-193d-42db-a490-4c444342bd4e…
cjm
  • 26,740
  • 12
  • 88
  • 84
37
votes
10 answers

How to boot Linux to command-line mode instead of GUI?

I am using 32-bit Red Hat Linux in my VM. I want to boot it to command-line mode, not to GUI mode. I know that from there I can switch to GUI mode using startx command. How do I switch back to command-line mode?
0xF1
  • 649
  • 2
  • 8
  • 15
36
votes
2 answers

Which man page describes the process of a computer turning on?

A few years ago I recall using the terminal and reading a tutorial in the Linux manual (using man) on how a computer worked after it was turned on. It walked you through the whole process explaining the role of the BIOS, ROM, RAM and OS on this…
juliotv
  • 541
  • 1
  • 5
  • 8
35
votes
8 answers

Stop program running at startup in Linux

How do I stop a program running at startup in Linux. I want to remove some apps from startup to allow them to be managed by supervisord e.g apache2
Frozenskys
  • 707
  • 2
  • 8
  • 12
1
2 3
99 100