On Thu, 3 Jul 2008 16:00:11 +0300, Noam Rathaus <[EMAIL PROTECTED]> wrote:
>
> The problem is solved, the error still there if I do it from the rescue disk,
> but it boots if I do it manually from the grub prompt.
>
> Once it booted, I re-run grub-install and now it works without doing it from
> the prompt :)
You can run the grub-install from the rescue disk by the following
commands (assume you have the root partition mounted on /mnt/newroot)
## 1st, you need to create /dev/sda<xxx> or /dev/hda<xxx> devices
## (depending on your kernel and hard disk) on /mnt/newroot/dev
## sda
mknod /mnt/newroot/dev/sda b 8 0
mknod /mnt/newroot/dev/sda1 b 8 1
## hda
mknod /mnt/newroot/dev/hda b 3 0
mknod /mnt/newroot/dev/hda1 b 3 1
## 2nd, chroot to the installed root & grub-install
chroot /mnt/newroot
mount /sys ## I'm not sure if you really need this command
## Anyway, You should have sysfs in your fstab
#### if you need to make init ram disk:
## /sbin/mkinitrd -f /boot/initrd-<kernel-name>.img <kernel-name>
/sbin/grub-install /dev/sda
I did it several times to duplicate a Fedora installation.
I have a script that does all the needed operation: fdisk, mkfs, mkswap
mount and untarring, fix some etc files (motd, mail) and grub install.
I advise you to at least delete the /etc/ssh/ssh_host* files (they will
be recreated - i.e. new keys - when you run sshd).
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]