<?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>Linux Neophyte &#187; mkisofs</title>
	<atom:link href="http://linuxneophyte.com/tag/mkisofs/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxneophyte.com</link>
	<description>Trials of a Linux Newb.</description>
	<lastBuildDate>Mon, 20 Oct 2008 12:42:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating ISOs &amp; DVDs using console tools</title>
		<link>http://linuxneophyte.com/creating-isos-dvds-using-console-tools/</link>
		<comments>http://linuxneophyte.com/creating-isos-dvds-using-console-tools/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 14:43:31 +0000</pubDate>
		<dc:creator>M@</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apps]]></category>
		<category><![CDATA[Archive]]></category>
		<category><![CDATA[CD]]></category>
		<category><![CDATA[cdrecord]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[mkisofs]]></category>
		<category><![CDATA[wodim]]></category>

		<guid isPermaLink="false">http://linuxneophyte.com/creating-isos-dvds-using-console-tools/</guid>
		<description><![CDATA[I tend to create DVD archives of data.  I&#8217;ve always done this in Windows using Nero to burn my archives and then I store them in a cool dry place.  Since I tend to keep everything on my headless Etch server in the basement now, I need a new way to burn off/save [...]]]></description>
			<content:encoded><![CDATA[<p>I tend to create DVD archives of data.  I&#8217;ve always done this in Windows using Nero to burn my archives and then I store them in a cool dry place.  Since I tend to keep everything on my headless Etch server in the basement now, I need a new way to burn off/save my data.  I spent some time this afternoon reading up on creating ISOs and burning them.</p>
<p><strong>Note:</strong> <em>I did all of this as <code>root</code></em></p>
<p>First, creating an ISO image.  What I need to do is create an image from a directory of goodies that I need to back up.  The directory I&#8217;m backing up contains 4.4G (or one single layer DVD) of random MP3s and I want them written to the root of the DVD when it&#8217;s finalized.</p>
<p>I started by reading the man page for <code>mkisofs</code>.  That got me started, and then a quick read of <a href="http://wiki.linuxquestions.org/wiki/Mkisofs" target="_blank">http://wiki.linuxquestions.org/wiki/Mkisofs</a> finished me off.  My first few attempts just gave me ISOs containing MP3s with short filenames or short filenames in all CAPS.  Not what I wanted, these are all descriptively named files and I want to retain the names.  The command below worked perfectly.</p>
<blockquote><p><code>mkisofs -r -J -l -d -joliet-long -allow-multidot -V Mp3_003 -o ./Mp3_003.iso _Archive/Mp3_003/*</code></p></blockquote>
<p>All of those options are important, <code>-r</code> makes the files publicly readable (among other things), <code>-J</code> preserves case (upper/lower), <code>-l</code> allows long filenames, <code>-d</code> doesn&#8217;t add a period to the end of files that don&#8217;t have them, <code>-joliet-long</code> allows up to 103 characters (vs 64), <code>-allow-multidot</code> allows files to contain multiple periods and <code>-o</code> specifies the output file name, .  Optionally, (but why wouldn&#8217;t you) <code>-V</code> sets the DVD&#8217;s Volume name (up to 32 characters).  As is typical, there are many more options available to you, spend a little time reading the man page for more info.</p>
<p><strong>Note:</strong> <em><code>-joliet-long</code> was key for me.  I found that when I attempted to read files with filenames longer than 64 characters on Windows, they would be truncated and NOT in a good way.  The filename would be truncated in reverse, starting with the file extension.  A 65 character file with a .MP3 extension would end up with a .MP extension.  Ugly.  That said, the man page warns that this breaks the joliet specification and to use with caution.  You&#8217;ve been warned.<br />
</em></p>
<p>After a few moments you&#8217;ll have an ISO image containing all of the files you specified.  In my case, all of the MP3&#8217;s I&#8217;ve collected since I burned my last backup.</p>
<p>Now to write it to my media:</p>
<blockquote><p><code>cdrecord -v -sao  dev=/dev/dvd Mp3_003.iso</code></p></blockquote>
<p><code>-v</code> sets verbose mode, <code>-sao</code> enables session at once (no multi-disc), <code>dev=/dev/dvd</code> specifies the device to use and finally, the input file; <code>Mp3_003.iso</code>.  There are <strong>A LOT</strong> of options available to you, you&#8217;ll want to spend a little time with <code>man cdrecord</code>.</p>
<p><strong>Note:</strong> <em>You don&#8217;t need to specify the device if you have a properly configured <code>/etc/wodim.conf</code>.  If you&#8217;re wondering why it isn&#8217;t <code>/etc/cdrecord.conf</code>, the answer is that <code>cdrecord</code> is nothing more than a sym link to <code>/usr/bin/wodim</code> on Debian (and possibly other distros).  You can verify this on your box with <code>which cdrecord | file -f -</code></em>.</p>
<p>My first write failed but it was because I have two VMware virtual machines running on this box and they were attempting to poll the CD-ROM drive for media.  The fix was to disconnect the drives in the VMs and then burn.</p>
<p>The resulting CD should be readable in any modern OS.  I have no problem accessing the files from Linux or Windows and feel confident that I have a solid solution for creating DVD archives.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxneophyte.com/creating-isos-dvds-using-console-tools/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
