Skip to content

Grub 2 - re-/install, adjust, configure

Grub, the grand unified bootloader is out in its second version (for quiet a while) and a lot has changed. Today was the first day where i have to deal with the new version, so it is time to write down the knowledge i earned :-).

After upgrading from windows xp to windows 7, the microsoft os acts as child and replace the grub with its one boodloader. So at this point nothing changes from xp to litle seven ;-). My task was to restor the grub 2 into the mbr to regain access to my lovely linux. After reading some howto's, i tried it with by doing the lazy way.

  1. Start a linux live cd (or a live cd with an grub 2)
  2. fdisk -l (to see what partitions and disk are there and find your linux/root partition
  3. mount /dev/$linuxdisk$linuxpartition (e.g. sda2) /mnt
  4. chroot /mnt
  5. grub-install --root-directory=/mnt /dev/$linuxdisk

Nothing to explain left for this task. But what if you want to adjust the grub? There are two screws for twisting on. First the file /etc/default/grub contains a lot of general settings. Second, the files in /etc/grub.d/ representing your boot options. Just take a look into the scripts, the help ans answeres are in there.

And here are some links. GRUB 2 bootloader - Full tutorial grub on wikipedia.org archlinux.org/grub2 ubuntuusers.de/grub_2

Trackbacks

Keine Trackbacks

Kommentare

Ansicht der Kommentare: Linear | Verschachtelt

Noch keine Kommentare

Kommentar schreiben

Die angegebene E-Mail-Adresse wird nicht dargestellt, sondern nur für eventuelle Benachrichtigungen verwendet.
Um einen Kommentar hinterlassen zu können, erhalten Sie nach dem Kommentieren eine E-Mail mit Aktivierungslink an ihre angegebene Adresse.

Um maschinelle und automatische Übertragung von Spamkommentaren zu verhindern, bitte die Zeichenfolge im dargestellten Bild in der Eingabemaske eintragen. Nur wenn die Zeichenfolge richtig eingegeben wurde, kann der Kommentar angenommen werden. Bitte beachten Sie, dass Ihr Browser Cookies unterstützen muss, um dieses Verfahren anzuwenden.
CAPTCHA

Markdown-Formatierung erlaubt
Formular-Optionen