View previous topic :: View next topic |
Author |
Message |
Manu311 Tux's lil' helper
Joined: 17 Nov 2010 Posts: 128
|
Posted: Sun May 27, 2012 2:43 pm Post subject: [SOLVED] Exporting config.gz without booting |
|
|
Hey,
since I accidently wiped my gentoo install and changed the partitiontable for that my old kernel can't boot anymore. I've used the new efi stub so it is hardcompiled where the root system is located.
When I try to boot that kernel (which still is referenced inside my efi) it freezes because it can't find the root partition (it doesn't ask me to define it myself).
Initrd is reachable since it's also on the efi partition.
Now since I spend a lot of time into configurating that kernel and don't want to do that again, I would like to export the configfile from the old one (since the one in the sources is wiped with the rest of my old partition), is that possible? I've compiled config.gz support inside my kernel, so being able to boot it would also solve my problem.
Thanks for your help
Last edited by Manu311 on Sun May 27, 2012 3:32 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54821 Location: 56N 3W
|
Posted: Sun May 27, 2012 3:06 pm Post subject: |
|
|
Manu311,
I'm not 100% sure what you want to do but I think you need Code: | /usr/src/linux/scripts/extract-ikconfig |
There is probably some good reading in /usr/src/linux/Documentation and you must read the comments at the top of the script. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Manu311 Tux's lil' helper
Joined: 17 Nov 2010 Posts: 128
|
Posted: Sun May 27, 2012 3:32 pm Post subject: |
|
|
NeddySeagoon wrote: | Manu311,
I'm not 100% sure what you want to do but I think you need Code: | /usr/src/linux/scripts/extract-ikconfig |
There is probably some good reading in /usr/src/linux/Documentation and you must read the comments at the top of the script. |
Thank you, that looks like exactly what I was looking for. |
|
Back to top |
|
|
|