Cloning to a new larger drive
Tech Notes
- Install the new drive and format
$
- Unmount the source and the target
$
- Copy the source to the target
$ sudo dd if=/dev/sdc1 of=/dev/sdb1 bs=16M
- Remove the journalling from the target
$ tune2fs -O^has_journal /dev/sdb1
- Check the filesystem of the target
$ e2fsck -f /dev/sdb1
- Resize the target
$ sudo resize2fs -p /dev/sdb1
- Apply journalling to the target
$ sudo tune2fs -j /dev/sdb1
- Mount the target
$