It's a long time since I did it. You used to be able to turn up on an M1 and apply for 'change of status' which is where you get a different visa category when you're already in the US. People would get as much done as possible on the M1 then change to the F1 (J1 when I did it). It's definitely worth doing your research.