Repair grub with grml

14 10 2009
My development box runs a bleeding edge Debian sid installation. One day an update produced the message that grub 0.97 is now called grub-legacy and that it will chainload into the new (extremely bleeding edge) grub 2. Should that work I could run upgrade-from-grub-legacy. Well, that sounded nice and I researched what is the status of Grub 2. Almost everybody who wrote about Grub 2 noted, that documentation lacks a lot -- so I won't reproduce this statement here ;-) Fortunately, in the caveat section the draft of the Grub 2 manual gives the following hint
deb upgrades - In the Debian 5.x and Ubuntu 9.x series, upgrading to GRUB 2 after an an LVM/LVM+crypto installation (under GRUB legacy) will leave you unhappy.
Hmpf. Made a mental note not to touch above command, because I am using lvm. But yesterday evening my mental state was kind of unconscious and out of -- whatever it was, that had driven me -- I entered upgrade-from-grub-legacy. A dialogue asked me which devices Grub 2 shall be installed on and -- @$""§ again without thinking -- I selected both drives. [Deviation] The computer has two different brands of hard drives drives, an old one and a new one, with different sizes and partitioning. The system used to identify them as /dev/hda and /dev/sda. A recent upgrade of the kernel introduced some confusion here, because suddenly the hda was populated as sdb! Researching (many thanks to all the people who write about their knowledge) found that the new kernels see all drives as "sd". So I changed the fstab and everything worked again. [/Deviation] Back to Grub 2. The installation and a reboot finished without errors. Null sweat here. But I noticed that the Vista entry in Grub's menu was missing. So I installed and run os-prober which found the Vista partition and also produced an entry for the splash screen (which I disliked but accepted). Strangely, it did not list my Linux kernels! As Whitesnake had put it:
When I first saw you baby You took my breath away, I knew your name was Trouble But, my heart got in the way I couldn't stop myself from reaching out, I could not turn away
In my case my brain just passed out. I did a reboot. Great, the Grub menu appeared and an entry for Vista was there. -- BUT IT WAS THE ONLY ONE! Uniqueness might be applicable for certain rings, but certainly it was displeasing for my boot menu. Very! Hardened from battling with overwritten Lilo boot records in the past, and in the very comforting situation of having a quite recent backup I did not break into sweat. Browsing through the pile of stuff on my desk produced two things, in that order: a disc of grml Schluchtenscheisser, and a grin on my face.


No Trackbacks


Display comments as (Linear | Threaded)
No comments

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Use the menu below to choose a header image. You can choose between images included with the theme or use a custom image.

If you are using both sidebars and you want to use an included image then choose one ending with "_large.jpg". For ex: red_sky_large.jpg instead of red_sky.jpg

To choose a custom image, select "custom header path" from the menu list and then click on the "media library" link. A custom header image must be 780x95 in size if you are using only one sidebar or 1000x95 if you are using both sidebars.

Please choose a header image: OUT ); define("FRESHY_CUSTOM_HEADER","Custom header path:"); define("FRESHY_HOMELINK_DESCRIPTION","Enter a custom label for the link pointing to your blog front page: "); define("FRESHY_NAVLINK_TITLE","Navigation link "); define("FRESHY_NAVLINK_DESCRIPTION_URL","Enter URL for Navigation link "); define("FRESHY_NAVLINK_ANCHOR_TEXT","Enter label for Navigation link "); define("FRESHY_NAVBG_TITLE","Navigation highlight colour"); define("FRESHY_NAVBG_DESCRIPTION","Please choose a navigation button highlight colour for this theme: "); define("FRESHY_NAVBG_GREEN","Green"); define("FRESHY_NAVBG_RED","Red"); define("FRESHY_NAVBG_LIGHT_BLUE","Light Blue"); define("FRESHY_NAVBG_BLUE","Blue"); define("FRESHY_NAVBG_PURPLE","Purple"); define("FRESHY_NAVBG_GRAY","Gray"); define("FRESHY_NAVBG_ORANGE","Orange"); define("FRESHY_NAVLINK_HOME","Home"); //only used for s9y versions <1.1 ?>