Argh.  Got the mkdir's wrong.  Here's a corrected version, no guarantees
etc.:

Assuming sdc is the source drive and sdd is the destination:
>
> cfdisk /dev/sdd   # make a big Linux partition called sdd1, and a swap
> partition roughly 2x RAM size called sdd2
> mkfs.ext4 /dev/sdd1  # format sdd1  (caution -- make dead sure sdd1 is the
> destination)
> mkswap /dev/sdd2  # format swap partition (caution)
> mkdir /mnt/src
> mkdir /mnt/dst
> mount /dev/sdc1 /mnt/src  # make source accessible under /mnt/src
> mount /dev/sdd1 /mnt/dst  # make destination accessible under /mnt/dst
> ls -la /mnt/src  # confirm you're looking at the old drive
> ls -la /mnt/dst # confirm this is the new drive -- only thing showing
> should be an empty lost+found directory
> rsync -HaSx  /mnt/src/ /mnt/dst/  # do the copy -- all of these flags are
> important, as well as the trailing slashes
> rsync -PHaSvx /mnt/src/ mnt/dst/  # alternative, verbose version of the
> above command
> mount -t proc none /mnt/dst/proc   # get things set up for the chroot
> mount -o bind /dev /mnt/dst/dev
> mount -t sysfs sys /mnt/dst/sys
> chroot /mnt/dst/ /bin/bash  # start a new shell using /mnt/dst as /
> grub-install /dev/sdd  # install boot loader (caution)
> exit   # leave the chroot
> umount /mnt/dst/proc  # tear down the chroot
> umount /mnt/dst/dev
> umount /mnt/dst/sys
> umount /dev/sdc1  # detach the source and target drives from the live
> filesystem tree
> umount /dev/sdd1
>
> All of that mount and chroot stuff towards the end is to enable you to use
> the new drive's version of grub to install the boot loader in the boot
> track of the new drive.  Google for 'chroot grub-install' for more details
> about this.
>

Steve
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to