2008/7/4 Ehud Karni <[EMAIL PROTECTED]>:
> 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

I am aware the the OP got it solved, but just as an exercise -
wouldn't it make more sense to use "mount --bind" like this:

mount --bind /dev /mnt/newroot/dev
and while we are at it:
mount --bind /boot /mnt/newroot/boot (if required)
mount --bind /sys /mnt/newroot/sys
mount --bind /proc /mnt/newroot/proc

?

That's what I use as part of getting Ubuntu desktop installation to use lvm2.

--Amos

=================================================================
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]

Reply via email to