[Gllug] upgrading to a larger disc

Chris Jones cmsj at tenshu.net
Tue Jan 8 16:45:04 UTC 2008


Hi

t.clarke wrote:
> Any suggestions as to the best/easiest/quickest way to move a Debian linux
> system onto a larger hard disc, keeping most of the partitions the same size,
> but enlarging some?

Plug the disk into the existing machine, set up the partitions how you
want, format them, then reboot the machine into single user mode, make
sure nothing is running that would substantially change the disk data,
and rsync all the files over to the right partitions. If you are using
grub, grub-install the new disk. If you don't change the partition
order, you shouldn't need to change anything else. If you do change the
partition order, you'll need to update things like grub/fstab configs to
use the new partition names (unless you use UUIDs).

Unless your disk is really full, this will probably be quicker/easier
than dd'ing the whole thing and resizing/moving partitions after the fact.

Cheers,
-- 
Chris Jones
  cmsj at tenshu.net
   www.tenshu.net
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list