Peter Smout smoutpete at
Sun Oct 13 21:16:11 UTC 2013

On 13/10/13 21:58, Avi Greenbury wrote:
> pete smout wrote:
>> Failing this is there a way of 'cloneing' my current HDD onto the new
>> one so I can then upgrade from 13.04 to 13.10?
> Yeah, the general principle is to boot into single-user mode and then
> copy the full contents of the current disk onto the new one. It used to
> be that you'd create a filesystem on the new disk, mount it somewhere
> and copy the entire contents of the current one to it, install grub and
> reboot:
> # mkfs.ext3 /dev/sdb1
> # mkdir /mnt/from /mnt/to
> # mount /dev/sdb1 /mnt/to
> # mount /dev/sda1 /mnt/from
> # rsync -avz /mnt/from/ /mnt/to
> # grub-install /dev/sdb
> And then you'd have a complete system on the new disk[0]. It's a bit
> more complicated now that grub and fstab use UUIDs rather than
> traditional /dev/ paths - there's an additional step whereby you edit
> the configuration files appropriately. Exactly what you need to do
> depends on your filesystem layout (and for some the above wont be
> correct, either); if you're up for doing it this way could you describe
> your partitions layout and I'll send you what you need to do?

Many thanks for your answers. I've had a look at clonezilla and that
doesn't suite ATM due to knackered DVD drive! I had already looked into
gparted clone option but couldn't unmount the partition or boot from
live media!

I am currently looking into getting grub to boot direct from .iso file
but with no luck so far :-D

My current partition table looks like this (from gparted):

/dev/sda1 ext4 "/" 72.54 GiB
/dev/sda2 extended 1.99 GiB
/dev//sda5 linux-swap 1.99 GiB

My personal preference is for a complete clean install to new disk, time
to remove some clutter as I have too many GUI's installed and only use 2
of them (Unity & XBMC) the others are a throw back to when I 'hated'
Unity and was looking around at alternatives :)

If a clone is the only way to rescue this lappy (SMART errors on old
HDD) then I guess that can be done manually!


Peter S

More information about the ubuntu-users mailing list