Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month at the Massachusetts Institute of Technology, in Building E51.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] I, uh, deleted the wrong kernel....



Fixed.  Big sigh, cold drink, already started the process of updating my
backup (which did NOT have that kernel. I checked).

So I did the  USB boot/mnt/chroot trick to basically get a running
system with the hard drive as root.  Very neat. Have to remember that
one for sure.  Also had to copy /etc/hosts and /etc/resolv.conf so
networking worked right.

I ran an apt-get clean and an apt-get update.  Once apt wasn't trying to
install stuff from other failed experiments, and just install what I
asked, it was able to reinstall the *28* kernel, abi file, etc with no
problems. 

One other note: When I updated grub while in the chrooted shell, it
added the existing kernels to the menu, which is what I needed to move
forward. It did not add Windows (remember this is a dual boot machine). 
But once I got it booted into Linux and updated Grub again, it found
Windows and added that back in.

Side note: I think I just decided this is my last dual-boot desktop
system.  Decent hardware is too cheap to put up with this. Currently I
only boot into Windows for gaming.  But I do that almost every day. That
means I'm rebooting my machine twice a day, and I can't quickly do
something on Linux while I'm booted into Windows.  I will also add, that
I'm quite impressed with Windows 10, and how it's stealing features from
Linux, like multiple desktops.

I also have homework assignments to look more into grub, and into
apt-get autoclean.  My problem is solved, but I need to know them better.

Thank you all for your help and advise.  Hope I included enough links
and details for the next person who faces this.


On 09/30/2016 10:14 AM, Ben Carr wrote:
> You should have other kernels if you are Debian based unless you
> removed all the others with `rm` as others have mentioned. You might
> want to look into the auto-clean features of you distro, this will
> allow you to say keep, 3 or 4 kernels in case one fails, such as a
> regression in a driver you need. If you have no other kernels on your
> system you will likely be forced to boot from other media, like USB or
> CD, or DVD. You will want to install the current kernel, but also
> update grub, it sounds like grub hasn't been updated. Are you building
> your own kernels or using distro kernels?
> -Ben




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org