Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Is a distro independent grub boot possible using a boot partition???

From: John Summerfield <debian(at)herakles.homelinux.org>
Date: Thu Jan 31 2008 - 19:21:12 EST


Joe(theWordy)Philbrook wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Is a distro independent grub boot possible using a boot partition???

yes it is.
Create a small partition. For the sake of argument, we will assume it's /dev/hda1
Format it and install grub's files in it. See the grub docs for detailed information. Read until it becomes clear:-)

Install its boot record to /dev/hda

For every other distro, install its boot record to its partition.

The grub menu in the grub partition needs to point to each Linux distro (and Windows).

You might consider adding a menu entry for each Linux distro (and Windows) to boot the MBR so you can get back to the original menu.

Note that if you want to boot something not in the menu, you can go the grub's commandline and do it there.

The only problem I see with reusing a Mepis partition is it's way bigger than you need. 1 Mbyte should be enough.

Do you need help?X

><snip>

> confirm that before I wing it because unlike my old pc there is no
> floppy so I can't test it with "grub-install /dev/fd0" first. So I guess
> I'm asking if that's all there is to it?

Adapt and run this script; it will create a boot CD:

09:11 [summer@numbat ~]$ cat bin/grub-cdrom #!/bin/bash
set -e
iso=$(mktemp -d /tmp/isoXXXXXX)
ls -dl ${iso}
cd ${iso}
mkdir -p boot/grub
cp -p /usr/share/grub/*/stage2_eltorito boot/grub cat <<. >boot/grub/menu.lst
default=0
timeout=20
$( [ -f boot/grub/splash.xpm.gz ] && echo splashimage=/boot/grub/splash.xpm.gz)
title Boot from disk

         root (hd0)
         chainloader +1
         boot

.
cp -l boot/grub/menu.lst boot/grub/grub.conf cat boot/grub/grub.conf
mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot \

         -boot-load-size 4 -boot-info-table -o /tmp/grub.iso . ls -hl /tmp/grub.iso
rm -rf ${iso}
echo cdrecord -blank=fast -sao -eject /tmp/grub.iso 09:11 [summer@numbat ~]$

>
> But what I really want to know is once the grub installed to the mbr is
> booting from (hd0,2) using the menu.lst from that partition, will it
> continue to boot from the mbr if the linux that installed it to the mbr
> is no longer there?

It needs the partition where its stage 1.5 and stage 2 live.

>
> Or will I always have to reinstall grub to the mbr from some other
> installed linux before I trash the distro that last installed it???

Do you need more help?X

never ever replace the MBR "because it seemed a good idea."

-- 

Cheers
John

-- spambait
1aaaaaaa@coco.merseine.nu  Z1aaaaaaa@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.phphttp://www.catb.org/~esr/faqs/smart-questions.htmlhttp://support.microsoft.com/kb/555375

You cannot reply off-list:-)

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-list
Received on Thu Jan 31 19:21:51 2008

This archive was generated by hypermail 2.1.8 : Sun May 25 2008 - 12:46:47 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library