RE: installing a grub/lilo bootloader on the MBR of a MOUNTED hdd

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

 



Hello all,

Many thanks for your replies. Having tried all of your advice, I am stil at
square one.
Sometimes I get the error message that grub needs to be installed (but I
have all necessary files, configured correctly, copied from the original
server - sella). Secondly that it cannot find the device when I
specify --root-directory=DIR.

Having also tried Stuart's advice:
/sbin/grub-install /dev/hdc
there is no grub-install entry under /sbin/ so it didnt let me do it...

I am lost :(

Could someone guide me to how to install grub (or lilo - I just want the
disk to boot on its own) on a mounted HD (/dev/hdc2), where hdc1 is swap,
and hdc2 is /

I noticed that copying /dev/ from sella to the sellaClone was incomplete
because the drives were missing (the only thing copied was MAKEDEV); thus,
this is the only thing I have under /dev/ of sellaClone. I think this is
why, when I chroot to the mount point and issue grub-install /dev/hda2, it
cannot find the device under /dev/ (?)

Please help.

Khaled

First of all, can you tell me


-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of Stuart Sears
Sent: 19 October 2005 16:04
To: For users of Fedora Core releases
Subject: Re: installing a grub/lilo bootloader on the MBR of a MOUNTED
hdd


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Khaled wrote:
> Hi,
>
> I have duplicated a running server (sella) on my network to an empty hdd
> (sellaCone) mounted as /mnt/sellaClone on another hdd hosting Fedora 3
(host
> hdd=hda, sellaClone=hdc). Since I am cloning only the primary partition,
> only hdc2 is being cloned (suse 9.2 puts swap partition as hdc1).
>
> My problem is that having duplicated all imported info/directories, I need
> to create a bootloader on the MBR so that the disk can be booted on its
own.
> The question is how can I do this?
so you have cloned the entire root (/) filesystem on /mnt/sellaCone ?
okay, this might work (assuming everything is in place):
chroot /mnt/sellaCone
/sbin/grub-install /dev/hdc

if there is no /boot directory containing kernels and grub binaries this
will fail fairly horribly, however.

Stuart
- --
Stuart Sears RHCE RHCX
Who will save us from this plague of unrepentant top-posters?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDVlU8amPtx1brPQ4RAoj8AJ9zLMH1VE0Yrj1aAcb6DVC7rp6MtQCfc37k
daFhp5Deppes1LhfmhgYuvo=
=l2kk
-----END PGP SIGNATURE-----

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


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

  Powered by Linux