Moving system to newly added disk - am I doing it right?
Hi,
I have just added a new SSD to my laptop alongside the original HDD. I plan to use SSD for system, and HDD for data. I intend to do it following way:
- copy stuff from / to new disk (boot, etc, opt, root, usr, var)
- create links and mountpoints (like bin, home, mnt...)
- replace the entries in fstab (remove old root partition on HDD, add new partition on SSD)
- set the SSD as bootable
- reboot
I do not plan to touch the old root partition on HDD in order to have some backup option. At least for now.
Now the question is:
Would it work properly? Or did I miss something?
Edit:
I forgot about installing grub - thanks for reminding about it!
System is now moved and running properly. I made two mistakes along the way: first I incorrectly partitioned new SSD, and later I put wrong mounting parameters in new fstab.
Old root partition is left in place, and by choosing in BIOS which disk to use, I can boot one or other system - just in case.
Thanks all for help!
Posted Nov 28, 2020, 10:48 PM UTC · edited
I've done this, but I did it via clonezilla, doing a full disk clone, then expanded the partition to fit the new available space, then chrooted in via the install medium to regen fstab and reinstall the bootloader. I actually did it to move an install to a new computer entirely. Worked fine. I would 100% back up your home directory before you try though.
Thanks for reminding me of the bootloader reinstall. I forgot that!
System is up and running.