Re: GRUB woes (install to hde)

From: Mike McCarty (mike.mccarty_at_sbcglobal.net)
Date: 09/30/05

  • Next message: Mike McCarty: "Re: backup compress on the fly"
    Date: Fri, 30 Sep 2005 13:45:11 -0500
    To: debian-user@lists.debian.org
    
    

    Alvin Oga wrote:
    >
    > On Fri, 30 Sep 2005, Matt Price wrote:
    >
    >
    >>non-identical, old disks which likely have bad sectors (so don't want to
    >>dd if=/dev/hde of=/dev/hdf or similar).
    >
    >
    > good ... than use tar or cp or any other fs dependent copying
    >
    >
    >>so then, question is: how to run grub, preferably non-interactively,
    >>in such a way that it actually works (which I guess means, in such a
    >>way that it finds the stage2 file in /boot/grub).
    >
    >
    > assuming that you can boot it as /dev/hde, /dev/hdf, it does NOT
    > mean that it will boot as /dev/hda
    >
    > trivial way to make it boot as /dev/hda:
    > - assuming you are currently booting from /dev/hda to make the
    > clone
    > dd if=/dev/hda of=/dev/hde bs=446 count=1

    This works if /dev/hda is the exact same size and partitioning
    as /dev/hde. Is dd smart enough to copy the sector out, insert 446
    bytes, and then write the entire sector back in? Or the file
    system, or somebody? Otherwise, I'd fear possibly clobbering the
    PT information, even though specifying a bs < 512. The disc
    is going to get commanded to write 512 bytes for sure.

    [snip some good stuff]

    > - it does NOT matter that /dev/hde can boot or not ... since that
    > is not its final destination and is pointless to make it boot,
    > especially if the motherboard will not boot /dev/hde
    > (anything that is not on the motherboard,. which is likely on old bios )

    Yes.

    Mike

    -- 
    p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
    This message made from 100% recycled bits.
    You have found the bank of Larn.
    I can explain it for you, but I can't understand it for you.
    I speak only for myself, and I am unanimous in that!
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Mike McCarty: "Re: backup compress on the fly"

    Relevant Pages