Okay, so I accidentally deleted all my modules from
/lib/modules. All the old ones and the current ones.
During a disk analyzer session to clean up space, I saw that
/lib was taking up a TON of space, and I have NEVER before seen this taking up this much space before in Disk Analyzer. The thing is, I have recently made a
/lib folder under my
/home/Development for building some Android kernels. So When I looked at this and not having seen it like this before, I thought I was looking at my
/lib folder for my Android kernels. I didn't even take a second to look at the hierarchy before going into it and pulling it up in terminal, I was just set on removing what was taking up excessive amounts of space. When i saw how much space was being taken up, my thinking just went to - "remove."
So I went into the lib folder and deleted all the old ones, I don't remember the whole names exactly but I do remember there were ones from I believe 29 and up, in .0-29-generic-pae, and all the way up to forty. I normally don't mess around in these folders, especially deleting things, only adding things I made need for Android Development. So now, my Ubuntu boots and runs and I have access to all my system, but I have no modules which means no drivers, which means I can't connect my external HDD where I copied .0-40-generic-pae to, and I can't connect to the internet to download the modules. Can anyone help me with this?
I was told to just purge my kernel and reinstall it, and that was headache free, I'm getting a headache just figuring out how to properly do so with what I have access to.
The second suggestion was to boot into a live session and download what I need, back it up (I guess mount my current Ubuntu partition and put it there), and then install. Well I can do that, I can boot live session, plug in my external HDD, mount my Ubuntu partition, and copy the 40-generic-pae modules I have to that system. I believe I can do this, correct? Would this be the way to go? If so, should I just copy the whole folder
/package straight back into
/lib/modules, and then reboot? Or is there a different way I should do it? Thank you very much for your help. I do not want to just wipe and re-install when there could be an alternate way to fix this, possibly even easy way, because I have TONS of data I do not want to lose, and without those modules, I can't back them up anywhere.
By the way, they aren't in my trash because I used
rm -r, so no restoring from trash.