LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   minimal boot environment (https://www.linuxquestions.org/questions/linux-enterprise-47/minimal-boot-environment-4175679236/)

me_spearhead 07-23-2020 10:13 AM

minimal boot environment
 
Hi Everyone,

How to create a boot environment which can serve as minimal and be used for troubleshooting in case the current kernel is not booting for some reason ? This environment should provide minimal commands like xfs_repair, grub-xxxx, mount etc...

This question pertains to CentOS 7.

I do not want to use live cd for the same.

michaelk 07-23-2020 10:28 AM

There already is a rescue kernel and a GRUB menu item to boot into rescue mode.

me_spearhead 07-23-2020 11:06 AM

Yes and it still uses same partition as root (/) which the non rescue mode kernel ceases to boot. Idea is to use an alternate boot device since the non rescue mode kernel cannot be booted to.

michaelk 07-23-2020 11:27 AM

No live CD but can it be a USB flash drive? Otherwise you will need to add limitations as to your working environment.

CentOS does have a min installation image and you can install it to a bootable flash drive. You can add utilities as desired.

Meow1234 07-29-2020 03:09 PM

Is your boot folder on another partition?


All times are GMT -5. The time now is 11:36 PM.