install grub on disk image

Posted by Dima on Server Fault See other posts from Server Fault or by Dima
Published on 2011-06-20T22:36:38Z Indexed on 2011/06/21 0:23 UTC
Read the original article Hit count: 278

Filed under:
|
|
|
|

I have disk image with 2 partitions:

  1. Partition 1 has cramfs file system (read only). This partition contains all system files of the OS
  2. Partition 2 has ext3 file system. This partition has only configuration files that may be changed.

How can I install GRUB1 boot loader on MBR.

I tried to copy first 446 bytes of my hard disk and copy GRUB files to the /boot directory on the 1st (cramfs) partition.

I cannot use grub-install because I have disk image and not disk itself.

Any ideas?

© Server Fault or respective owner

Related posts about linux

Related posts about boot