LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-23-2020, 10:13 AM   #1
me_spearhead
Member
 
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 57

Rep: Reputation: 15
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.
 
Old 07-23-2020, 10:28 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,221

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
There already is a rescue kernel and a GRUB menu item to boot into rescue mode.
 
Old 07-23-2020, 11:06 AM   #3
me_spearhead
Member
 
Registered: Feb 2007
Distribution: SUSE Linux, & Redhat Variants
Posts: 57

Original Poster
Rep: Reputation: 15
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.
 
Old 07-23-2020, 11:27 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,221

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
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.
 
Old 07-29-2020, 03:09 PM   #5
Meow1234
LQ Newbie
 
Registered: Jul 2020
Distribution: several
Posts: 28

Rep: Reputation: Disabled
Is your boot folder on another partition?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Uninstall GUI environment and make system back to minimal installation. kkrrss Linux - Server 3 09-24-2016 12:41 PM
How do I upgrade Minimal Desktop for Ubuntu (formerly Ubuntu Minimal)? LAPIII Linux - Software 1 01-20-2012 07:52 PM
absolute minimal graphical environment cccc Debian 4 02-08-2011 08:43 PM
installing the X to set a minimal graphical environment for shh -X fdelval Linux - Newbie 9 12-02-2010 10:42 AM
Configuring a minimal X environment blpfedora Fedora 1 12-29-2004 07:18 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration