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/12 07:47]
val created
использование_загрузчика_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 ...") 
-<​code>​ +  - Перейдите на конец строки и допишите нужный параметр (Go to the end of this line, add **parameter**) 
-  - Power up your computer. +  - Нажмите **Ctrl-x** для загрузки системы (Press **Ctrl-x** to boot your system)
-  - 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+===== Управление параметрами ядра в файле конфигурации GRUB ===== 
-  Type in reboot.+ 
 +<​code>​ 
 +# cat /​etc/​default/​grub 
 +</​code><​code>​ 
 +..
 +GRUB_CMDLINE_LINUX_DEFAULT="​параметры через пробел"​ 
 +..
 +</​code><​code>​ 
 +# update-grub
 </​code>​ </​code>​
 +
 +===== Варианты использования изменения параметров ядра =====
  
 ==== Восстановление утерянного пароля ==== ==== Восстановление утерянного пароля ====
-Добавить в параметры загружаемого ядра ​+  * Добавьте в параметры загружаемого ядра ​(строка,​ начинающаяся на linux): ​
 <​code>​ <​code>​
-single+init=/​bin/​bash
 </​code>​ </​code>​
- +  * Выполните после загрузки:
-==== Проблема "​черного экрана"​ ==== +
-Добавить в параметры ​загружаемого ядра ​+
 <​code>​ <​code>​
-nomodeset+# mount -o remount,rw / 
 +# passwd 
 +</​code>​ 
 +  * Продолжение загрузки 
 +<​code>​ 
 +# cd / 
 +# sync 
 +# exec /sbin/init
 </​code>​ </​code>​
  
-===== Grub 1 =====+==== Переименование интерфейсов ​====
  
-==== Восстановление утерянного пароля ====+  * Добавьте в параметры загружаемого ядра: ​
 <​code>​ <​code>​
-  - Power up your computer+net.ifnames=0 
-  - Press **ESC** at the grub menu. +</code>
-  - 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. +<​code>​ 
-  - Type in **passwd username** where username is the username you lost the +nomodeset 
 +</​code>​
  
-password for. +==== Отображение процесса загрузки ==== 
-  ​- Set your password. +  ​* Уберите/​добавьте в параметры загружаемого ядра: 
-  - Type in reboot.+<​code>​ 
 +quiet
 </​code>​ </​code>​
  
-==== Мультизагрузка с фиксацией последней загруженной системы ====+===== Дополнительные материалы ===== 
 + 
 +==== Мультизагрузка с фиксацией последней загруженной системы ​в FreeBSD ​====
  
 [[http://​freebsdwiki.org/​index.php/​GRUB_FreeBSD]] [[http://​freebsdwiki.org/​index.php/​GRUB_FreeBSD]]
использование_загрузчика_grub.1297486059.txt.gz · Last modified: 2013/05/22 13:50 (external edit)