Re: Problems reinstalling grub/lilo (they always hang at boot time ...)



On Fri, 28 Apr 2006 09:10:49 -0700, iforone wrote:


Douglas Mayne wrote:

I could post a grub bootable CD image if you think that would help.



This would most certainly help me in the future :-)

<snip>

Thanks for giving me the opportunity to post this. I think a tool like
this would be useful. Obviously, there are rescue discs which can do some
of the same things. I have one of my own, for example (Doesn't everyone?):
http://www.xmission.com/~ddmayne2/10.2-live/index.html

But that is a bigger download, and if you are only in need of
fixing the loader, then perhaps this smaller tool will suffice. Here is
Grub version 0.97 written as an iso image. It is a small image for sure
(less that 1M expanded.) I tested it quickly with VMWare, and it appears
to work. Notice that there is no default menu, it will drop you directly
at the grub boot command line. From there you must enter commands
appropriate for your system. For example:

Example 1:
grub> rootnoverify (hd0,0)
grub> makeactive
grub> chainloader +1
grub> boot


Example 2:
grub> root (hd1,0)
grub> kernel /boot/vmlinuz ro root=/dev/hdb1
grub> boot

Example 3:
grub> rootnoverify (hd1)
grub> chainloader +1
grub> boot

Review the grub documentation here for more usage details:
http://www.gnu.org/software/grub/manual/html_node/index.html

-- NO WARRANTY (A DISCLAIMER) --
Use of this software is subject to the provisions of the GPL license:
http://www.xmission.com/~ddmayne2/grub/COPYING

The statement below emphasizes the "No Warranty" provisions of the GPL (see
Sections 11 and 12 of the above document.) This statement applies to this
software project, a bootable iso image which encapsulates the grub
loader, v0.97:

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Source Code: The source code for grub is widely available on the internet.
Here is one location:
ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz
I used the version compiled from the Slackware (r) Linux Project, version
10.2:
http://mirrors.xmission.com/slackware/slackware-10.2/extra/source/grub/grub-0.97.tar.gz
http://mirrors.xmission.com/slackware/slackware-10.2/extra/grub/grub-0.97-i486-1.tgz


Specific Instructions:

1. Obtain software (compressed image and checksum) here:
http://www.xmission.com/~ddmayne2/grub/v0.97/grub.iso.gz
http://www.xmission.com/~ddmayne2/grub/v0.97/md5sums

These are the correct values:
45a81605715e1a557317bfcfa3e99191 grub.iso
acb3abf4a252b605c8b54c46da6b428c grub.iso.gz


2. Expand image and verify MD5SUM checksum:
# cat grub.iso.gz | gzip -cd >grub.iso
# md5sum -c md5sums

3. Burn and verify the iso image file, grub.iso using the cd writing tool
of your choice. Remember: this is the cd _image_.

4. Test booting system with new cd. See examples above.

Here are some more points to consider when using grub, as I have
written earlier when testing grub:
http://groups.google.com/group/comp.os.linux.setup/msg/86f68934908589ba

Specifically, use extreme caution installing grub on the partition of
advanced filesystems, such as ReiserFS, XFS, JFS.

The grub project continues to do very good work, and I look forward to
grub, version 2.

(r) Slackware is a registered trademark of Patrick Volkerding and the
Slackware Linux Project.

--
Douglas Mayne
.



Relevant Pages

  • Re: Problem booting FreeBSD from cboot FreeBSD from cdrom using grubdrom using grub
    ... >> I'm trying to make an iso image that will boot FreeBSD using GRUB boot ... I needed to use GRUB because I had ... to create a multi-OS DVD-ROM which contained FreeBSD, ...
    (freebsd-hackers)
  • Re: Install grub to CD, but use HD grub.conf?
    ... > I need to create a grub boot CD for a laptop so that I can dual boot ... > FC3 with Windows without touching the laptop drive's MBR. ... > grub read the HD grub.conf so that it'll automatically work after kernel ... ISO image automatically, or run a script regularly or something. ...
    (Fedora)
  • Re: [opensuse] Emergency CD?
    ... >> assumption that it will boot me into my installed system in the same ... would have installed GRUB on your harddisk. ... Change into a directory in which to create the ISO image, ...
    (SuSE)
  • Re: [SLE] Cant boot boot iso
    ... but it boots to the grub menu every time. ... The laptop will boot the 10.0 cd ... Normal is that iso image contains boot section, and all you have to do is to ...
    (SuSE)
  • Re: Linux and Windows Disk Drive imaging
    ... in Fedora 11 it installs as a menu entry in old grub, ... It has the interesting feature that it can boot iso images ... I.e. it knows look for files inside the iso image. ...
    (sci.electronics.design)