I only have one partition in my sda harddisk. I don't have an sdb partition. Changing the OS will delete all of my data.

If I create a new partition and copy my data there, will this work?


Yes!

however, put this in mind

  • make sure the partition is in the end block of your drive, otherwise you will not be able to resize it back to its original size
  • make sure to not format or delete the partition because there is no way to restore your data
  • some Linux distros will force you to use the whole disk e.g fedora Linux, so be aware