Andy's solution is probably the best but if you want something more simple you could always use Clonezilla, just download the live cd and boot from that. It will let you clone single partitions or entire disks and you can tell it the 3rd partition will be larger on the new disk, it'll deal with that automatically. It's very clever. It essentially will be using tools like dd and rsync under the surface but it gives you a much simpler interface. You should be able to put both disks in the machine, clone the old drive to the new one and then just swap them and boot up I think. I'm not sure how it will deal with GRUB but I presume if you clone the disk that will be copied too. You might still have to reinstall it though.<br>
<br><a href="http://clonezilla.org/">http://clonezilla.org/</a><br><br>I'm no sysadmin guru and I bow to Andy's superior knowledge on this but I think this solution should work as well. It's really up to you. Worth trying Clonezilla on your other machines anyway, it really kicks Ghost into touch for me and it's all GPL. I know a few people who use it on their enterprise set ups at work. I use it to make bootable images of my machines as backups, I've restored a few and it's really seamless, works for Linux, Mac or Windows.<br>
<br>Just had to throw my 2 pence in there sorry hehe :)<br><br>Dan<br><br><br><div class="gmail_quote">On Mon, Jan 19, 2009 at 11:48 AM, Andrew Williams <span dir="ltr"><<a href="mailto:andy@tensixtyone.com">andy@tensixtyone.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">2009/1/19 Adrian McEwen <<a href="mailto:adrian@mcqn.net">adrian@mcqn.net</a>>:<br>
<div><div></div><div class="Wj3C7c">> Morning all,<br>
><br>
> A quick (I hope) techie question...<br>
><br>
> My CentOS-based server has been running low on disk space, so I've bought a<br>
> shiny new 0.5TB drive for it. Rather than graft the new drive onto the<br>
> existing filesystem (because I want to keep the install nice and simple and<br>
> the e-smith distro is happiest with a single drive) I want to move<br>
> everything from the existing drive onto the new one.<br>
><br>
> What's the easiest and quickest way to copy everything from the old drive to<br>
> the new one?<br>
><br>
> I'm thinking of booting from a Knoppix CD with both drives connected up and<br>
> then using "dd" to copy the contents of the old drive onto the new. Is that<br>
> sensible? Anything I need to worry about other than the partition table?<br>
><br>
> The partition layout is [boot partition | swap partition | everything else<br>
> partition] and it's the "everything else" partition that will be larger, so<br>
> I'm assuming that will all work okay?<br>
<br>
</div></div>Best thing to do is to replicate the parition setup on the new drive,<br>
so same size boot, same size swap and the larger other drive.<br>
<br>
Then, boot Knoppix and mount the existing and new partions side by<br>
side, so for example /mnt/boot-old and /mnt/boot-new. Then use rsync<br>
between the drives, this will ensure that you get a 1:1 copy.<br>
<br>
After doing the two partitions, remember to disable the old drive,<br>
boot Knoppix and re-install grub on the new drive, once that is done<br>
you should be able to reboot and start up. Remember, keep the old<br>
drive available for a few days to make sure that backup is 1:1 :)<br>
<br>
--<br>
Andrew Williams / Nik_Doof<br>
w: <a href="http://tensixtyone.com/" target="_blank">http://tensixtyone.com/</a><br>
e: <a href="mailto:andy@tensixtyone.com">andy@tensixtyone.com</a><br>
<br>
_______________________________________________<br>
Liverpool mailing list<br>
<a href="mailto:Liverpool@mailman.lug.org.uk">Liverpool@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/liverpool" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/liverpool</a><br>
</blockquote></div><br>