Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install kernel on seperate partition and boot it, possible?
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
colag
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2009
Posts: 100
Location: Dhaka, Bangladesh

PostPosted: Thu Oct 06, 2016 5:44 am    Post subject: Install kernel on seperate partition and boot it, possible? Reply with quote

Hi,

It's not related to gentoo, but it's related to kernel installation and booting/loading it. I couldn't find a place to ask it, so I asked in Kernel & Hardware.

Suppose there is an ext4 partition and all linux directories are created such as /boot, /bin, /etc, /usr, /dev, /var, /tmp, /proc, /sys, etc.
I've existing linux system like debian jessie. Now I will chroot to that ext4 partition from debian, then compile and install the linux kernel 4.8 to /boot and add this to grub. I'll not install any other pacakges but only that kernel 4.8 on that ext4 partition. Will it boot this kernel successfully? Will it work?

Any answer will be highly appreciated.
Thanks in advance
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6296

PostPosted: Thu Oct 06, 2016 5:55 am    Post subject: Reply with quote

The location of the kernel and the location of the root partition are completely independent. If the kernel has no modules or its modules are stored on /lib/modules in the corresponding root partition, it should not be a problem. Of course, the kernel should have all features included which are required by the programs.
Back to top
View user's profile Send private message
Irre
Guru
Guru


Joined: 09 Nov 2013
Posts: 347
Location: Stockholm

PostPosted: Thu Oct 06, 2016 7:21 am    Post subject: Reply with quote

It depends of which boot loader you use. I use the simple LILO lightweight boot loader for linux on USB-sticks, but then I can't place the kernel on a BTRFS partition.
Back to top
View user's profile Send private message
colag
Tux's lil' helper
Tux's lil' helper


Joined: 26 Sep 2009
Posts: 100
Location: Dhaka, Bangladesh

PostPosted: Thu Oct 06, 2016 8:26 am    Post subject: Reply with quote

Irre wrote:
It depends of which boot loader you use. I use the simple LILO lightweight boot loader for linux on USB-sticks, but then I can't place the kernel on a BTRFS partition.

I normally use grub2. It's ext4 partition here made by gparted.
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