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 09-10-2008, 10:19 PM   #1
hangnguyen
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
How to create a rescue CD for RHEL 5?


Hi everyone,
I've installed RHEL 5 for my server and configured kernel 2.6.18-8.el5 as a Monolithic kernel (loadable modules aren't supported). Now I need to create a rescue CD. I put the new CD to the driver and use this command:
cp /boot/vmlinux-2.6.18-8.el5 /dev/cdrom
But it announces that: Cannot create a file in /dev/cdrom, it is a read-only file system.
Could you please give me the way to create a rescue CD?
Thank you!
 
Old 09-10-2008, 11:03 PM   #2
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
There's a command line utility called cdrecord that lets you burn discs.
 
Old 09-10-2008, 11:05 PM   #3
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you wanting to be able to boot from this CD?
 
Old 09-10-2008, 11:09 PM   #4
hangnguyen
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by billymayday View Post
Are you wanting to be able to boot from this CD?
Yes, I need a rescue CD to reboot the machine with my configured kernel in emergency cases.
 
Old 09-10-2008, 11:33 PM   #5
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Why don't you just add the new kernel to your grub boot list?
 
Old 09-11-2008, 12:00 AM   #6
hangnguyen
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by elprawn View Post
Why don't you just add the new kernel to your grub boot list?
I've already done that.
But I need a rescue CD so that whenever my server goes down by attackers or by my bad configuration, I can reboot the server with the expected kernel.
 
Old 09-11-2008, 12:27 AM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by elprawn View Post
Why don't you just add the new kernel to your grub boot list?
Why don't you read the posts?
 
Old 09-11-2008, 12:39 AM   #8
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
See if this gets you any closer to where you want to be

http://www.linuxquestions.org/questi...+bootable+disk
 
Old 09-11-2008, 12:43 AM   #9
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
Why don't you read the posts?
I like it when you get angry.
 
Old 09-11-2008, 12:55 AM   #10
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by elprawn View Post
I like it when you get angry.
I wasn't angry, I simply don't see why you bother posting when you clearly don't follow the thread, or apparently understand the fairly obvious intent of the OP.
 
Old 09-11-2008, 01:00 AM   #11
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Quote:
Originally Posted by billymayday View Post
I wasn't angry, I simply don't see why you bother posting when you clearly don't follow the thread, or apparently understand the fairly obvious intent of the OP.
So every emergency case requires a boot CD? How about if your computer just didn't start after recompiling the kernel and nothing was wrong with grub or any other part of the operating system?

And I didn't understand the thread? What was my original response, wiseguy?
 
Old 09-11-2008, 01:34 AM   #12
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The initial request was to create a rescue CD. cdrecord won't do that unless you have a bootable image.

Pull your head in.
 
Old 09-11-2008, 01:45 AM   #13
elprawn
Member
 
Registered: Feb 2005
Distribution: Gentoo 2008
Posts: 138

Rep: Reputation: 15
Yes, but it's a good place to start by telling someone they need to burn the CD when they're trying to copy a file to a CD device using the cp command. And pull my head in? I never said anything about your posts.
 
Old 09-19-2008, 12:33 PM   #14
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,470

Rep: Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539Reputation: 2539
Quote:
Originally Posted by hangnguyen View Post
Yes, I need a rescue CD to reboot the machine with my configured kernel in emergency cases.
There are three utilities I've used, with great success. Check out the mkcdrec, systemimager, and mondoarchive utilities. All of them can make bootable images, suitable for either network or DVD/CD booting and recovery from a 'bare metal' situation.

IMHO, it's best to make a bootable CD with a kernel, custom-suited to your hardware. That way, if you boot from it, you know you'll have all the hardware modules needed to get disk drives/network adapters/video, etc., working right off the bat. From there, you can (at least with mondoarchive), pull an ISO from a network resource. That'll let you have an aged recovery CD in the drive, with a current 'snapshot' (created with CRON or other scheduled job), on a network resource elsewhere.
 
  


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
/bin/bash missing on RHEL 5 - need rescue mode help jmerry01 Linux - Software 2 07-19-2007 05:55 PM
RHEL 4 can't create local user in /home fredag Red Hat 3 05-23-2006 08:34 PM
can't create large files on RHEL 4 on AMD64 lltong Red Hat 2 01-06-2006 11:48 AM
How to create rescue diskette? Kyiver Linux - General 4 10-03-2005 08:18 PM
How to create rescue floppy from OS satimis Linux - General 4 08-13-2003 09:03 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration