jondz on 19 Oct 2007 19:26:38 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] How best to replace old drive with new drive


what i would do is dd for the root partition only (that takes care of
the /dev files) and copy everything else manually (cp -a, rsync or
chaining tar c with tar x) .  do not do a dd on the disk itself
( absolutely do not dd /dev/hda, but do it on /dev/hda1 carefully)

then install grub manually ( grub-install /dev/hdx ? ).  I always dont
get this one right  the first time after i remove the old disk but grub
usually boots anyway and pass arguments on grub menu pointing to the new
disk and adjust from there.

another trick i do when copying root fs is switching to single user mode
and remounting it readonly.  I can dd from there, but run fsck on the
new copy.  Thats probably not safe but i've done it a couple of times.

jondz

 
On Fri, 2007-10-19 at 12:36 -0400, Mike Leone wrote:
> So I've got a mail server that has an old HD. And I wanna replace it with a
> larger one, which I happen to have lying about. I know there's any number of
> ways to clone the HD (me, I like Ghost, but I also have DriveImageXML, and I
> suppose I could even do a dd). Anyways, if I were to Ghost to the new drive,
> what would I need to do to make grub run on it? I seem to remember doing
> this before, and getting a new drive with larger partitions, but grub
> wouldn't run.
> 
> A pointer or clue, anyone? Something about booting a Knoppix LiveCD, and
> running "grub-install", I believe?
> 
> Thanks
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug