LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   How to create a rescue CD for RHEL 5? (https://www.linuxquestions.org/questions/linux-enterprise-47/how-to-create-a-rescue-cd-for-rhel-5-a-669080/)

hangnguyen 09-10-2008 10:19 PM

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!

elprawn 09-10-2008 11:03 PM

There's a command line utility called cdrecord that lets you burn discs.

billymayday 09-10-2008 11:05 PM

Are you wanting to be able to boot from this CD?

hangnguyen 09-10-2008 11:09 PM

Quote:

Originally Posted by billymayday (Post 3276615)
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.

elprawn 09-10-2008 11:33 PM

Why don't you just add the new kernel to your grub boot list?

hangnguyen 09-11-2008 12:00 AM

Quote:

Originally Posted by elprawn (Post 3276634)
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.

billymayday 09-11-2008 12:27 AM

Quote:

Originally Posted by elprawn (Post 3276634)
Why don't you just add the new kernel to your grub boot list?

Why don't you read the posts?

billymayday 09-11-2008 12:39 AM

See if this gets you any closer to where you want to be

http://www.linuxquestions.org/questi...+bootable+disk

elprawn 09-11-2008 12:43 AM

Quote:

Originally Posted by billymayday (Post 3276676)
Why don't you read the posts?

I like it when you get angry.

billymayday 09-11-2008 12:55 AM

Quote:

Originally Posted by elprawn (Post 3276690)
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.

elprawn 09-11-2008 01:00 AM

Quote:

Originally Posted by billymayday (Post 3276699)
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?

billymayday 09-11-2008 01:34 AM

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

Pull your head in.

elprawn 09-11-2008 01:45 AM

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.

TB0ne 09-19-2008 12:33 PM

Quote:

Originally Posted by hangnguyen (Post 3276620)
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.


All times are GMT -5. The time now is 02:32 PM.