public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Deleted my kernel .config
@ 2009-01-23  2:12 Grant
  2009-01-23  2:22 ` Saphirus Sage
                   ` (2 more replies)
  0 siblings, 3 replies; 32+ messages in thread
From: Grant @ 2009-01-23  2:12 UTC (permalink / raw
  To: Gentoo mailing list

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  2:12 [gentoo-user] Deleted my kernel .config Grant
@ 2009-01-23  2:22 ` Saphirus Sage
  2009-01-23  7:37   ` KH
  2009-01-23  2:28 ` Crob
  2009-01-23  3:04 ` Volker Armin Hemmann
  2 siblings, 1 reply; 32+ messages in thread
From: Saphirus Sage @ 2009-01-23  2:22 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

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
>



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  2:12 [gentoo-user] Deleted my kernel .config Grant
  2009-01-23  2:22 ` Saphirus Sage
@ 2009-01-23  2:28 ` Crob
  2009-01-23  3:03   ` Grant
  2009-01-23  3:04 ` Volker Armin Hemmann
  2 siblings, 1 reply; 32+ messages in thread
From: Crob @ 2009-01-23  2:28 UTC (permalink / raw
  To: gentoo-user

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.



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  2:28 ` Crob
@ 2009-01-23  3:03   ` Grant
  2009-01-23  8:28     ` Justin
  2009-01-23 13:23     ` Ricardo Saffi Marques
  0 siblings, 2 replies; 32+ messages in thread
From: Grant @ 2009-01-23  3:03 UTC (permalink / raw
  To: gentoo-user

>> 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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  2:12 [gentoo-user] Deleted my kernel .config Grant
  2009-01-23  2:22 ` Saphirus Sage
  2009-01-23  2:28 ` Crob
@ 2009-01-23  3:04 ` Volker Armin Hemmann
  2009-01-23  5:24   ` Dale
  2 siblings, 1 reply; 32+ messages in thread
From: Volker Armin Hemmann @ 2009-01-23  3:04 UTC (permalink / raw
  To: gentoo-user

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 
....



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  3:04 ` Volker Armin Hemmann
@ 2009-01-23  5:24   ` Dale
  2009-01-23  7:44     ` KH
  0 siblings, 1 reply; 32+ messages in thread
From: Dale @ 2009-01-23  5:24 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-)



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  2:22 ` Saphirus Sage
@ 2009-01-23  7:37   ` KH
  0 siblings, 0 replies; 32+ messages in thread
From: KH @ 2009-01-23  7:37 UTC (permalink / raw
  To: gentoo-user

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?



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  5:24   ` Dale
@ 2009-01-23  7:44     ` KH
  2009-01-23  7:51       ` Dirk Heinrichs
  2009-01-23  7:53       ` Dale
  0 siblings, 2 replies; 32+ messages in thread
From: KH @ 2009-01-23  7:44 UTC (permalink / raw
  To: gentoo-user

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  7:44     ` KH
@ 2009-01-23  7:51       ` Dirk Heinrichs
  2009-01-23  7:53       ` Dale
  1 sibling, 0 replies; 32+ messages in thread
From: Dirk Heinrichs @ 2009-01-23  7:51 UTC (permalink / raw
  To: gentoo-user

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  7:44     ` KH
  2009-01-23  7:51       ` Dirk Heinrichs
@ 2009-01-23  7:53       ` Dale
  2009-01-23  8:16         ` Dirk Heinrichs
  1 sibling, 1 reply; 32+ messages in thread
From: Dale @ 2009-01-23  7:53 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-)



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  7:53       ` Dale
@ 2009-01-23  8:16         ` Dirk Heinrichs
  2009-01-23  8:45           ` Dale
  0 siblings, 1 reply; 32+ messages in thread
From: Dirk Heinrichs @ 2009-01-23  8:16 UTC (permalink / raw
  To: gentoo-user

Am Freitag, den 23.01.2009, 01:53 -0600 schrieb ext Dale:

> I'll show this just in case it will give someone ides.

Here's another approach:

% ll /boot
insgesamt 9644
lrwxrwxrwx 1 root root       1 17. Jan 2006  boot -> ./
drwxr-xr-x 2 root root    1024 21. Mai 2008  grub/
drwx------ 2 root root   12288 11. Okt 2005  lost+found/
-rw-r--r-- 1 root root 4892720 22. Jan 14:25 vmlinux-2.6.28.1.gz
-rw-r--r-- 1 root root 4892272 16. Jan 15:32 vmlinux-2.6.28.gz
lrwxrwxrwx 1 root root      19 22. Jan 14:26 vmlinux.gz ->
vmlinux-2.6.28.1.gz
lrwxrwxrwx 1 root root      17 22. Jan 14:26 vmlinux.old.gz ->
vmlinux-2.6.28.gz

No System.map (what's it good for, anyway?)
No .config (it's in /proc/config.gz).
No need to edit grub.conf as the symlinks are updated using a small
script (which also removes old module directories from /lib/modules).
No initrd as an embedded initramfs is used (hence the size of the
kernels).

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  3:03   ` Grant
@ 2009-01-23  8:28     ` Justin
  2009-01-23  8:40       ` Dirk Heinrichs
                         ` (2 more replies)
  2009-01-23 13:23     ` Ricardo Saffi Marques
  1 sibling, 3 replies; 32+ messages in thread
From: Justin @ 2009-01-23  8:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 925 bytes --]

Grant schrieb:
>>> 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
>
>   
do one of those two things and it should work:

zcat /proc/config.gz >/usr/src/linux/.config

or

/usr/src/linux/scripts/extract-ikconfig /boot/YOURKERNEL >
/usr/src/linux/.config.

Than run make oldconfig.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:28     ` Justin
@ 2009-01-23  8:40       ` Dirk Heinrichs
  2009-01-23  8:45         ` Justin
  2009-01-23 13:24       ` Ricardo Saffi Marques
  2009-01-23 14:39       ` Grant
  2 siblings, 1 reply; 32+ messages in thread
From: Dirk Heinrichs @ 2009-01-23  8:40 UTC (permalink / raw
  To: gentoo-user

Am Freitag, den 23.01.2009, 09:28 +0100 schrieb ext Justin:

> do one of those two things and it should work:
> 
> zcat /proc/config.gz >/usr/src/linux/.config
> 
> or
> 
> /usr/src/linux/scripts/extract-ikconfig /boot/YOURKERNEL >
> /usr/src/linux/.config.

What if he doesn't have CONFIG_IKCONFIG_PROC=y in his (running) kernel?

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:16         ` Dirk Heinrichs
@ 2009-01-23  8:45           ` Dale
  2009-01-23  8:54             ` Dirk Heinrichs
  0 siblings, 1 reply; 32+ messages in thread
From: Dale @ 2009-01-23  8:45 UTC (permalink / raw
  To: gentoo-user

Dirk Heinrichs wrote:
> Am Freitag, den 23.01.2009, 01:53 -0600 schrieb ext Dale:
>
>   
>> I'll show this just in case it will give someone ides.
>>     
>
> Here's another approach:
>
> % ll /boot
> insgesamt 9644
> lrwxrwxrwx 1 root root       1 17. Jan 2006  boot -> ./
> drwxr-xr-x 2 root root    1024 21. Mai 2008  grub/
> drwx------ 2 root root   12288 11. Okt 2005  lost+found/
> -rw-r--r-- 1 root root 4892720 22. Jan 14:25 vmlinux-2.6.28.1.gz
> -rw-r--r-- 1 root root 4892272 16. Jan 15:32 vmlinux-2.6.28.gz
> lrwxrwxrwx 1 root root      19 22. Jan 14:26 vmlinux.gz ->
> vmlinux-2.6.28.1.gz
> lrwxrwxrwx 1 root root      17 22. Jan 14:26 vmlinux.old.gz ->
> vmlinux-2.6.28.gz
>
> No System.map (what's it good for, anyway?)
> No .config (it's in /proc/config.gz).
> No need to edit grub.conf as the symlinks are updated using a small
> script (which also removes old module directories from /lib/modules).
> No initrd as an embedded initramfs is used (hence the size of the
> kernels).
>
> Bye...
>
> 	Dirk
>   

But if a kernel gets corrupted or accidentally deleted, there will be no
/proc/config.gz since the kernel won't boot.  I have that turned on here
to but I'm not going to put all my eggs in that one basket.  I couldn't
write a script anyway plus I only update kernels once in a blue moon
anyway.  I'm still running 2.6.23 right now.  The new one is compiled
and ready but I just haven't rebooted in a while.

I was wondering about that system.map thing.  It's been there a long
while.  I just redone my install and I only saved /boot, make.conf,
world and a couple other files, plus my /home naturally.

Dale

:-)  :-)



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:40       ` Dirk Heinrichs
@ 2009-01-23  8:45         ` Justin
  2009-01-23  8:57           ` Dirk Heinrichs
  2009-01-23 13:14           ` Norberto Bensa
  0 siblings, 2 replies; 32+ messages in thread
From: Justin @ 2009-01-23  8:45 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

Dirk Heinrichs schrieb:
> Am Freitag, den 23.01.2009, 09:28 +0100 schrieb ext Justin:
>
>   
>> do one of those two things and it should work:
>>
>> zcat /proc/config.gz >/usr/src/linux/.config
>>
>> or
>>
>> /usr/src/linux/scripts/extract-ikconfig /boot/YOURKERNEL >
>> /usr/src/linux/.config.
>>     
>
> What if he doesn't have CONFIG_IKCONFIG_PROC=y in his (running) kernel?
>
> Bye...
>
> 	Dirk
>   
Than he has a non solvable problem recovering his config. But, who will
remove this option?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:45           ` Dale
@ 2009-01-23  8:54             ` Dirk Heinrichs
  2009-01-23  9:24               ` Dale
  2009-01-24  1:08               ` Man Shankar
  0 siblings, 2 replies; 32+ messages in thread
From: Dirk Heinrichs @ 2009-01-23  8:54 UTC (permalink / raw
  To: gentoo-user

Am Freitag, den 23.01.2009, 02:45 -0600 schrieb ext Dale:

> But if a kernel gets corrupted or accidentally deleted

mount -oremount,ro /boot solves that problem for me. It's the last
command in the update script I mentioned before. And there's always
GRML, just in case :-)

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:45         ` Justin
@ 2009-01-23  8:57           ` Dirk Heinrichs
  2009-01-23  9:47             ` Justin
  2009-01-23 13:14           ` Norberto Bensa
  1 sibling, 1 reply; 32+ messages in thread
From: Dirk Heinrichs @ 2009-01-23  8:57 UTC (permalink / raw
  To: gentoo-user

Am Freitag, den 23.01.2009, 09:45 +0100 schrieb ext Justin:
> But, who will remove this option?

This is how it looks like in a freshly unpacked kernel tree (or after
make mrproper):

< > Kernel .config support

So I guess kernel devs did it for him.

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:54             ` Dirk Heinrichs
@ 2009-01-23  9:24               ` Dale
  2009-01-24  1:08               ` Man Shankar
  1 sibling, 0 replies; 32+ messages in thread
From: Dale @ 2009-01-23  9:24 UTC (permalink / raw
  To: gentoo-user

Dirk Heinrichs wrote:
> Am Freitag, den 23.01.2009, 02:45 -0600 schrieb ext Dale:
>
>   
>> But if a kernel gets corrupted or accidentally deleted
>>     
>
> mount -oremount,ro /boot solves that problem for me. It's the last
> command in the update script I mentioned before. And there's always
> GRML, just in case :-)
>
> Bye...
>
> 	Dirk
>   

I better stick with my way.  None of that made any sense to me.  o_O

Dale

:-)  :-)



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:57           ` Dirk Heinrichs
@ 2009-01-23  9:47             ` Justin
  0 siblings, 0 replies; 32+ messages in thread
From: Justin @ 2009-01-23  9:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

Dirk Heinrichs schrieb:
> Am Freitag, den 23.01.2009, 09:45 +0100 schrieb ext Justin:
>   
>> But, who will remove this option?
>>     
>
> This is how it looks like in a freshly unpacked kernel tree (or after
> make mrproper):
>
> < > Kernel .config support
>
> So I guess kernel devs did it for him.
>
> Bye...
>
> 	Dirk
>   
kk, thats an argument. I never started from a fresh tree, always from a
existing .config.

Some days ago I found this line in my grub.conf:

# grub.conf generated by anaconda


So it might be, that my kernel-config's history reaches back more than
five years to my old fedora days. :)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:45         ` Justin
  2009-01-23  8:57           ` Dirk Heinrichs
@ 2009-01-23 13:14           ` Norberto Bensa
  2009-01-23 13:19             ` Alejandro
  1 sibling, 1 reply; 32+ messages in thread
From: Norberto Bensa @ 2009-01-23 13:14 UTC (permalink / raw
  To: gentoo-user

Quoting Justin <justin@j-schmitz.net>:

> Than he has a non solvable problem recovering his config. But, who will
> remove this option?

Not remove, but someone (me for example) could make it =m ;-)

In that case you just do:

modprobe configs
gunzip -c /proc/config.gz > /usr/src/linux/.config
make oldconfig



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.





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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:14           ` Norberto Bensa
@ 2009-01-23 13:19             ` Alejandro
  2009-01-23 13:24               ` Justin
  2009-01-23 13:44               ` Norberto Bensa
  0 siblings, 2 replies; 32+ messages in thread
From: Alejandro @ 2009-01-23 13:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

2009/1/23 Norberto Bensa <nbensa@gmail.com>

> Quoting Justin <justin@j-schmitz.net>:
>
>  Than he has a non solvable problem recovering his config. But, who will
>> remove this option?
>>
>
> Not remove, but someone (me for example) could make it =m ;-)
>
> In that case you just do:
>
> modprobe configs
> gunzip -c /proc/config.gz > /usr/src/linux/.config
> make oldconfig
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
 Why make oldconfig? Is not better just do make and make && modules_install?
make oldconfig only can give you problems i don,t see any benefict.. just my
person experience...

[-- Attachment #2: Type: text/html, Size: 1249 bytes --]

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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  3:03   ` Grant
  2009-01-23  8:28     ` Justin
@ 2009-01-23 13:23     ` Ricardo Saffi Marques
  1 sibling, 0 replies; 32+ messages in thread
From: Ricardo Saffi Marques @ 2009-01-23 13:23 UTC (permalink / raw
  To: gentoo-user

Grant wrote:
> 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?

$ cd /usr/src/2.6.25-hardened-r13
$ zcat /proc/config.gz > .config
$ make oldconfig

:-)

-- 
Ricardo Saffi Marques
http://www.las.ic.unicamp.br/~saffi/
======================================================
Laboratory of System Administration and Security - LAS
Institute of Computing - IC
P.O. Box: 6176
University of Campinas - UNICAMP
13083-852, Campinas, SP, Brazil
======================================================




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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:28     ` Justin
  2009-01-23  8:40       ` Dirk Heinrichs
@ 2009-01-23 13:24       ` Ricardo Saffi Marques
  2009-01-23 14:39       ` Grant
  2 siblings, 0 replies; 32+ messages in thread
From: Ricardo Saffi Marques @ 2009-01-23 13:24 UTC (permalink / raw
  To: gentoo-user

Justin wrote:
> do one of those two things and it should work:
> 
> zcat /proc/config.gz >/usr/src/linux/.config
> 
> or
> 
> /usr/src/linux/scripts/extract-ikconfig /boot/YOURKERNEL >
> /usr/src/linux/.config.
> 
> Than run make oldconfig.

Oops, my bad. It had already been answered! :-)

-- 
Ricardo Saffi Marques
http://www.las.ic.unicamp.br/~saffi/
======================================================
Laboratory of System Administration and Security - LAS
Institute of Computing - IC
P.O. Box: 6176
University of Campinas - UNICAMP
13083-852, Campinas, SP, Brazil
======================================================




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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:19             ` Alejandro
@ 2009-01-23 13:24               ` Justin
  2009-01-23 13:51                 ` Dirk Heinrichs
  2009-01-23 14:00                 ` Norberto Bensa
  2009-01-23 13:44               ` Norberto Bensa
  1 sibling, 2 replies; 32+ messages in thread
From: Justin @ 2009-01-23 13:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 601 bytes --]

Alejandro schrieb:
>
>
>
>  Why make oldconfig? 
To get all new options in your .config.
> Is not better just do make and make && modules_install? 
It is the normal way to do a make && make modules_install afterwards.
> make oldconfig only can give you problems 
NEVER just always hit enter if you were asked how the new option should
be handled. Read carefully and decide. Plus always make menuconfig and
recheck your config. But nevertheless you need to do a make odlconfig to
adopt your .config to the new config options.
> i don,t see any benefict.. just my person experience...



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:19             ` Alejandro
  2009-01-23 13:24               ` Justin
@ 2009-01-23 13:44               ` Norberto Bensa
  2009-01-23 13:52                 ` Alejandro
  2009-01-23 15:09                 ` Dale
  1 sibling, 2 replies; 32+ messages in thread
From: Norberto Bensa @ 2009-01-23 13:44 UTC (permalink / raw
  To: gentoo-user

On Fri, Jan 23, 2009 at 11:19 AM, Alejandro <elcorreodeale@gmail.com> wrote:

> make oldconfig only can give you problems i don,t see any benefict.. just my
> person experience...

I have never seen any problem with make oldconfig, YMMV, but stating
it _will_ give you problems is simply not true.



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:24               ` Justin
@ 2009-01-23 13:51                 ` Dirk Heinrichs
  2009-01-23 14:00                 ` Norberto Bensa
  1 sibling, 0 replies; 32+ messages in thread
From: Dirk Heinrichs @ 2009-01-23 13:51 UTC (permalink / raw
  To: gentoo-user

Am Freitag, den 23.01.2009, 14:24 +0100 schrieb ext Justin:

> But nevertheless you need to do a make odlconfig to
> adopt your .config to the new config options.

Errh, no. I've built nearly every kernel version since a couple of years
and never did "make oldconfig". If it's a minor revision, config options
usually don't change. For a major revision, it's sufficient to pick any
one of the several *config targets.

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



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:44               ` Norberto Bensa
@ 2009-01-23 13:52                 ` Alejandro
  2009-01-23 15:09                 ` Dale
  1 sibling, 0 replies; 32+ messages in thread
From: Alejandro @ 2009-01-23 13:52 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 407 bytes --]

2009/1/23 Norberto Bensa <nbensa@gmail.com>

> On Fri, Jan 23, 2009 at 11:19 AM, Alejandro <elcorreodeale@gmail.com>
> wrote:
>
> > make oldconfig only can give you problems i don,t see any benefict.. just
> my
> > person experience...
>
> I have never seen any problem with make oldconfig, YMMV, but stating
> it _will_ give you problems is simply not true.
>
> Sorry i forget something make menuconfig :P

[-- Attachment #2: Type: text/html, Size: 772 bytes --]

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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:24               ` Justin
  2009-01-23 13:51                 ` Dirk Heinrichs
@ 2009-01-23 14:00                 ` Norberto Bensa
  1 sibling, 0 replies; 32+ messages in thread
From: Norberto Bensa @ 2009-01-23 14:00 UTC (permalink / raw
  To: gentoo-user

On Fri, Jan 23, 2009 at 11:24 AM, Justin <justin@j-schmitz.net> wrote:
> But nevertheless you need to do a make odlconfig to
> adopt your .config to the new config options.

Nope. That's not true.

The diference between "oldconfig" and just "make" is that oldconfig
will present a prompt when a new option was added. You could as well
run menuconfig, and you'll see new options labeled with NEW, or
something like that.

If you just run make (without doing oldconfig or menuconfig first),
then the new options will take the default build option. It may vary
between Y and N depending on the module, developer, God, a photon
coming out of some distant star, and the mood of a butterfly sitting
in some flower on Japan.

Regards,
Norberto



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:28     ` Justin
  2009-01-23  8:40       ` Dirk Heinrichs
  2009-01-23 13:24       ` Ricardo Saffi Marques
@ 2009-01-23 14:39       ` Grant
  2 siblings, 0 replies; 32+ messages in thread
From: Grant @ 2009-01-23 14:39 UTC (permalink / raw
  To: gentoo-user

>>>> 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
>>
>>
> do one of those two things and it should work:
>
> zcat /proc/config.gz >/usr/src/linux/.config
>
> or
>
> /usr/src/linux/scripts/extract-ikconfig /boot/YOURKERNEL >
> /usr/src/linux/.config.
>
> Than run make oldconfig.

Thanks a lot, *.gz* was supposed to tell me that. :)

- Grant



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23 13:44               ` Norberto Bensa
  2009-01-23 13:52                 ` Alejandro
@ 2009-01-23 15:09                 ` Dale
  1 sibling, 0 replies; 32+ messages in thread
From: Dale @ 2009-01-23 15:09 UTC (permalink / raw
  To: gentoo-user

Norberto Bensa wrote:
> On Fri, Jan 23, 2009 at 11:19 AM, Alejandro <elcorreodeale@gmail.com> wrote:
>
>   
>> make oldconfig only can give you problems i don,t see any benefict.. just my
>> person experience...
>>     
>
> I have never seen any problem with make oldconfig, YMMV, but stating
> it _will_ give you problems is simply not true.
>
>
>   

+1

Dale

:-)  :-)



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-23  8:54             ` Dirk Heinrichs
  2009-01-23  9:24               ` Dale
@ 2009-01-24  1:08               ` Man Shankar
  2009-01-24  9:32                 ` Neil Bothwick
  1 sibling, 1 reply; 32+ messages in thread
From: Man Shankar @ 2009-01-24  1:08 UTC (permalink / raw
  To: gentoo-user

On 09:54 Fri 23 Jan     , Dirk Heinrichs wrote:
> Am Freitag, den 23.01.2009, 02:45 -0600 schrieb ext Dale:
> 
> > But if a kernel gets corrupted or accidentally deleted
> 
> mount -oremount,ro /boot solves that problem for me. It's the last
> command in the update script I mentioned before. And there's always
> GRML, just in case :-)

Since, /boot seldom requires work i have this in fstab

/dev/sda1	/boot	ext2	noauto	1 2

makes sure /boot is unmounted unless manually mounted from the shell.
But, then again mistakes do happen, backups FTW :-)

-- 

Thanks & Regards,
Man Shankar <man.ee.gen(at)gmail.com>



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

* Re: [gentoo-user] Deleted my kernel .config
  2009-01-24  1:08               ` Man Shankar
@ 2009-01-24  9:32                 ` Neil Bothwick
  0 siblings, 0 replies; 32+ messages in thread
From: Neil Bothwick @ 2009-01-24  9:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

On Sat, 24 Jan 2009 06:38:50 +0530, Man Shankar wrote:

> > mount -oremount,ro /boot solves that problem for me. It's the last
> > command in the update script I mentioned before. And there's always
> > GRML, just in case :-)  
> 
> Since, /boot seldom requires work i have this in fstab
> 
> /dev/sda1	/boot	ext2	noauto	1 2

That leaves the opportunity to forget to mount /boot when you should.
Mounting it ro gives you a big fat warning if you try to do something
silly.

These days I rarely have a separate /boot, but I do have backups :)


-- 
Neil Bothwick

This screen intentionally left blank.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2009-01-24  9:32 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23  2:12 [gentoo-user] Deleted my kernel .config Grant
2009-01-23  2:22 ` Saphirus Sage
2009-01-23  7:37   ` KH
2009-01-23  2:28 ` Crob
2009-01-23  3:03   ` Grant
2009-01-23  8:28     ` Justin
2009-01-23  8:40       ` Dirk Heinrichs
2009-01-23  8:45         ` Justin
2009-01-23  8:57           ` Dirk Heinrichs
2009-01-23  9:47             ` Justin
2009-01-23 13:14           ` Norberto Bensa
2009-01-23 13:19             ` Alejandro
2009-01-23 13:24               ` Justin
2009-01-23 13:51                 ` Dirk Heinrichs
2009-01-23 14:00                 ` Norberto Bensa
2009-01-23 13:44               ` Norberto Bensa
2009-01-23 13:52                 ` Alejandro
2009-01-23 15:09                 ` Dale
2009-01-23 13:24       ` Ricardo Saffi Marques
2009-01-23 14:39       ` Grant
2009-01-23 13:23     ` Ricardo Saffi Marques
2009-01-23  3:04 ` Volker Armin Hemmann
2009-01-23  5:24   ` Dale
2009-01-23  7:44     ` KH
2009-01-23  7:51       ` Dirk Heinrichs
2009-01-23  7:53       ` Dale
2009-01-23  8:16         ` Dirk Heinrichs
2009-01-23  8:45           ` Dale
2009-01-23  8:54             ` Dirk Heinrichs
2009-01-23  9:24               ` Dale
2009-01-24  1:08               ` Man Shankar
2009-01-24  9:32                 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox