LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-26-2006, 05:31 AM   #1
JOHN-FM
LQ Newbie
 
Registered: Jun 2006
Posts: 11

Rep: Reputation: 0
Unhappy Creating RHEL4 DVD from 5 CD's


Forgive me if this is a stupid question, but is there a way I can take the files from all 5 RHEL 4 UPD 4 CD's and make one bootable DVD from them?

I wonder why RedHat isn't doing this already?

Thanks in advance.
 
Old 08-26-2006, 08:01 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You can use this script to build the DVD ISO image, warning some editing may be required but unlikely. If wanted you can create the CD ISO images for whatever reason(s). In either case requires a lot of hard drive space (the size of the 5 CD ISO images times 3 or about 2 times the space of all the files on the 5 CD's)

To build the CD ISO images, insert each CD and do not mount then do something like;

dd if=/dev/cdrom of=cd#.iso ; note: replace # with the number of the CD (1 to 5)

Code:
#/bin/bash

# by Chris Kloiber <ckloiber@redhat.com>

# A quick hack that will create a bootable DVD iso of a Red Hat Linux
# Distribution. Feed it either a directory containing the downloaded
# iso files of a distribution, or point it at a directory containing
# the "RedHat", "isolinux", and "images" directories.

# This version only works with "isolinux" based Red Hat Linux versions.

# Lots of disk space required to work, 3X the distribution size at least.

# GPL version 2 applies. No warranties, yadda, yadda. Have fun.


if [ $# -lt 2 ]; then
	echo "Usage: `basename $0` source /destination/DVD.iso"
	echo ""
	echo "        The 'source' can be either a directory containing a single"
	echo "        set of isos, or an exploded tree like an ftp site."
	exit 1
fi

cleanup() {
[ ${LOOP:=/tmp/loop} = "/" ] && echo "LOOP mount point = \/, dying!" && exit
[ -d $LOOP ] && rm -rf $LOOP 
[ ${DVD:=~/mkrhdvd} = "/" ] && echo "DVD data location is \/, dying!" && exit
[ -d $DVD ] && rm -rf $DVD 
}

cleanup
mkdir -p $LOOP
mkdir -p $DVD

if [ !`ls $1/*.iso 2>&1>/dev/null ; echo $?` ]; then
	echo "Found ISO CD images..."
	CDS=`expr 0`
	DISKS="1"

	for f in `ls $1/*.iso`; do
		mount -o loop $f $LOOP
		cp -av $LOOP/* $DVD
		if [ -f $LOOP/.discinfo ]; then
			cp -av $LOOP/.discinfo $DVD
			CDS=`expr $CDS + 1`
			if [ $CDS != 1 ] ; then
                        	DISKS=`echo ${DISKS},${CDS}`
                	fi
		fi
		umount $LOOP
	done
	if [ -e $DVD/.discinfo ]; then
		awk '{ if ( NR == 4 ) { print disks } else { print ; } }' disks="$DISKS" $DVD/.discinfo > $DVD/.discinfo.new
		mv $DVD/.discinfo.new $DVD/.discinfo
	fi
else
	echo "Found FTP-like tree..."
	rsync -avP --exclude SRPMS $1/* $DVD
#	cp -av $1/* $DVD
	[ -e $1/.discinfo ] && cp -av $1/.discinfo $DVD
fi

rm -rf $DVD/isolinux/boot.cat
find $DVD -name TRANS.TBL | xargs rm -f

# My thanks to Mubashir Cheema for suggesting this fix.
# cd $DVD
mkisofs -J -R -v -T -o $2 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 8 -boot-info-table $DVD

/usr/lib/anaconda-runtime/implantisomd5 --force $2
# Don't like forced mediacheck? Try this instead.
# /usr/lib/anaconda-runtime/implantisomd5 --supported-iso --force $2

cleanup
echo ""
echo "Process Complete!"
echo ""
 
Old 08-27-2006, 08:47 PM   #3
vwvr9
Member
 
Registered: Feb 2005
Distribution: OpenSuse 10.1 / Centos 4.4
Posts: 60

Rep: Reputation: 15
Hope this helps

http://thedaneshproject.com/?p=11
 
Old 09-26-2006, 07:28 AM   #4
agayles
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Creating RHEL4 DVD from 5 CD's

I used this script to create the dvd. I selected everything in the software menu and it fails on the cyrus package. I was able to successfully install everything but the cyrus package. Is there anyway that i can put in a functional cyrus package?
 
Old 09-26-2006, 11:03 AM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Try installing the package directly from the media. From the console or xterm session as root where the rpm files are type something like;

rpm -Uvh the_filename_here

Example; rpm -Uvh foo-1.0.1.i386.rpm
 
Old 09-26-2006, 03:18 PM   #6
agayles
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
4 Cd -> Dvd

thanks for the info...
 
Old 09-28-2006, 11:09 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your welcome, glad to help.
 
Old 10-02-2006, 09:56 AM   #8
agayles
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
Creating RHEL4 DVD from 5 CD's

I want to place these DVDs in each of our specialized servers. Is there a way to inject the specialized applications into the iso image on the DVD (ie, spam filter applications, etc.)
 
Old 10-02-2006, 11:31 AM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yes, this is possible but it takes some reading and work. To get you started;

http://www.tldp.org/HOWTO/RedHat-CD-...e-updates.html
http://www.cpqlinux.com/rh80customcd.html

And Scientific Linux has info on this also;

https://www.scientificlinux.org/dist...sites/example/
 
Old 04-19-2007, 08:50 AM   #10
pm9448
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Question Creating x86_64 DVD from RHEL 4 Distro

Hi,

I have managed to create a single bootable/customized DVD of RHEL 4. I am trying to do the same thing with the 64-bit version. Is there something unique that I need to do to make this iso?

I noticed in my xander file there are both 64-bit and 32-bit rpms? Are these necessary?

P.
 
Old 04-19-2007, 09:13 AM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
For the most part yes both the 32bi and 64bit rpm packages are needed.
 
Old 05-02-2007, 01:43 PM   #12
vitugv
LQ Newbie
 
Registered: May 2007
Location: New York
Distribution: RHEL
Posts: 10

Rep: Reputation: 0
O/S upgrade to a level lower than the current Upgrade level

I received a server with RHEL es4u0 already installed in it. The application I need to install on this server is certified for RHEL es4u1 only.

Currently the current upgrade level on the RedHat website is es4u5.

Obviously, I cannot use up2date out of the box on the server because it will upgrade it to an uncertified level.

I have downloaded and burned the es4u1 cds. Short of reinstalling the o/s from scratch with these cds, does anyone know of a way to upgrade only to u1?

Thanks.
 
Old 05-02-2007, 02:30 PM   #13
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You can use the CD's to upgrade, the installer should provide an upgrade option.

Of yon can create a directory named something like RHEL4u1 for example and copy all the rpms form the CD's into this location. Install both the createrepo and yum packages from Dag's site;

http://dag.wieers.com/rpm/packages/

When done do from the directory; createrepo /RHEL4u1

Then create a local yum repo file in /etc/yum.repos.d directory named something like media.repo which looks like;

[rhel-media]
name=Red Hat-$releasever - Media
baseurl=file:///RHEL4u1
gpgcheck=0
enabled=1

Then as root do; yum update

Consider it practice for RHEL5.
 
Old 05-03-2007, 05:13 PM   #14
vitugv
LQ Newbie
 
Registered: May 2007
Location: New York
Distribution: RHEL
Posts: 10

Rep: Reputation: 0
Thanks for the response.

Tried the yum approach but ran into trouble installing the yum rpm.

It required python-sqlite which in turn required libsqlite.so.0. I downloaded and installed the python-sqlite-src rpm but it was not there. Would you know where I could get the libsqlite.so.0 file or am I barking up the wrong tree?

Thanks again.
 
Old 05-03-2007, 05:44 PM   #15
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Read this: http://wiki.centos.org/HowTos/Packag...ment/YumOnRHEL

And you might as well make Dag's site a repo also: http://dag.wieers.com/rpm/FAQ.php#B

FYI: for now it is a good idea to disable the CentOS repos or not use yum from CentOS but do install the listed sqlite and python rpm packages, these you should already have or you can get then from either the CentOS vault site(since you want to stay at the u1 level) or Dag's site;

http://vault.centos.org/4.1/os/
http://dag.wieers.com/rpm/packages/

CentOS4.1 == RHEL4u1
 
  


Reply

Tags
boot, howto, linux



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
New install of RHEL4 isn't creating /dev/sg* drivers for tape library linux4dave Linux - Hardware 2 03-24-2008 02:32 PM
Creating a custom ISO using RHEL4 knarfling Linux - Server 3 08-18-2006 10:28 PM
Creating CD's from a Debian Sarge DVD fischer1000 Debian 4 08-17-2004 03:24 PM
Creating CD's from a fedora core 2 DVD fischer1000 Fedora - Installation 0 07-25-2004 11:58 AM
Creating CD's badogg Mandriva 2 05-18-2004 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:42 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