The commands won't erase the contents of the drive unless something goes wrong, it will just change the fs type.