Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Exporting config.gz without booting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Manu311
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2010
Posts: 128

PostPosted: Sun May 27, 2012 2:43 pm    Post subject: [SOLVED] Exporting config.gz without booting Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Sun May 27, 2012 3:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Manu311
Tux's lil' helper
Tux's lil' helper


Joined: 17 Nov 2010
Posts: 128

PostPosted: Sun May 27, 2012 3:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum