A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

January 9, 2012

Custom Kernel compilation to be at custom volume

Forums: 

Hi.
I wanna compile a kernel myself, but haven't proceeded yet.

I've just used menuconfig to save the default ".config" file :-D . As I know, I must now run:

make
make module_install
make install

(The Kernel is 3.1.8, obviously from kernel.org)

Here are my questions:
1. Is the order above correct?
2. As I know, just as I run the above commands, my compilation will replace the kernel of this Ubuntu, (since it'll go to directories like /boot /etc, which are my CURRENT UBUNTU, at the time of installation), but what I want and have meant to do, is to install it to my /dev/sda5. How may I do this?
3. And then an update-grub from here in Ubuntu should add the kernel to boot list, yet keeping this Ubuntu's GRUB/MBR config, right?

thanks so much for you helps.

Click Here!