User Tools

Site Tools


использование_загрузчика_grub

This is an old revision of the document!


Использование загрузчика GRUB

Grub 2

Управление параметрами ядра при загрузке

  - Power up your computer.
  - Press **SHIFT** at the grub menu.
  - Highlight the line that begins “Ubuntu, KERNEL ………” and press **e**.
  - Press **e** for edit.
  - Highlight the line that begins “linux ...”
  - Go to the end of this line, add **parameter**
  - Press **Ctrl-x** to boot your system.
  - Your system will boot up to a passwordless root shell.
  - Type in **passwd username** where username is the username you lost the 

password for.
  - Set your password.
  - Type in reboot.

Управление параметрами ядра в конфигурации GRUB

Ubuntu

https://help.ubuntu.com/community/Grub2

https://help.ubuntu.com/community/WindowsDualBoot

# cat /etc/default/grub
...
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
...

# update-grub

Варианты использования изменения параметров ядра

Восстановление утерянного пароля

Добавить в параметры загружаемого ядра

single

Проблема "черного экрана"

Добавить в параметры загружаемого ядра

nomodeset

Отображение процесса загрузки

Добавить в параметры загружаемого ядра

quiet

Grub 1

Восстановление утерянного пароля

  - Power up your computer.
  - Press **ESC** at the grub menu.
  - Press **e** for edit.
  - Highlight the line that begins “Ubuntu, KERNEL ………” and press **e**.
  - Go to the end of this line, add **rw init=/bin/bash** or add **single** and 

press enter.
  - Press **b** to boot your system.
  - Your system will boot up to a passwordless root shell.
  - Type in **passwd username** where username is the username you lost the 

password for.
  - Set your password.
  - Type in reboot.

Мультизагрузка с фиксацией последней загруженной системы

http://freebsdwiki.org/index.php/GRUB_FreeBSD

root@gate:~# cat /boot/grub/menu.lst 
default saved
timeout	10

title           FreeBSD
root (hd0,0,a)
kernel /boot/loader
savedefault

title		Ubuntu
root		(hd0,1)
kernel		/boot/vmlinuz-2.6.24-16-server 

root=UUID=08931346-445f-4a43-b136-dcb96397b8c6 ro quiet splash
initrd		/boot/initrd.img-2.6.24-16-server
savedefault

title           Windows NT/2000/XP
root (hd0,2)
savedefault
makeactive
chainloader +1
# grub-set-default 1
использование_загрузчика_grub.1298276406.txt.gz · Last modified: 2013/05/22 13:50 (external edit)