Etapy Starty Linuxa (ang. Linux Booting Process stages) edytuj

Etapy: [1][2]

  • BIOS
  • MBR
  • bootloader ( GRUB)
  • kernel
  • init
  • runlevel


grub edytuj

wersja edytuj

Sprawdzmy:[3]

 grub-install --version

lub

 grub-install -V


przykładowy wynik:

 rub-install (GRUB) 2.04-1ubuntu45

Inna metoda:

 dpkg -l | grep grub | grep ii

lub

 apt-cache policy grub-pc

klawisze edytuj

w czasie startu systemu naciśnij prawy shift aby zobaczyć menu[4]

obraz powitalny edytuj

Obraz powitalny ( ang. Splash image )[5]

konfiguracja edytuj

  • otwórz plik /etc/default/grub jako root[6]
  • uaktualnij plik update-grub
  • sprawdź /boot/grub/grub.cfg
  • uruchom ponownie komputer


W konsoli:

sudo gedit /etc/default/grub
update-grub
gedit /boot/grub/grub.cfg

W przypadku:

  • wolnego startu wersji 18.04 : dodać noresume [7]

pomoc edytuj

Offline

 info -f grub -n 'Simple configuration'

runlevel/targets edytuj

Zależność pomiędzy runlevel a systemd targets[8]

  ┌─────────┬───────────────────┐
  │Runlevel │ Target            │
  ├─────────┼───────────────────┤
  │0        │ poweroff.target   │
  ├─────────┼───────────────────┤
  │1        │ rescue.target     │
  ├─────────┼───────────────────┤
  │2, 3, 4  │ multi-user.target │
  ├─────────┼───────────────────┤
  │5        │ graphical.target  │
  ├─────────┼───────────────────┤
  │6        │ reboot.target     │
  └─────────┴───────────────────┘

Źródła edytuj

  1. freecodecamp : the-linux-booting-process-6-steps-described-in-detail
  2. thegeekstuff : linux-boot-process
  3. askubuntu questions: how-to-know-the-version-of-grub
  4. omgubuntu : key-to-show-grub-menu-ubuntu
  5. help.ubuntu : Grub2 Displays
  6. wiki.ubuntu : Kernel Boot Parameters
  7. askubuntu question : ubuntu-18-04-how-to-diagnose-fix-very-slow-boot
  8. askubuntu question : how-do-i-change-the-runlevel-on-systemd