View previous topic :: View next topic |
Author |
Message |
Allal Mohamed n00b
Joined: 20 Oct 2013 Posts: 7
|
Posted: Sun Oct 20, 2013 3:50 pm Post subject: configure and modify the kernel setting, GENTOO installed |
|
|
i want that you awnser for this thanks pls, i have installed the system and i m in Kde desktop, and i want to set up the power manager, for this i have to set up somme new configuration in the kernel, i use as in the instalation of the system -gentoo- make menuconfig. but i have not compiled it yet, i want to now if the way is the same as in the installation ( what mean by the command# make && make modules_install and next by coping the kernel image in the boot part) or here the way is diffrent, also if i do what this can affect in installed programme in part and the system at all in other part (note im in kde and i won^t to repeat his instalation ). THANKS VERY MUCH |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun Oct 20, 2013 4:00 pm Post subject: |
|
|
It'd the same as during installation yes.
Ideally though you want to copy it to a different file in /boot, so if your first kernel is "/boot/kernel" you'd copy the new one to "/boot/kernel-1". You can make the name more meaningful or relevant to you of course. Then you'll need to create a second grub entry, assuming you're using grub (not grub2), just edit your grub.cfg and copy/paste the lines for your first kernel, changing the line that points to the kernel to point to the new name (ie. /boot/kernel-1), and change the title so you know which to boot.
The main reason you do this is in case you break something, you always have a working kernel you can boot up if the new one doesn't work. |
|
Back to top |
|
|
Allal Mohamed n00b
Joined: 20 Oct 2013 Posts: 7
|
Posted: Sun Oct 20, 2013 4:09 pm Post subject: |
|
|
thanks very much for the quick answer i use grub2 and i dont know how configure it, can you explain pls thanks |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun Oct 20, 2013 4:20 pm Post subject: |
|
|
The below commands are pretty much everything you need to do - Be sure to replace <boot partition> with the correct device, ie /dev/sda1. If you don't remember it should be listed in /etc/fstab. Also replace <version> with whatever you wish to name it. After this simply reboot and you should have a choice of kernels to boot!
Code: | cd /usr/src/linux
make menuconfig
make && make modules_install
mount <boot partition> /boot
cp arch/x86/boot/bzImage /boot/kernel-<version>
grub2-mkconfig -o /boot/grub/grub.cfg |
As long as your kernel is located in /boot and named either kernel-<version> or vmlinuz-<version> grub should automatically pick it up and configure it for you. |
|
Back to top |
|
|
Allal Mohamed n00b
Joined: 20 Oct 2013 Posts: 7
|
Posted: Sun Oct 20, 2013 4:38 pm Post subject: |
|
|
yes this finish the case, but i have a last question, one^s i boot in the new system (kernel changed system changed), do all the old confuguration i meam my sections , and my kde , and all my installed softs be here present in this new system, it will be bad to remake all thanks very very much |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Sun Oct 20, 2013 4:45 pm Post subject: |
|
|
Yes they'll all still be there. It's just one small (very important) part you've changed! |
|
Back to top |
|
|
|