Well, I deleted my kernel .config. Is there any way to magically
re-create it from the compiled kernel image or any other way?
- Grant
01-23-2009, 01:22 AM
Saphirus Sage
Deleted my kernel .config
You could look for the .config files from earlier kernels, unless
you've cleared out all your directories except the one with the most-
recent release.
On Jan 22, 2009, at 9:12 PM, Grant <emailgrant@gmail.com> wrote:
Well, I deleted my kernel .config. Is there any way to magically
re-create it from the compiled kernel image or any other way?
- Grant
01-23-2009, 01:28 AM
Crob
Deleted my kernel .config
Grant:
> Well, I deleted my kernel .config. Is there any way to magically
> re-create it from the compiled kernel image or any other way?
>
> - Grant
>
>
>
yes if you had selected 'kernel .config support' when you made the
kernel. that's in the 'General setup'.
if you did that you'll find /proc/config.gz over there.
01-23-2009, 02:03 AM
Grant
Deleted my kernel .config
>> Well, I deleted my kernel .config. Is there any way to magically
>> re-create it from the compiled kernel image or any other way?
>>
>> - Grant
>>
>>
>>
>
> yes if you had selected 'kernel .config support' when you made the
> kernel. that's in the 'General setup'.
> if you did that you'll find /proc/config.gz over there.
I do have /proc/config.gz, but when I move it to
/usr/src/2.6.25-hardened-r13 and run 'make oldconfig' it comes up with
many differences. I'm booted into 2.6.25-hardened-r11 and there
shouldn't be any config differences between that and r13. Does anyone
know what's going on here?
- Grant
01-23-2009, 02:04 AM
Volker Armin Hemmann
Deleted my kernel .config
On Freitag 23 Januar 2009, Grant wrote:
> Well, I deleted my kernel .config. Is there any way to magically
> re-create it from the compiled kernel image or any other way?
>
> - Grant
there are good reasons to use debianutils+make install to install new kernels
....
01-23-2009, 04:24 AM
Dale
Deleted my kernel .config
Volker Armin Hemmann wrote:
> On Freitag 23 Januar 2009, Grant wrote:
>
>> Well, I deleted my kernel .config. Is there any way to magically
>> re-create it from the compiled kernel image or any other way?
>>
>> - Grant
>>
>
> ls /boot
>
> ls /boot
> boot config-2.6.28r4.old grub memtest86plus
> System.map-2.6.28r4 System.map.old vmlinuz-2.6.28r4 vmlinuz.old
> config-2.6.28r4 dmesg_fsck_segfault lost+found System.map
> System.map-2.6.28r4.old vmlinuz vmlinuz-2.6.28r4.old
>
> config - there it is!
>
> there are good reasons to use debianutils+make install to install new kernels
> ....
>
>
>
Or just copy .config over to /boot yourself. I do that when I have a
stable kernel.
Dale
:-) :-)
01-23-2009, 06:37 AM
KH
Deleted my kernel .config
Saphirus Sage schrieb:
> You could look for the .config files from earlier kernels, unless
> you've cleared out all your directories except the one with the
> most-recent release.
>
> On Jan 22, 2009, at 9:12 PM, Grant <emailgrant@gmail.com> wrote:
>
>> Well, I deleted my kernel .config. Is there any way to magically
>> re-create it from the compiled kernel image or any other way?
>>
>> - Grant
>>
>
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
01-23-2009, 06:44 AM
KH
Deleted my kernel .config
Dale schrieb:
>
> Or just copy .config over to /boot yourself. I do that when I have a
> stable kernel.
>
> Dale
>
> :-) :-)
>
>
+1
I even asked to add this to the gentoo kernel upgreat guide but devs
didn't like this idea.
kh
01-23-2009, 06:51 AM
Dirk Heinrichs
Deleted my kernel .config
Am Freitag, den 23.01.2009, 08:44 +0100 schrieb ext KH:
> Dale schrieb:
> >
> > Or just copy .config over to /boot yourself. I do that when I have a
> > stable kernel.
> >
> > Dale
> >
> > :-) :-)
> >
> >
> +1
> I even asked to add this to the gentoo kernel upgreat guide but devs
> didn't like this idea.
Maybe they would be more keen on adding a note about /proc/config
support to that guide.
KH wrote:
> Dale schrieb:
>
>> Or just copy .config over to /boot yourself. I do that when I have a
>> stable kernel.
>>
>> Dale
>>
>> :-) :-)
>>
>>
>>
> +1
> I even asked to add this to the gentoo kernel upgreat guide but devs
> didn't like this idea.
>
> kh
>
>
>
I'll show this just in case it will give someone ides.
root@smoker / # ls -al /boot/
total 6970
drwxr-xr-x 4 root root 1024 Jan 16 01:46 .
drwxr-xr-x 22 root root 512 Dec 17 06:07 ..
-rw-r--r-- 1 root root 0 Jun 11 2008 .keep
-rw-r--r-- 1 root root 1204147 Dec 8 19:20 System.map
-rw-r--r-- 1 root root 941986 Sep 11 2006 System.map-2.6.17-gentoo-r7
lrwxrwxrwx 1 root root 1 Dec 16 21:09 boot -> .
-rw-r--r-- 1 root root 2460088 Jan 2 20:13 bzImage-2.6.23-r8-7
-rw-r--r-- 1 root root 2288336 Dec 30 07:49 bzImage-2.6.27-r7-1
-rw-r--r-- 1 root root 44461 Aug 12 02:07 config-2.6.23-r8-5
-rw-r--r-- 1 root root 47940 Dec 13 04:50 config-2.6.25-gentoo-r9-1
-rw-r--r-- 1 root root 47438 Aug 5 22:43 config-2.6.25-r7-1
-rw-r--r-- 1 root root 47324 Aug 12 17:59 config-2.6.25-r7-2
drwxr-xr-x 2 root root 1024 Jan 16 01:43 grub
drwx------ 2 root root 12288 Jul 10 2008 lost+found
root@smoker / #
I generally name the config with the same info as the kernel. Also note
the naming of my kernels. I may need to clean out some more but I try
to keep at least two or three kernels laying around too. Never know,
one may get corrupted or deleted accidentally. Edit the grub boot line
and carry on.