<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:about='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/grub'
         s:cUser='kron'
         s:oUser=''
         s:mUser='retep'>
        <s:name>knowledgebase/linux/miscapplications/grub</s:name>
        <s:content>__Warning! These notes may render your system unbootable, cause data loss and/or complete system failure. Use them as your own risk!__&#xD;&#xA;&#xD;&#xA;1 Booting from the grub command line&#xD;&#xA;&#xD;&#xA;Booting grub from the command line just means typing in the commands normally found in the grub.conf (or menu.lst). &#xD;&#xA;&#xD;&#xA;For example if you were booting a Xen kernel, with a /boot/grub/grub.conf that should look like this:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;title Xen&#xD;&#xA;        root (hd0,0)&#xD;&#xA;        kernel /xen.gz dom0_mem=196608&#xD;&#xA;        module /vmlinuz-2.6.11.12-xen0 root=/dev/md1 ro console=tty0 panic=30 max_loop=96&#xD;&#xA;        module /initrd-2.6.11.12-xen0.img&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;You would type the following to boot the system from the grub prompt:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;grub&gt; root (hd0,0)&#xD;&#xA;grub&gt; kernel /xen.gz dom0_mem=196608&#xD;&#xA;grub&gt; module /vmlinuz-2.6.11.12-xen0 root=/dev/md1 ro console=tty0 panic=30 max_loop=96&#xD;&#xA;grub&gt; module /initrd-2.6.11.12-xen0.img&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Finally you issue the &apos;boot&apos; command and it&apos;ll start the boot procedure with the kernel etc you specified.&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;grub&gt; boot&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Note: the above notes are based on having a seperate /boot partition. If you __do not__ have a seperate /boot partition, use /boot instead of / before the filenames, e.g. /boot/xen.gz. These notes work fine on a RAID 1 setup as well.&#xD;&#xA;&#xD;&#xA;1 Installing grub on RAID 1&#xD;&#xA;&#xD;&#xA;This will install grub onto two RAID 1 disks. In this example they would be the first and second disks.&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;# grub&#xD;&#xA;grub&gt; root (hd0,0)&#xD;&#xA;grub&gt; setup (hd0)&#xD;&#xA;grub&gt; root (hd1,0)&#xD;&#xA;grub&gt; setup (hd1)&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;1 Missing stage1 stage2 stage_1_5 files from /boot/grub&#xD;&#xA;&#xD;&#xA;In RedHat, they&apos;re stored in /usr/share/grub/i386-redhat. All you need to do is copy them into place:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;cp /usr/share/grub/i386-redhat/stage1 /boot/grub/&#xD;&#xA;cp /usr/share/grub/i386-redhat/stage2 /boot/grub/&#xD;&#xA;cp /usr/share/grub/i386-redhat/*stage1_5 /boot/grub/&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;They may also live in /usr/share/grub/i386-pc.&#xD;&#xA;&#xD;&#xA;1 Grub Not Working, Even After A Reinstall: Removing Grub&#xD;&#xA;&#xD;&#xA;Sometimes we have found when installing a distro (e.g. Centos4) then re-installing the distro that the boot loader is not installed, or the &apos;old&apos; one is not overwritten.  It appears some distros check for an existing boot loader and don&apos;t try to overwrite in.&#xD;&#xA;&#xD;&#xA;When this is the case you will just get a grub prompt and no boot options.  Further re-installs don&apos;t change this.&#xD;&#xA;&#xD;&#xA;What you need to do is uninstall the boot loader.  You can boot into knoppix and run lilo -U /dev/sda (or hda or whatever).  Or if lilo is not readily available then use dd from knoppix: dd if=/dev/zero count=1000 of=/dev/sda (or hda or whatever).  This will zero out the first 1000 bytes on the disk removing the partition tables and any boot loader.  Do not run this on a disk when you need data from that disk.</s:content>
        <s:mTime>2006-10-24 22:46:58.0</s:mTime>
        <s:cTime>2005-09-26 22:14:45.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='#knowledgebase'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/mass emailing best practices'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/auto-restart'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/xen'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/grub boot cd'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfixadmin on debian sarge'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/distros/ubuntu'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/ant install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/mail/postfix with amavis and mysql'/>
                <rdf:li rdf:resource='#kron'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/disk quotas'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/liferay install on tomcat 5.5'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
