== Doing one-shot booting with GRUB For a long time, one of the advantages of [[LILO over GRUB LILOvsGRUB]] was that LILO had a one-shot mode, where it would make an entry the default for only one reboot. I've been pleased to recently discover that GRUB can now do this too, although in the grand Linux tradition it's not too documented. The magic incantation is the GRUB shell command: > _savedefault --default=~~~~ --once_ (This has to be issued in a GRUB shell, such as what you get by just running _grub_. On my workstation I find the _--no-floppy_ command line argument useful, but I may be one of the few people who still has a floppy drive in their machine.) If you are using Red Hat's version of GRUB (found in Red Hat Enterprise and Fedora), this is all you need to do. On Ubuntu or anywhere else that uses the normal version of GRUB, you need to modify your _grub.conf_ or _menu.lst_ to have '_default = saved_', and then add '_savedefault_' (*without* a number) to every menu entry, or at least every menu entry that you will ever try to use in one-shot mode. (I believe that you can tell which version of GRUB you have by whether or not you have a _/boot/grub/default_ file and a _grub-set-default_ command.) The normal GRUB saves this in _/boot/grub/default_, which is a plain text file; a one-time entry shows up as _~~N:O~~_, where _N_ is your normal default and _O_ is the entry you'll boot once. Red Hat's GRUB directly embeds the information in the _stage2_ binary, and I don't know how you can see the current state. (Judging from the changelog of the Fedora GRUB RPM, this may have been in their version of GRUB for a very long time. Unfortunately it has been undocumented for that very long time, or I might have felt slightly differently about GRUB [[back then LILOvsGRUB]].)