How to change your shell in Linux and using RSYNC to clone and migrate drives
I frequently use SysRescueCD to perform a variety of tasks. In this case I was wanting to clone a hard drive onto a new SSD. However, the default shell in SysRescueCD is zsh, and it doesn’t interpret commands how I’m use to. To change shell:
chsh -s $(which bash)
You will need to logout or open a new shell for that change to take effect. Now, the magic rsync one liner to clone drive 1 to drive 2 …
cd /mnt/YourOldDrive ; rsync -aAXv ./* /mnt/YourNewDrive –exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/*/.gvfs}
Comment
You must be logged in to post a comment.