chroot owns i got familiar with it when doing gentoo installs On Mon, Dec 22, 2008 at 3:03 PM, Sir Light wrote: > Erich, > > I think you still have to do the "grub-install /dev/hdc" because it does more than write that boot sector. > > An easy way to do it would be to do a "chroot /newdrive/newroot". Before doing this, make sure you setup some like /newdrive/newroot and /newdrive/newroot/boot with the right partitions mounted on them... then do the chroot, then do the grub-install and you shoudl be set to go. > > Jon > ---- Erich Newell wrote: >> So...after mulling this over more, I think my best bet is: >> >> dd if=/dev/hda of=dev/hdc bs=446 count=1 >> >> Anyone? >> >> On Mon, Dec 22, 2008 at 12:44 PM, Erich Newell wrote: >> > I have a server that is remotely hosted and has a drive with over 48k >> > hours on it (and still running strong)...my hosting company is >> > providing a free replacement and I need to migrate everything over and >> > have the system come back up gracefully without any physical >> > interaction...other than one drive being stuck in the second drive bay >> > temporarily and the original being taken out and replaced with the >> > second drive when ready. >> > >> > Here's what I have: >> > >> > /dev/hda - 60GB old drive >> > hda1 Boot Primary Linux ext3 78.45 >> > Pri/Log Free Space 1.04 >> > hda2 Primary Linux swap / Solaris 1074.00 >> > hda3 Primary Linux ext3 58869.01 >> > >> > /dev/hdc - 80GB new drive >> > hdc1 Boot Primary Linux ext3 74.84 >> > hdc2 Primary Linux swap / Solaris 511.97 >> > hdc3 Primary Linux ext3 79439.57 >> > >> > /etc/fstab >> > /dev/hda3 / ext3 usrquota,grpquota,errors=remount-ro 0 1 >> > proc /proc proc defaults 0 0 >> > /dev/hda2 none swap sw 0 0 >> > /dev/hda1 /boot ext3 defaults 0 2 >> > >> > By my thinking...I should be able to: >> > >> > mkdir /newdrive >> > mkdir /newdrive/{boot,newroot} >> > >> > mount -t ext3 /dev/hdc1 /newdrive/boot >> > mount -t ext3 /dev/hdc3 /newdrive/newroot >> > >> > rsync -av / /newdrive/newroot >> > rsync -av /boot /newdrive/boot >> > >> > grub >> > >> > grub> root (hd0,0) >> > grub> setup (hd1) >> > >> > and then shutdown, pull hdc and put it in hda and fire it up. >> > >> > What I'm uncertain of is the "setup (hd1)" bit....will this setup the >> > boot field in some way such that it will not work? >> > >> > If the drives were the same, I'd feel comfortable using dd to simply >> > copy over the MBR, but since they are not, I'm worried about wrecking >> > my partition table. >> > >> > >> > Thoughts and advice are urgently needed. Thanks!!! >> > >> > - Erich >> > >> > -- >> > "A man is defined by the questions that he asks; and the way he goes >> > about finding the answers to those questions is the way he goes >> > through life." >> > >> >> >> >> -- >> "A man is defined by the questions that he asks; and the way he goes >> about finding the answers to those questions is the way he goes >> through life." >> --------------------------------------------------- >> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us >> To subscribe, unsubscribe, or to change your mail settings: >> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > > --------------------------------------------------- > PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us > To subscribe, unsubscribe, or to change your mail settings: > http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss > -- A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button. Stephen --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss