<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://beardedmaker.com/wiki/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://beardedmaker.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Grub"/>
		<link rel="alternate" type="text/html" href="https://beardedmaker.com/wiki/index.php?title=Grub&amp;action=history"/>
		<updated>2026-04-27T02:33:17Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.4</generator>

	<entry>
		<id>https://beardedmaker.com/wiki/index.php?title=Grub&amp;diff=172&amp;oldid=prev</id>
		<title>Beard: Created page with &quot;&lt;pre&gt; packages: 	grub  config: 	/boot/grub/grub.conf 		hard drive notation: (hd&lt;drive#&gt;,&lt;partition#&gt;) starting at 0 		global config: 			hiddenmenu - no additional menus 			pas...&quot;</title>
		<link rel="alternate" type="text/html" href="https://beardedmaker.com/wiki/index.php?title=Grub&amp;diff=172&amp;oldid=prev"/>
				<updated>2016-02-29T21:49:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; packages: 	grub  config: 	/boot/grub/grub.conf 		hard drive notation: (hd&amp;lt;drive#&amp;gt;,&amp;lt;partition#&amp;gt;) starting at 0 		global config: 			hiddenmenu - no additional menus 			pas...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
packages:&lt;br /&gt;
	grub&lt;br /&gt;
&lt;br /&gt;
config:&lt;br /&gt;
	/boot/grub/grub.conf&lt;br /&gt;
		hard drive notation: (hd&amp;lt;drive#&amp;gt;,&amp;lt;partition#&amp;gt;) starting at 0&lt;br /&gt;
		global config:&lt;br /&gt;
			hiddenmenu - no additional menus&lt;br /&gt;
			password --md5 &amp;lt;hash&amp;gt; - set grub password (use grub-md5-crypt to generate hash)&lt;br /&gt;
			default=&amp;lt;#&amp;gt; - default OS to load. # starts with 0.&lt;br /&gt;
			timeout=&amp;lt;#&amp;gt; - prompt timeout in seconds.&lt;br /&gt;
			splashimage=(hd0,1)/path - path to background image. usually compressed, ie file.xpm.gz&lt;br /&gt;
&lt;br /&gt;
		kernel config (must be tabbed like this):&lt;br /&gt;
			title &amp;lt;name&amp;gt;&lt;br /&gt;
				root (hd0,1)&lt;br /&gt;
				kernel /path &amp;lt;parameters&amp;gt;&lt;br /&gt;
				initrd /path&lt;br /&gt;
&lt;br /&gt;
			title &amp;lt;windows OS&amp;gt;&lt;br /&gt;
				rootnoverify (hd0,0)&lt;br /&gt;
				chainloader +1&lt;br /&gt;
&lt;br /&gt;
		kernel parameters:&lt;br /&gt;
			rhgb (red hat graphical boot) - use splash&lt;br /&gt;
			nosmp - disables symmetrical multi-processing support&lt;br /&gt;
			mem=&amp;lt;#&amp;gt;M - forces detection of physical memory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
other:&lt;br /&gt;
	stage 1 - resides on MBR/GPT and points to stage 1.&lt;br /&gt;
	stage 1.5 - reside in /boot/grub. loads filesystem support and loads stage 2.&lt;br /&gt;
	stage 2 - reside in /boot/grub. displays the actual screen and boots kernels and stuff.&lt;br /&gt;
	grub does NOT need to be reinstalled after changing the config.&lt;br /&gt;
	grub refers to the partition which contains stage 2 as the &amp;quot;grub root partition&amp;quot;. if on separate partition, usually the config is /grub/grub.conf instead&lt;br /&gt;
&lt;br /&gt;
commands:&lt;br /&gt;
	at grub menu:&lt;br /&gt;
		e - edit&lt;br /&gt;
		c - cli&lt;br /&gt;
&lt;br /&gt;
	grub cli:&lt;br /&gt;
		help&lt;br /&gt;
		can type 	&amp;quot;kernel &amp;lt;options&amp;gt;&amp;quot; [enter]&lt;br /&gt;
					&amp;quot;initrd &amp;lt;options&amp;gt;&amp;quot; [enter]&lt;br /&gt;
					&amp;quot;boot&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	grub-install - command available in restore mode. reinstalls damaged grub&lt;br /&gt;
	grub-install /dev/sda - installs grub stage 1 into MBR. also do grub-install /dev/sda1 to install onto first partition.&lt;br /&gt;
	&lt;br /&gt;
grub password:&lt;br /&gt;
&lt;br /&gt;
	grub-crypt --md5 - use to generate hash&lt;br /&gt;
&lt;br /&gt;
	paste [hash] into grub.conf under global config as:&lt;br /&gt;
		password --md5 [hash]&lt;br /&gt;
	&lt;br /&gt;
	Example:&lt;br /&gt;
		gfxmenu (hd0,4)/message&lt;br /&gt;
		color white/blue black/light-gray&lt;br /&gt;
		default 0&lt;br /&gt;
		timeout 8&lt;br /&gt;
		password --md5 $1$lS2dv/$JOYcdxIn7CJk9xShzzJVw/&lt;br /&gt;
&lt;br /&gt;
	lockalternative=true - global config, locks the grub menu.&lt;br /&gt;
	lock - add this arg on new line under each OS section which should be password protected&lt;br /&gt;
&lt;br /&gt;
new grub method:&lt;br /&gt;
	grub-mkpasswd-pbkdf2 - generate password hash&lt;br /&gt;
	add to /etc/grub.d/40_custom:&lt;br /&gt;
		set superusers=&amp;quot;grubroot&amp;quot;&lt;br /&gt;
		password_pbkdf2 grubroot [hash]&lt;br /&gt;
	&lt;br /&gt;
	update-grub&lt;br /&gt;
&lt;br /&gt;
	add to /etc/init.d/10_linux after 'printf &amp;quot;menuentry':&lt;br /&gt;
		--users grubroot&lt;br /&gt;
&lt;br /&gt;
	...so that it looks like: printf &amp;quot;menuentry --users grubroot ...&lt;br /&gt;
&lt;br /&gt;
	update-grub&lt;br /&gt;
&lt;br /&gt;
USING WINDOWS BOOT LOADER TO DUAL BOOT LINUX:&lt;br /&gt;
	if windows overwrites MBR, use System Rescue to modify /boot/grub/grub.conf and reinstall grub.&lt;br /&gt;
	alternatively, you can use windows boot loader to load linux. to do this, you must add additional components to the windows boot loader.&lt;br /&gt;
	EasyBCD can be downloaded from neosmart.net.&lt;br /&gt;
&lt;br /&gt;
	using EasyBCD:&lt;br /&gt;
		copy grub.conf to removable media&lt;br /&gt;
		install windows&lt;br /&gt;
		install EasyBCD on windows&lt;br /&gt;
		open EasyBCD and click Add New Entry&lt;br /&gt;
		click the NeoGrub tab&lt;br /&gt;
		click install in the NeoGrub tab&lt;br /&gt;
		click Configure. this opens C:\NST\menu.lst in notepad&lt;br /&gt;
		copy the contents of grub.conf into menu.lst&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Beard</name></author>	</entry>

	</feed>