Kernel Newbies Archive on lore.kernel.org
 help / color / Atom feed
* Recover previous kernel
@ 2020-10-17 20:31 Palash Nigam
  2020-10-17 20:59 ` Valdis Klētnieks
  0 siblings, 1 reply; 2+ messages in thread
From: Palash Nigam @ 2020-10-17 20:31 UTC (permalink / raw)
  To: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 501 bytes --]

Hi all,

While building a new kernel i forgot to change the name of
CONFIG_LOCALVERSION in the .config file as a result my current kernel got
replaced by the one I was building. My original kernel still exists as
Pop_OS-oldkern.conf, and I can still boot into it once booting into the new
kernel fails.

Is there any way to reverse this?

I know I could just reinstall my OS again but I have some deadlines coming
up and can't afford to lose time in setting things up on my system :(

Regards,
palash

[-- Attachment #1.2: Type: text/html, Size: 813 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Recover previous kernel
  2020-10-17 20:31 Recover previous kernel Palash Nigam
@ 2020-10-17 20:59 ` Valdis Klētnieks
  0 siblings, 0 replies; 2+ messages in thread
From: Valdis Klētnieks @ 2020-10-17 20:59 UTC (permalink / raw)
  To: Palash Nigam; +Cc: kernelnewbies

[-- Attachment #1.1: Type: text/plain, Size: 825 bytes --]

On Sun, 18 Oct 2020 02:01:18 +0530, Palash Nigam said:

> While building a new kernel i forgot to change the name of
> CONFIG_LOCALVERSION in the .config file as a result my current kernel got
> replaced by the one I was building. 

Hold that thought for a moment...

> My original kernel still exists as Pop_OS-oldkern.conf, 

That would be a config file, not the actual kernel.  Unless Pop_OS has a
*really* bad naming convention for things...

> and I can still boot into it once booting into the new kernel fails.

If you can boot into it, it can't have been replaced.  So you've done something
to your system, but it's not what you *think* it is.

What does an 'ls -l' of /boot say (definitely need to check timestamps
on files)?  And are you using grub2 or something
else to load the kernel?




[-- Attachment #1.2: Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-17 20:31 Recover previous kernel Palash Nigam
2020-10-17 20:59 ` Valdis Klētnieks

Kernel Newbies Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/kernelnewbies/0 kernelnewbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kernelnewbies kernelnewbies/ https://lore.kernel.org/kernelnewbies \
		kernelnewbies@kernelnewbies.org
	public-inbox-index kernelnewbies

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernelnewbies.kernelnewbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git