Re: grub problem

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Dale Farnsworth
Date:  
To: PLUGd, PLUG-discuss
Subject: Re: grub problem
der.hans wrote:
> Could I dd the first 512 bytes off the original drive onto one of the new
> drives and have any hope that the system would actually boot off the new
> drive?


If you try it, you should copy only the first 446 bytes, which
contain the boot code. The next 64 bytes is the partition table,
which is likely not the same on each drive. The final 2 bytes
of the boot block (MBR) contain the signature: 0xAA55.

However, the boot code also contains fields that identify drive
number and sector offset where the next stage of the bootloader
is located. So, in general, it's not safe to copy the boot code
from drive to drive. This is also why grub fails to boot if
the removal of drives causes the boot drive number to change.

-Dale
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss