This is an old revision of the document!
- 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.
https://help.ubuntu.com/community/Grub2
https://help.ubuntu.com/community/WindowsDualBoot
# cat /etc/default/grub ... GRUB_CMDLINE_LINUX_DEFAULT="quiet" ... # update-grub
Добавить в параметры загружаемого ядра
init=/bin/bash
После загрузки
# mount -o remount,rw / # passwd
Добавить в параметры загружаемого ядра
nomodeset
Убрать из параметров загружаемого ядра
quiet
- 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