rsync & grub - clarification

Fraser Campbell fraser-eicrhRFjby5dCsDujFhwbypxlwaOVQ5f at public.gmane.org
Sun Apr 24 22:24:17 UTC 2005


On April 13, 2005 07:15 am, Alan Cohen wrote:

> Clarification:
> If I ever DO have to use the backup (because the "main" IDE goes bad),
> the IDE disk in the USB enclosure (/dev/sda while in the USB enclosure)
> will be removed and placed in the main box thus becoming /dev/hda !  So,
> what I need to do is to insure that it will be bootable as a regular IDE
> disk when that happens.

I expect (especially since you use grub) that you might be able to just 
duplicate the MBR. Wild guess:

  dd bs=512 count=1 < /dev/hda > /dev/sda

To make it clear that this is a wild guess let me mention some concerns ;-)

- no idea if 512 bytes is correct size
- due to above, could destroy data on removable IDE
- removable drive geometry may have to be the same (or similar) to fixed drive

-- 
Fraser Campbell <fraser-Txk5XLRqZ6CsTnJN9+BGXg at public.gmane.org>                 http://www.wehave.net/
Georgetown, Ontario, Canada                               Debian GNU/Linux
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list