Image of Advanced Programming in the UNIX Environment, Second Edition (Addison-Wesley Professional Computing Series)
Image of RHCE Red Hat Certified Engineer Linux Study Guide (Exam RH302) (Certification Press)
Image of Operating System Concepts
Image of Modern Operating Systems (3rd Edition)

Building a Bootable GRUB Legacy Image for QEMU

Recently, as a moderator on a Unix and GNU/Linux-related forum, I assisted a member who was having a problem creating a bootable image for use with QEMU. As a result of this experience, I decided to write this post to demonstrate to others how easy the process is. Without further ado, here is a simple Bash shell script to create a bootable image containing only the GRUB Legacy boot loader which is bootable using QEMU. #!/bin/bash # # Finnbarr P. Murphy 01/03/2011 # # Create a bootable image containing just Legacy Grub # and use QEMU to test boot it

Boot Fedora 14 Using UEFI and GRUB2

In a recent post I demonstrated how to UEFI-install Fedora 14. This installed a modified version of Legacy GRUB which was built to execute on EFI platforms. In this post I show you how to install an EFI version of GRUB2 which can be used to boot Fedora 14 instead of using the version of Legacy GRUB that comes with Fedora 14. The version of GRUB2 that I used is 1.99-Beta0. Use bzr to obtain the current version from the GRUB repo. You may also need to install the autoconf and automake packages as they are required to build GRUB2.

GRUB2 Modules

GRUB2 has a modular architecture with support for loading and unloading code modules as needed. Modules are similar to Linux kernel modules in some respects but in other ways they are like plugins for Mozilla Firefox or the Eclipse IDE. In this post I provide an overview of what a GRUB2 module is and show you how to modify an existing module to add new functionality. I also demonstrate how to develop, integrate and test your own custom module using the GRUB2 grub-emu userspace emulator. The current version of GRUB2 (v1.98) has 159 modules: acpi.mod date.mod gcry_sha1.mod loopback.mod pbkdf2.mod terminfo.mod

Upgrading Fedora 13 to GRUB2

While a number of other GNU/Linux releases such as Ubuntu have moved to GRUB2, Fedora continues to use GRUB Legacy. Some preliminary investigation work on migrating to GRUB2 was done by Jeremy Katz for the Fedora Project when he worked for Red Hat. but that work seems to have completely stopped when he left Red Hat as the last update of the project page was in July 2009. This post will show you how to migrate your Fedora 13 system to boot using GRUB2 instead of GRUB Legacy. As always, back up your system before attempting the migration. Things can

GRUB2 Poor Design Decisions

The more I use GRUB2 the more I have come to realize that some of the design decisions relating to GRUB2 must have been made by the same committee that designed the camel and the dodo. In GRUB Legacy, you simply edited /boot/grub/menu.lst to customize GRUB. Not so in GRUB2! Obviously somebody had way too much time on their hands and decided that a simple method which had stood the test of time – direct editing of the GRUB configuration file – should be replaced with some far more complex for no good or discernible reason. Thus GRUB2 places its