<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://k2.ixota.com/index.php?action=history&amp;feed=atom&amp;title=GRUB</id>
	<title>GRUB - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://k2.ixota.com/index.php?action=history&amp;feed=atom&amp;title=GRUB"/>
	<link rel="alternate" type="text/html" href="https://k2.ixota.com/index.php?title=GRUB&amp;action=history"/>
	<updated>2026-06-26T14:21:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.1</generator>
	<entry>
		<id>https://k2.ixota.com/index.php?title=GRUB&amp;diff=4160&amp;oldid=prev</id>
		<title>Kenneth: /* Summary */</title>
		<link rel="alternate" type="text/html" href="https://k2.ixota.com/index.php?title=GRUB&amp;diff=4160&amp;oldid=prev"/>
		<updated>2017-02-15T19:35:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Summary&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Summary ==&lt;br /&gt;
&lt;br /&gt;
GRUB is the GNU GRand Unified Bootloader.&lt;br /&gt;
&lt;br /&gt;
Note: &amp;quot;[[GRUB 2]] has replaced what was formerly known as GRUB (i.e. version 0.9x), which has, in turn, become GRUB Legacy.&amp;quot; [http://www.gnu.org/software/grub/]&lt;br /&gt;
&lt;br /&gt;
&amp;quot;GRUB has the advantage of being able to read ext2 and ext3 partitions and load its configuration file — /boot/grub/grub.conf — at boot time.&amp;quot; [http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s2-boot-init-shutdown-loader.html]&lt;br /&gt;
&lt;br /&gt;
Create Grub conf:&lt;br /&gt;
 touch /boot/grub/menu.lst&lt;br /&gt;
 ln -s menu.lst /boot/grub/grub.conf&lt;br /&gt;
&lt;br /&gt;
Boot with GRUB [http://www.linuxjournal.com/article/4622 article].&lt;br /&gt;
&lt;br /&gt;
Dual and Multi Booting FreeBSD, Linux, and OpenBSD [http://geodsoft.com/howto/dualboot/grub.htm article].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;quot;You can also have GRUB save the last loaded system as the default for the next boot. Change the &amp;quot;default=0&amp;quot; line to &amp;quot;default=saved&amp;quot; and add the &amp;quot;savedefault&amp;quot; command (no arguments) as the last command in each title section. When you switch to the savedefault mode, the first title section will be the default on the first boot. GRUB saves the current selection just before initiating the boot sequence. By using the savedefault command in two or more title sections and leaving it out of one or more title sections you could create a menu that would allow the default to switch between some systems but never be set for others.&amp;quot;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default=0&lt;br /&gt;
timeout=10&lt;br /&gt;
&lt;br /&gt;
title Debian 2.4.27-2-386&lt;br /&gt;
        root (hd0,1)&lt;br /&gt;
        kernel /vmlinuz-2.4.27-2-386 ro root=/dev/hda1&lt;br /&gt;
        initrd /initrd.img-2.4.27-2-386&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
default=saved&lt;br /&gt;
timeout=10&lt;br /&gt;
#splashimage=(hd0,4)/boot/grub/splash.xpm.gz&lt;br /&gt;
title Red Hat Linux (2.4.7-10)&lt;br /&gt;
        root (hd0,4)&lt;br /&gt;
        kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/hda5&lt;br /&gt;
        initrd /boot/initrd-2.4.7-10.img&lt;br /&gt;
        savedefault&lt;br /&gt;
title OpenBSD 3.0&lt;br /&gt;
        root (hd0,0)&lt;br /&gt;
        makeactive&lt;br /&gt;
        chainloader +1&lt;br /&gt;
        savedefault&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
GRUB: Boot another OS once [http://sidvind.com/wiki/GRUB:_Boot_another_OS_once article].&lt;br /&gt;
&lt;br /&gt;
== Dual Boot - Remember Last Choice ==&lt;br /&gt;
&lt;br /&gt;
dual boot - How to get grub2 to remember last choice? - Ask Ubuntu - http://askubuntu.com/questions/148662/how-to-get-grub2-to-remember-last-choice&lt;br /&gt;
&lt;br /&gt;
Ubuntu:&lt;br /&gt;
&lt;br /&gt;
/etc/default/grub:&lt;br /&gt;
 GRUB_DEFAULT=saved&lt;br /&gt;
 GRUB_SAVEDEFAULT=true&lt;br /&gt;
&lt;br /&gt;
then run:&lt;br /&gt;
 sudo update-grub&lt;br /&gt;
&lt;br /&gt;
==GRUB: savedefault results in &amp;quot;Error 15: File not found&amp;quot;==&lt;br /&gt;
[http://bugs.archlinux.org/task/7770 GRUB: savedefault results in &amp;quot;Error 15: File not found&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Adding savedefault to boot command in grub results in boot error &amp;quot;file not found&amp;quot;. (and hence the boot default is not saved for next boot)&lt;br /&gt;
&lt;br /&gt;
It seems that /boot/grub/default is not created at install and GRUB seems unable to create it.&lt;br /&gt;
&lt;br /&gt;
I have solved this on my box by calling &amp;quot;grub-set-default 0&amp;quot; once.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Install Grub==&lt;br /&gt;
Install grub&lt;br /&gt;
 # grub&lt;br /&gt;
 &amp;gt; root (hd0,1)&lt;br /&gt;
 &amp;gt; setup (hd0)&lt;br /&gt;
 &amp;gt; quit&lt;br /&gt;
&lt;br /&gt;
Note: (hd0,1) would be the second partition.  If boot is the first then it would be (hd0,0).&lt;br /&gt;
&lt;br /&gt;
==Restore/Repair GRUB MBR==&lt;br /&gt;
[http://linuxhelp.blogspot.com/2005/11/how-to-repair-corrupt-mbr-and-boot.html All about Linux: How to Repair a Corrupt MBR and boot into Linux]&lt;br /&gt;
To install GRUB boot loader on to your MBR:&lt;br /&gt;
 grub-install /dev/hda&lt;br /&gt;
&lt;br /&gt;
 mount /dev/hda1 /mnt&lt;br /&gt;
 sudo grub-install --no-floppy --root-directory=/mnt /dev/sda&lt;br /&gt;
 # --no-floppy - (optional) just says to not probe floppy drives too&lt;br /&gt;
&lt;br /&gt;
==Boot to Single User (Maintenance) Mode==&lt;br /&gt;
See [[Linux#Boot to Single User (Maintenance) Mode]]&lt;br /&gt;
&lt;br /&gt;
==Changing Runlevels at Boot Time==&lt;br /&gt;
Changing Runlevels at Boot Time:&lt;br /&gt;
* When the GRUB menu bypass screen appears at boot time, press any key to enter the GRUB menu (within the first three seconds).&lt;br /&gt;
* Press the a key to append to the kernel command.&lt;br /&gt;
* Add &amp;lt;space&amp;gt;&amp;lt;runlevel&amp;gt; at the end of the boot options line to boot to the desired runlevel. For example, the following entry would initiate a boot process into runlevel 3:&lt;br /&gt;
 grub append&amp;gt; ro root=/dev/VolGroup00/LogVol00 rhgb quiet 3&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Installation_Guide-en-US/s1-grub-runlevels.html 9.8. Changing Runlevels at Boot Time]&lt;br /&gt;
&lt;br /&gt;
== Boot Timeout ==&lt;br /&gt;
&lt;br /&gt;
Infinite timeout:&lt;br /&gt;
 # timeout=0&lt;br /&gt;
 or...&lt;br /&gt;
 timeout=-1&lt;br /&gt;
&lt;br /&gt;
Instant timeout:&lt;br /&gt;
 timeout=0&lt;br /&gt;
&lt;br /&gt;
== Samples ==&lt;br /&gt;
&lt;br /&gt;
=== ibm example ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# grub.conf generated by anaconda&lt;br /&gt;
#&lt;br /&gt;
# Note that you do not have to rerun grub after making changes to this file&lt;br /&gt;
# NOTICE:  You do not have a /boot partition.  This means that&lt;br /&gt;
#          all kernel and initrd paths are relative to /, eg.&lt;br /&gt;
#          root (hd0,5)&lt;br /&gt;
#          kernel /boot/vmlinuz-version ro root=/dev/sda6&lt;br /&gt;
#          initrd /boot/initrd-version.img&lt;br /&gt;
#boot=/dev/sda6&lt;br /&gt;
default=1&lt;br /&gt;
timeout=10&lt;br /&gt;
splashimage=(hd0,5)/boot/grub/splash.xpm.gz&lt;br /&gt;
#hiddenmenu&lt;br /&gt;
password --md5 $1$RW1VW/$4XGAklxB7/GJk0uO47Srx1&lt;br /&gt;
title Upgrade to Fedora 11 (Leonidas)&lt;br /&gt;
	kernel /boot/upgrade/vmlinuz preupgrade \ &lt;br /&gt;
      repo=hd::/var/cache/yum/preupgrade stage2=\&lt;br /&gt;
      hd:UUID=8b4c62e7-2022-4288-8995-5eda92cd149b:/boot/upgrade/install.img \&lt;br /&gt;
      ks=hd:UUID=8b4c62e7-2022-4288-8995-5eda92cd149b:/boot/upgrade/ks.cfg&lt;br /&gt;
	initrd /boot/upgrade/initrd.img&lt;br /&gt;
title Fedora (2.6.26.8-57.fc8)&lt;br /&gt;
	root (hd0,5)&lt;br /&gt;
	kernel /boot/vmlinuz-2.6.26.8-57.fc8 ro root=LABEL=FEDORA8 rhgb quiet&lt;br /&gt;
	initrd /boot/initrd-2.6.26.8-57.fc8.img&lt;br /&gt;
title Fedora (2.6.26.6-49.fc8)&lt;br /&gt;
	root (hd0,5)&lt;br /&gt;
	kernel /boot/vmlinuz-2.6.26.6-49.fc8 ro root=LABEL=FEDORA8 rhgb quiet&lt;br /&gt;
	initrd /boot/initrd-2.6.26.6-49.fc8.img&lt;br /&gt;
title GRUB Menu&lt;br /&gt;
	rootnoverify (hd0,1)&lt;br /&gt;
	chainloader +1&lt;br /&gt;
title Windows&lt;br /&gt;
	rootnoverify (hd0,0)&lt;br /&gt;
	chainloader +1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source: Learn Linux, 101: Boot managers - http://www.ibm.com/developerworks/library/l-lpic1-v3-102-2/index.html&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
		
	</entry>
</feed>