!!! !!! Reinstall / Repair grub2: ============================ !!! http://wiki.ubuntuusers.de/GRUB_2/Reparatur !!! by rescatux cdrom (grub rescue cd) !!! !!! disadvantage: cannot install in partition: only in mbr, but may use grub.cfg in user-defined partition/path s.u. !!! https://help.ubuntu.com/community/Grub2/Setup !!! grub2 auf andere Partition/Festplatte installieren ================================================== ( http://wiki.ubuntuusers.de/GRUB_2/Installation#Zusaetzliche-Massnahmen ) Die korrekte Methode, um GRUB 2 auf eine andere Partition/Festplatte zu installieren, ist: sudo dpkg-reconfigure grub-pc wobei der Setup-Dialog dann nach der gewünschten Zielpartition fragt. Commandline of GRUB 2 ===================== installs grub in /dev/sda3, actuel loaded system = /dev/sda3 Source for /boot/grub/grub.cfg is /dev/sda3 (mounted) grub-install /dev/sda3 installs grub in /dev/sda3, Source for /boot/grub/grub.cfg is /dev/sda1 (mounted) grub-install --root-directory=/media/sda1 /dev/sda3 # grub v. 1.98 grub-install --root-device=/media/sda1 /dev/sda3 # grub v. 1.99~rc1-13ubuntu3 grub-install --boot-directory=/media/sda1 /dev/sda3 # grub v. 2.02 grub-install --boot-directory=/boot/grub /dev/sda # grub v. 2.02 grub-install --boot-directory=/boot /dev/sda You can always reinstall Linux/Unix loader to PBR (a single command like "grub-install /dev/sda3" in Ubuntu/Fedora installs GRUB2 boot sector to partition 3) evtl. Partition als BOOT kennzeichnen To find out where GRUB 2 is installed, the user can run the following commands: Device: sudo grub-probe -t device /boot/grub UUID: sudo grub-probe -t fs_uuid /boot/grub Grub 2 Files & Folders ====================== While the main grub bootloader file continues to reside in the /boot/grub folder, it is no longer Grub's familiar menu.lst. The main Grub 2 instruction file is now grub.cfg. This file is produced by various scripts run when either the "update-grub" or "update-grub2" command is executed. The files primarily responsible for the content of grub.cfg are /etc/default/grub and individual script files located in /etc/grub.d/ The program name "update-grub2" is provided for compatibility with older versions of the grub2 packaging, but from now on this document will only use the name "update-grub". Many of the files in /boot/grub will not be familiar to users of Grub Legacy. Especially noticeable are the multitude of *.mod files in the /boot/grub folder. Grub 2 is modular and the *.mod files are loaded as necessary by grub. Despite the addition of these files, the total size of the /boot/grub contents is fairly close to that of Grub Legacy and should not require a larger /boot partition. - grub.cfg (/boot/grub/grub.cfg) !!! DO NOT EDIT THIS FILE !!! grub.cfg is automatically generated or updated whenever "update-grub" is executed. - grub (/etc/default/grub) This file contains information previously found in the upper section of /boot/grub/menu.lst. It contains settings primarily affecting Grub's menu display. This file can be edited by root to make changes to these settings; they will be imported into grub.cfg when "update-grub" is executed. - /etc/grub.d/ (folder) The files in this folder are read during execution of '"update-grub"'command. /etc/grub.d/30_os-prober This script uses os-prober to search for Linux and other operating systems and places the results in the GRUB 2 menu. Must be executable. To disable it better change GRUB_DISABLE_OS_PROBER=true better than disabeling the executable-bit. The scripts in these files write the information they gather into /boot/grub/grub.cfg. ============ Help ============================ see http://wiki.ubuntuusers.de/GRUB_2 http://wiki.ubuntuusers.de/GRUB_2/Grundlagen http://wiki.ubuntuusers.de/GRUB_2/Konfiguration http://wiki.ubuntuusers.de/GRUB_2/Installation http://wiki.ubuntuusers.de/GRUB_2/Skripte # GRUB-2-erneut-in-den-MBR-der-Festplatte-oder-Bootsektor-einer-Partition-installieren: http://wiki.ubuntuusers.de/GRUB_2/Reparatur http://wiki.ubuntuusers.de/GRUB_2/Terminal_Befehle#grub-setup http://wiki.ubuntuusers.de/GRUB_2/Reparatur#chroot-Methode http://wiki.ubuntuusers.de/chroot/Live-CD http://wiki.ubuntuusers.de/Grub_2_durch_Grub_ersetzen https://help.ubuntu.com/community/Grub2 verwendet in Ubuntu ab Version Ubuntu Karmic Koala 9.10 Ubuntu Lucid Lynx 10.04 Manual / FAQ: ============= The Grub 2 Guide (formerly Grub 2 Basics) http://ubuntuforums.org/showthread.php?t=1195275 GNU GRUB Manual 1.99 http://www.gnu.org/software/grub/manual/grub.html Konfiguration http://wiki.ubuntuusers.de/grub_2/konfiguration Skripte http://wiki.ubuntuusers.de/GRUB_2/Skripte GRUB Umgebung analysieren http://wiki.ubuntuusers.de/GRUB_Umgebung_analysieren EFI Grub2 Multiboot HowTo http://thinkpad-forum.de/threads/123262-EFI-Grub2-Multiboot-HowTo Adding custom boot target to GRUB2 http://possiblelossofprecision.net/?p=1348 Grub 2 Basics, The Grub 2 Guide http://ubuntuforums.org/showthread.php?t=119527 !!! Grub2 Documentation Ubuntu https://help.ubuntu.com/community/Grub !!! https://help.ubuntu.com/community/Grub2/Setup !!! GRUB_2 Terminalbefehle https://wiki.ubuntuusers.de/GRUB_2/Terminalbefehle/ GRUB_2 Reparatur https://wiki.ubuntuusers.de/GRUB_2/Reparatur/ ! GRUB_2 https://wiki.archlinux.org/index.php/GRUB