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 may need for Android Development.
I accidentally deleted all my modules from
Now my Ubuntu boots and runs and I have access to all my system, but I have no modules.
I have no drivers, which means I can't connect my external HDD where I copied
.0-40-generic-paeto, and I can't connect to the internet to download the modules.
The accidentally deleted modules aren't in my trash because I used
rm -r, so no restoring from trash.
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.
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 that I do not want to loose, and without those modules I can't back them up anywhere.
Another 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
/packagestraight back into
/lib/modules, and then reboot?
- Or is there a different way I should do it?
Can anyone help me with this?