View previous topic :: View next topic |
Author |
Message |
shadeheim n00b
Joined: 03 Mar 2007 Posts: 56
|
Posted: Sun Mar 18, 2007 8:46 pm Post subject: Broken kernel |
|
|
Well, only took me a week to break my system. I stupidly disobeyed the warning not to edit the /usr/src/linux/.config file directly trying to get DMA on my drive working and thought hmm it doesn't matter I've got a config backed up. Then I realised I hadn't but that is a long and dumb story. Needless to say I rebooted and my fears were confirmed: a broken system. Anyway now I'm in a situation where I've been forced to revert back to a working kernel image in my bootloader. But since in my /usr/src/linux directory I still have the faulty .config file and no backups I need to know if there is a way to read in the values of the working kernel image file directly to get a working config file? Then I could just try and remember what changes I've made to the kernel in the past week. Otherwise I'm pretty much done for if I ever want to make a change to my kernel again; which obviously I do in order to get DMA working and stop the I/O freezes I've been getting when copying, compiling and hashing files.
Alternatively, since I'm fairly sure I only messed around with settings to do with DMA could someone copy and paste the default unchanged DMA settings. I've already tried by trial and error to guess what setting I changed and although I've probably missed one out I'm pretty sick of it. Would a Gentoo CD have the default .config on it? |
|
Back to top |
|
|
wynn Advocate
Joined: 01 Apr 2005 Posts: 2421 Location: UK
|
Posted: Sun Mar 18, 2007 8:53 pm Post subject: Re: Broken kernel |
|
|
shadeheim wrote: | Well, only took me a week to break my system. I stupidly disobeyed the warning not to edit the /usr/src/linux/.config file directly trying to get DMA on my drive working and thought hmm it doesn't matter I've got a config backed up. Then I realised I hadn't but that is a long and dumb story. Needless to say I rebooted and my fears were confirmed: a broken system. Anyway now I'm in a situation where I've been forced to revert back to a working kernel image in my bootloader. But since in my /usr/src/linux directory I still have the faulty .config file and no backups I need to know if there is a way to read in the values of the working kernel image file directly to get a working config file? | You can get the config file for the running kernel by Code: | zcat /proc/config.gz >.config |
_________________ The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details. |
|
Back to top |
|
|
shadeheim n00b
Joined: 03 Mar 2007 Posts: 56
|
Posted: Sun Mar 18, 2007 9:41 pm Post subject: |
|
|
Thanks very much and thank God for the diff command. |
|
Back to top |
|
|
|