by Socaltom » Mon Nov 17, 2014 3:43 pm
$this->bbcode_second_pass_quote('krabat', 'I')f you've got an opportunity to mount both the old and new drive on a Linux box then you could use rsync, e. g.
$this->bbcode_second_pass_code('', '# rsync -ADlrogpt --delete <path to old root dir>/ <path to new root dir>/')Don't forget the trailing slashes and run as root.
If you're using dedicated partitions for parts of the FHS, e. g. /boot or /home, you'll have to run the command with all of them.
Next you have to setup the boot loader.
If you keep using the drive the boot loader was installed on, e. g. by leaving /boot on the small thumb drive and only move /root to a different drive, then you'll only have to change the kernel parameter root.
Otherwise it's necessary to install the boot loader from scratch.
It depends a little bit on the device you are using. if you don't have a special boot partition, then You can use rsync, make sure you unmount the 1 TB drive ( or it will try and copy it too). If you have the special boot partition then you need to recreate the partions on the new drive, then rsync both
This should do it
$this->bbcode_second_pass_code('', 'rsync -aAXv --progress --exclude={,"/run/*","/media/*","/lost+found"} /* /path/to/backup/folder')