LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-18-2011, 08:03 PM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
Possible to boot into linux rescue mode without installation media?


I've got CentOS 6 installed and am wondering if it's necessary to have installation media in order to run 'linux rescue'. (I have to do some LVM resizing and would rather do it from rescue mode than in a running system.)

What I've read about booting into linux rescue is that it seems to be necessary to have installation media and boot into that. But I'm wondering if it's possible to do it some other way, like from the grub menu? But it doesn't seem to be possible to enter 'linux rescue' from the grub command line (which I got to by typing 'c' in grub menu screen) - typing 'linux rescue' at grub command line says 'command not found'.

Maybe there's another way to do this? Or some fancy way to have loaded a rescue image or something onto my disk so I don't need installation media. There's 2 reasons why I'd like to enter linux rescue without installation media, both because my computer is very old. 1) My computer can't boot from USB, and 2) My CD/DVD tray is very unstable and keeps popping out intermittently, so I'd need to hold the tray in place during the whole LVM process and it's a real pain, and I wouldn't want to risk data corruption if the process is interrupted by my CD/DVD tray popping out.

I'm hoping there's some way - it'd also be nice to know how to do this if some urgent situation arose where I needed to enter linux rescue mode but didn't have installation media handy and it'd take to long to retrieve or create new installation media.
 
Old 07-18-2011, 08:28 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
http://www.centos.org/docs/5/html/In...mode-boot.html

Rescue mode is for times then your system won't boot.

If you can't get the system to boot but using linux rescue then you have to boot to some media. It could be pxe, gpxe/ipxe, cd, usb or floppy maybe still.

Get a new CD drive. How much are they, if you need one you need one.

Last edited by jefro; 07-18-2011 at 08:31 PM.
 
Old 07-18-2011, 08:36 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
What jefro said

You may get away with it if the LVM you are fixing is not on the root partition; you should be able to umount it, but first ensure no process is using it.
 
Old 07-18-2011, 11:23 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by jefro View Post
Rescue mode is for times then your system won't boot.
That's one reason - the OP has another (equally valid) reason.
Must admit I'd go get another drive too - probably have one in my pile of "bits and pieces".

To answer the original question - no, you can't.
"linux rescue" in that context is a Redhat (CentOS) specific recovery environment. Grub loads it, but it has nothing to do with grub per se. Given that you managed a full CentOS install, I'd reckon you should be able to manage a rescue. Your call though.
Another option would be to dual boot another (possibly CentOS) system, and do your resizing from there. If CentOS, make sure you use different names for the LVM components so you can access them.
Won't help if your system is indeed unbootable from the hard-disk at any point.

A liveCD that has LVM and runs (completely) in RAM would also be an option - dsl/puppy/tinycore ... ? - haven't tried any in years.
 
  


Reply



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
Linux Rescue script question, in rescue mode vijay_aras Linux - General 1 01-09-2008 05:03 PM
browse installation source from rescue mode windycity_linux Linux - Newbie 1 04-17-2007 08:47 PM
how to install grub using fc 4 installation cd .the cd has rescue mode amolgupta Linux - Software 2 03-15-2006 02:14 AM
How to boot into rescue mode with 2.4 (alt1) lewisdw Mandriva 0 08-08-2004 12:58 PM
Why is it so difficult to reinstall RH9's Boot loader using the Linux Rescue mode? Seph64 Linux - Distributions 10 10-04-2003 08:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:29 AM.

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