[[http://tmade.de|Home tmade.de]] [[http://wiki.tmade.de|Home Wiki]] ===== Grub ===== To install the Grub-Bootloader manually invoke the grub shell with grub Afterwards you have to execute device root setup commands with harddiskparameter (hdX and hdX,X) for all devices! Example: grub> device (hd1) /dev/sdb device (hd1) /dev/sdb grub> root (hd1,0) root (hd1,0) Filesystem type is ext2fs, partition type 0x83 grub> setup (hd1) setup (hd1) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... yes Checking if "/grub/stage2" exists... yes Checking if "/grub/e2fs_stage1_5" exists... yes Running "embed /grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded. succeeded Running "install /grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/grub/stage2 /grub/grub.conf"... succeeded Done. Enter quit to save and leave the grub shell. ==== Grub Start Commands ==== === Runlevel === To boot to a particular runlevel (1,2,3 ...) just enter in grub-bootmenu the number of level you want: 1 Default-runlevel which is set in "/etc/inittab" will be ignored. === Select device to boot from === To select root partition manually on boot just set "root=/dev/hda7" as start parameter To set it permanently add the following syntax in /boot/grub/menu.lst: title linux kernel (hd0,4)/vmlinuz root=/dev/hda7 vga=791 initrd (hd0,4)/initrd === Recover Root-Password === If you have to recover your password start with grub: init=/bin/bash lilo: linux init=/bin/bash === Recover Root-Password Ubuntu Server 12.4 === Enter the Grub-Shell with "e", go to the very end of the line "linux", change the "ro" to "rw" and add init=/bin/bash press enter, then press F10 to boot your system. See also: https://help.ubuntu.com/community/LostPassword === Ubuntu === grub rescue: http://www.it-muecke.de/grub-rescue