Ok, so I am attempting to do a clean install of Ubuntu 24.04 from Ubuntu 22.04
I wanted to have my /home directory intact on a different hard drive so I could get info back after the install.
I thought I could use the mv command to do that just before I did the install and I did this. I went to where the hard drive is mounted and did a mv command.
mv /home /media/don/Archive/savedhome
This seemed to have work but I have some questions. This command created a directory structure on the other hard drive and it appears all the directories and files are there as well. I expected the original /home directory to disappear after the command was completed but it is still there.
So did the mv command really work? It is like I did a cp instead of a mv. This is fine as all this will be destroyed when I install the new OS but it is contrary to my understanding of the mv command.
If you do a mv command across hard drives is it supposed to behave like a copy command? Am I safe to just go ahead and do the install or do I need to use a cp command or something?
I really would like to have a better understanding of what is happening with the mv command. I tried to research this but I haven't found any discussion about using the mv command from one hard drive to another.
If you need any additional info please let me know. Thanks