You mean an m2 drive? Sure. If you just mean data such as files and not like a partition or moving your whole operating system then all you need to do is format the DESTINATION drive (careful not to format the source) to a file system then copy your files there.
If you want to move partitions or a whole install gparted can do that. Do be very careful when doing things like cloning disks or partitions though, especially if you’re using the terminal always double and triple check your commands and the relevant disk designations are correct.
If you can get a good job writing closed source software that gives you a decent quality of life and gives you the free-time to contribute to some open source projects outside of work I think you’ll still do good for FOSS. Don’t let perfect be the enemy of the good.
At the end of the day we have to be realistic with ourselves about the world we find ourselves in and the limits of the power of an individual in it. Starving for the sake of some imagined purity or living a lower quality of life isn’t Marxist. As long as you’re not directly abetting the imperialism machine by working for some ghoulish NATO defense contractor I don’t think you have that much to feel badly about.
That said there’s things like programming around helping coordinate mass transit and provide info to travelers. Programming for industrial machinery including especially in areas not related to manufacturing of goods like power, utilities, and though that’s pretty specialized if you can get your foot in the door you have a fairly interesting skill-set. Government jobs for government agencies are also an option.
There are companies that write open source software that isn’t free to companies (e.g. they charge for use when used as part of a profitable enterprise or sell support packages to large enterprises) but they aren’t that great in number and to get in the door you’ve a better chance if you have something on your resume already which means unfortunately working for a for-profit, usually closed source company.
Hypocrisy is good and well for the idealist to worry about. The realist however cares more about feeding the children, feeding themselves and doing what they can with what they have. There is in the FOSS movement a certain idealism among many that think via free computing they can free humanity when in reality you must via revolution free humanity to free computing. FOSS is a rebel insurrection against capitalism but not one that can ever change the superstructure or base in any meaningful way on their own.
Never forget under capital you are forced under duress to sell your labor, it is not your fault, you are not a bad person for doing so and for doing so under conditions less than ideal for people who uphold a way of doing things you find philosophically repugnant.
So try, try to find something that fits these ideals but if you cannot, do not feel too badly.