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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



<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???

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




--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux