User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
использование_загрузчика_grub [2011/02/11 15:07]
val removed
использование_загрузчика_grub [2019/02/21 15:39] (current)
val [Управление GRUB при загрузке]
Line 1: Line 1:
 ====== Использование загрузчика GRUB ====== ====== Использование загрузчика GRUB ======
  
-===== Grub 2 =====+  * [[https://​help.ubuntu.com/​community/​Grub2|Grub2 (ubuntu doc)]] 
 +  * [[https://​help.ubuntu.com/​community/​WindowsDualBoot|WindowsDualBoot (ubuntu doc)]]
  
-[[https://​help.ubuntu.com/​community/​Grub2]]+===== Управление GRUB при загрузке ===== 
 +  
 +  - Включите компьютер (Power up your computer) 
 +  - Нажмите **ESC** когда появится меню GRUB (Press **ESC** at the grub menu) 
 +  - Подсветите строку,​ начинающуюся со слова Ubuntu (Highlight the line that begins “Ubuntu"​) 
 +  - Нажмите клавишу **e** (Press **e** for edit)
  
-[[https://​help.ubuntu.com/​community/​WindowsDualBoot]]+===== Управление параметрами ядра при загрузке ===== 
 + 
 +  - Переведите курсор на строку,​ начинающуюся со слова "linux..." (Highlight the line that begins "linux ..."​) 
 +  - Перейдите на конец строки и допишите нужный параметр (Go to the end of this line, add **parameter**) 
 +  - Нажмите **Ctrl-x** для загрузки системы (Press **Ctrl-x** to boot your system) 
 + 
 + 
 +===== Управление параметрами ядра в файле конфигурации GRUB =====
  
-==== Управление параметрами ядра при загрузке ==== 
 <​code>​ <​code>​
-  - Power up your computer. +# cat /​etc/​default/​grub 
-  - Press **SHIFT** at the grub menu. +</​code><​code>​ 
-  - Highlight the line that begins “Ubuntu, KERNEL ………” and press **e**. +... 
-  - Press **e** for edit. +GRUB_CMDLINE_LINUX_DEFAULT="​параметры через пробел"​ 
-  - Highlight the line that begins “linux ​...” +... 
-  - Go to the end of this line, add **parameter** +</​code><​code>​ 
-  - Press **Ctrl-x** to boot your system. +# update-grub
-  - 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.+
 </​code>​ </​code>​
 +
 +===== Варианты использования изменения параметров ядра =====
  
 ==== Восстановление утерянного пароля ==== ==== Восстановление утерянного пароля ====
-Добавить в параметры загружаемого ядра ​+  * Добавьте в параметры загружаемого ядра ​(строка,​ начинающаяся на linux): ​
 <​code>​ <​code>​
-single+init=/​bin/​bash 
 +</​code>​ 
 +  * Выполните после загрузки:​ 
 +<​code>​ 
 +# mount -o remount,rw / 
 +# passwd 
 +</​code>​ 
 +  * Продолжение загрузки 
 +<​code>​ 
 +# cd / 
 +# sync 
 +# exec /​sbin/​init 
 +</​code>​ 
 + 
 +==== Переименование интерфейсов ==== 
 + 
 +  * Добавьте в параметры загружаемого ядра:  
 +<​code>​ 
 +net.ifnames=0
 </​code>​ </​code>​
  
 ==== Проблема "​черного экрана"​ ==== ==== Проблема "​черного экрана"​ ====
-Добавить в параметры загружаемого ядра ​+  * Добавьте в параметры загружаемого ядра:
 <​code>​ <​code>​
 nomodeset nomodeset
 </​code>​ </​code>​
  
-===== Grub 1 ===== +==== Отображение процесса загрузки ​==== 
- +  * Уберите/добавьте в параметры загружаемого ядра:
-==== Восстановление утерянного пароля ====+
 <​code>​ <​code>​
-  - Power up your computer. +quiet
-  - 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.+
 </​code>​ </​code>​
  
-==== Мультизагрузка с фиксацией последней загруженной системы ====+===== Дополнительные материалы ===== 
 + 
 +==== Мультизагрузка с фиксацией последней загруженной системы ​в FreeBSD ​====
  
 [[http://​freebsdwiki.org/​index.php/​GRUB_FreeBSD]] [[http://​freebsdwiki.org/​index.php/​GRUB_FreeBSD]]
Line 66: Line 86:
 title Ubuntu title Ubuntu
 root (hd0,​1) root (hd0,​1)
-kernel /​boot/​vmlinuz-2.6.24-16-server root=UUID=08931346-445f-4a43-b136-dcb96397b8c6 ro quiet splash+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 initrd /​boot/​initrd.img-2.6.24-16-server
 savedefault savedefault
использование_загрузчика_grub.1297426021.txt.gz · Last modified: 2013/05/22 13:50 (external edit)