Transfer Linux to new hard drive
If got new hard drive and would like to move your Linux system to new drive here is what you need to do.
First mount your system partition to new folder so that system directories like /dev and other system directories don't interfere with transfer process.
mkdir /mnt/system /mnt/new-hdd mount /dev/sda1 /mnt/system mount /dev/sdb1 /mnt/new-hdd
cd /mnt/system sudo tar --backup -c * | sudo tar -C /mnt/new-hdd -xv
And that is it.