FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 01-23-2009, 01:12 AM
Grant
 
Default 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
 
Old 01-23-2009, 01:22 AM
Saphirus Sage
 
Default 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
 
Old 01-23-2009, 01:28 AM
Crob
 
Default 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.
 
Old 01-23-2009, 02:03 AM
Grant
 
Default 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
 
Old 01-23-2009, 02:04 AM
Volker Armin Hemmann
 
Default 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

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
....
 
Old 01-23-2009, 04:24 AM
Dale
 
Default 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

:-) :-)
 
Old 01-23-2009, 06:37 AM
KH
 
Default 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?
 
Old 01-23-2009, 06:44 AM
KH
 
Default 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
 
Old 01-23-2009, 06:51 AM
Dirk Heinrichs
 
Default 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.

Bye...

Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
 
Old 01-23-2009, 06:53 AM
Dale
 
Default Deleted my kernel .config

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.

Neat huh?

Dale

:-) :-)
 

Thread Tools




All times are GMT. The time now is 07:47 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org