<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Testing 1, 2, 3 &#187; Software</title>
	<atom:link href="http://wordpress.fusetnt.com/category/software/feed/" rel="self" type="application/rss+xml" />
	<link>http://wordpress.fusetnt.com</link>
	<description>Tech, talk and tantrums</description>
	<lastBuildDate>Thu, 16 Sep 2010 10:10:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Merging RHEL 5.3 CDs to DVD</title>
		<link>http://wordpress.fusetnt.com/2009/04/merging-rhel-53-cds-to-dvd/</link>
		<comments>http://wordpress.fusetnt.com/2009/04/merging-rhel-53-cds-to-dvd/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 05:16:06 +0000</pubDate>
		<dc:creator>Daedalus</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[cds]]></category>
		<category><![CDATA[combining]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[merging]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[redhat enterprise linux]]></category>
		<category><![CDATA[rhel]]></category>

		<guid isPermaLink="false">http://wordpress.fusetnt.com/?p=238</guid>
		<description><![CDATA[So you&#8217;ve got your five Redhat Enterprise Linux 5.3 CDs, but want the convenience of a single disc — how do you merge them into a DVD? There are a few tuts and scripts on the web that do so, but all seem to be all too happy to put you at the mercy of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>So you&#8217;ve got your five <a title="Redhat" href="http://www.redhat.com/" target="_blank">Redhat Enterprise Linux 5.3</a> CDs, but want the convenience of a single disc — how do you merge them into a DVD?</strong></p>
<div id="attachment_239" class="wp-caption aligncenter" style="width: 460px"><img class="size-full wp-image-239" title="Merging RHEL CDs into a DVD" src="http://wordpress.fusetnt.com/wp-content/uploads/2009/04/rhel.jpg" alt="Merging RHEL 5.3 CDs into a DVD" width="450" height="408" /><p class="wp-caption-text">Combining RHEL 5.3 CDs into a DVD. Not so hard, but clear instructions are hard to come by.</p></div>
<p>There are a few tuts and scripts on the web that do so, but all seem to be all too happy to put you at the mercy of dependency hell — whether Redhat unique dependencies (eliminating <a title="Ubuntu" href="http://www.ubuntu.com" target="_blank">Ubuntu</a>, my distro of choice), or ones that require downloading, compiling and setting execute permissions. In short, too much work.</p>
<p>After some heavy scouring, a <a title="Merging Fedora Core CDs into DVD" href="http://www.unixresources.net/linux/lf/2/archive/00/00/16/40/164073.html" target="_blank">link</a> was discovered containing a script that achieves the task, but with Fedora Core. A little modding later, it worked perfectly fine with RHEL 5.3. Here&#8217;s how to do it.</p>
<p>First, we&#8217;re assuming you have ISOs available of the RHEL CDs. Dump them in a folder, open up a terminal and browse to their location.</p>
<p>Next, we need to create folders to mount your existing ISOs:</p>
<pre class="brush: delphi; title: ; notranslate">mkdir -p disk1
mkdir -p disk2
mkdir -p disk3
mkdir -p disk4
mkdir -p disk5</pre>
<p>Now mount each of the CDs into their respective folders, replacing the file names with whatever your ISOs are called:</p>
<pre class="brush: delphi; title: ; notranslate">mount -o ro,loop RHEL1.iso disk1
mount -o ro,loop RHEL2.iso disk2
mount -o ro,loop RHEL3.iso disk3
mount -o ro,loop RHEL4.iso disk4
mount -o ro,loop RHEL5.iso disk5</pre>
<p>Now we want to create a DVD folder, and copy the needed files across from the ISOs.</p>
<pre class="brush: delphi; title: ; notranslate">mkdir -p dvd
cp -av disk1/* dvd
cp -pv disk2/Server/*.rpm dvd/Server
cp -pv disk3/Server/*.rpm dvd/Server
cp -pv disk4/Server/*.rpm dvd/Server
cp -pv disk5/Server/*.rpm dvd/Server</pre>
<p>A little bit of cleanup&#8230;</p>
<pre class="brush: delphi; title: ; notranslate">find dvd -name TRANS.TBL | xargs rm -f</pre>
<p>Patch the .discinfo file, so it knows all CDs are represented on the one disc:</p>
<pre class="brush: delphi; title: ; notranslate">awk '{ if ( NR == 4 ) { print &quot;1,2,3,4,5&quot; } else { print; } }' disk1/.discinfo &gt; dvd/.discinfo</pre>
<p>Unmount your CD images, and remove the folders you created:</p>
<pre class="brush: delphi; title: ; notranslate">umount disk1
umount disk2
umount disk3
umount disk4
umount disk5
rm disk1
rm disk2
rm disk3
rm disk4
rm disk5</pre>
<p>Create your bootable DVD ISO. The original script used mkisofs, but if you don&#8217;t want to waste time installing it on Ubuntu, you can also use genisofs, as the arguments are the same:</p>
<pre class="brush: delphi; title: ; notranslate">genisofs -J -R -v -T -V &quot;RHEL53DVD&quot; -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 8 -boot-info-table -o RHEL53DVD.iso dvd</pre>
<p>After a little bit of file generation, you&#8217;ll have your DVD ISO. Burn using your tool of choice, and test the installer on your target system. If all runs well, feel free to delete those pain in the arse CD images, and archive the DVD one instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.fusetnt.com/2009/04/merging-rhel-53-cds-to-dvd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

