There are plenty of threads on similar topics-- their situations might be slightly different, but the overall advice is the same. Also, please note that AACOM is no longer doing grade replacement, so the setting has changed a bit since the 2000s.
Here's the thing: you can sit here and download a gpa calculator and try to figure out what your gpa might be and how many credits of 4.0 you need to hit 3.X and what classes you can fit in and how many years before you can apply and etc. etc. etc. I have been in that exact same situation (finished my sophomore year with a 2.5) and have spent and ungodly amount of time doing that. But the major thing you need to figure out is HOW you are going to do better. Plenty of people say "I know I can do better" when they haven't gotten an A since high school. They end up using their same study habits (either partying all the time or studying ineffectively all the time) and continuing to perform at a low standard. If it's problems at home, maybe take some time off. If you're repeatedly underperforming in science classes, cut your courseload to 0 or 1 science courses per semester and slowly scale back up. Even if it takes you an extra year or 2/3, its worth it (especially now that grade replacement is gone). Look over all your old exams, pick out which questions you got wrong, why you got them wrong, and how you're going to change your study strategy to not get them wrong in the future. These steps are key to identifying and addressing the issues you have. Sounds like your a procrastinator-- if it were me, I would take each major benchmark (ex. bio exam), create intermediate goals (by X date I will have read X chapter, by X date I will have taken and analyzed a practice exam, etc), and create penalties for every goal you miss (burpees have worked phenomenally for me). Could work it as a rewards system, but tbh I've found punishment more effective. All of this is just to give you an example of the things you should be thinking about, you now have to run your own diagnostics and put in the hard miles.
After (and only after) you've identified and addressed your issues (aka semester gpa > 3.5), time to start to figure out next steps (note: this may be during undergraduate or post-bacc, depends how long it takes you). The 3 adcoms I've talked to told me that to be considered adequate for med school, you need 3 years of good academic performance (I understood this as 3.5 minimum). Once you've done that, you're looking at MCAT (I'd guess you'd need 510+ alongside the 3.0-3.3 ugpa), potentially more post-bacc, or an SMP with a strong linkage (because IMO the ones without are just trying to beat you up and take your lunch money). But all of this is AFTER you figure out what is going on, do that first paragraph, and get some success.
My basis: I have been in those shoes and am applying now (3.0, 516, SMP at 3.5+, extensive shadowing and volunteer/professional experience). I can barely get DO schools to look at me after multiple cycles (have been told its for quantitative reasons). It's not impossible to get in from your position--but it requires immediate and intensive action before you dig a deeper hole for yourself (aka me).
Sorry if this seemed ranty/rambley/mean, just wish someone had done this to me a few years back...