Re: [gentoo-user] Deleted my kernel .config
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 ext2noauto 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. signature.asc Description: PGP signature
Re: [gentoo-user] Deleted my kernel .config
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 ext2noauto 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
Re: [gentoo-user] Deleted my kernel .config
Norberto Bensa wrote: > On Fri, Jan 23, 2009 at 11:19 AM, Alejandro 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 :-) :-)
Re: [gentoo-user] 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 >> >> > 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
Re: [gentoo-user] Deleted my kernel .config
On Fri, Jan 23, 2009 at 11:24 AM, Justin 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
Re: [gentoo-user] Deleted my kernel .config
2009/1/23 Norberto Bensa > On Fri, Jan 23, 2009 at 11:19 AM, Alejandro > 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
Re: [gentoo-user] Deleted my kernel .config
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.heinri...@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Re: [gentoo-user] Deleted my kernel .config
On Fri, Jan 23, 2009 at 11:19 AM, Alejandro 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.
Re: [gentoo-user] Deleted my kernel .config
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... signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Deleted my kernel .config
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 ==
Re: [gentoo-user] Deleted my kernel .config
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 ==
Re: [gentoo-user] Deleted my kernel .config
2009/1/23 Norberto Bensa > Quoting Justin : > > 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...
Re: [gentoo-user] Deleted my kernel .config
Quoting Justin : 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.
Re: [gentoo-user] Deleted my kernel .config
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. :) signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Deleted my kernel .config
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 :-) :-)
Re: [gentoo-user] Deleted my kernel .config
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.heinri...@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Re: [gentoo-user] Deleted my kernel .config
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.heinri...@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Re: [gentoo-user] Deleted my kernel .config
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 root1024 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 :-) :-)
Re: [gentoo-user] Deleted my kernel .config
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? signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Deleted my kernel .config
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.heinri...@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Re: [gentoo-user] Deleted my kernel .config
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. signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Deleted my kernel .config
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 root1024 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.heinri...@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Re: [gentoo-user] 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. r...@smoker / # ls -al /boot/ total 6970 drwxr-xr-x 4 root root1024 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 root1024 Jan 16 01:43 grub drwx-- 2 root root 12288 Jul 10 2008 lost+found r...@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 :-) :-)
Re: [gentoo-user] 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.heinri...@capgemini.com Wanheimerstraße 68 | Web: http://www.capgemini.com D-40468 Düsseldorf | ICQ#: 110037733 GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Re: [gentoo-user] 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
Re: [gentoo-user] 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 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?
Re: [gentoo-user] 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 grubmemtest86plus > 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 :-) :-)
Re: [gentoo-user] 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 grubmemtest86plus 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
Re: [gentoo-user] 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
Re: [gentoo-user] 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 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
Re: [gentoo-user] 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.
[gentoo-user] 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