<?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>open-nandra &#187; squashfs</title>
	<atom:link href="http://open-nandra.com/tag/squashfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://open-nandra.com</link>
	<description>open source</description>
	<lastBuildDate>Sun, 01 Jan 2012 13:10:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Initrd creation/extraction</title>
		<link>http://open-nandra.com/2009/03/initrd-creationextraction/</link>
		<comments>http://open-nandra.com/2009/03/initrd-creationextraction/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 21:57:40 +0000</pubDate>
		<dc:creator>Marek Belisko</dc:creator>
				<category><![CDATA[HOW-TOs]]></category>
		<category><![CDATA[cpio]]></category>
		<category><![CDATA[initrd]]></category>
		<category><![CDATA[squashfs]]></category>

		<guid isPermaLink="false">http://open-nandra.com/?p=142</guid>
		<description><![CDATA[How to simple create initrd? Question which arise also for me when doing some modifications on rootfs and then need to compress it. In this article I try to describe how to do it. You need rootfs or initrd image which you would like to extract. Extraction: 1. check initrd file: file initrd-2.6.25.20-0.1-pae initrd-2.6.25.20-0.1-pae: gzip [...]]]></description>
			<content:encoded><![CDATA[<p>How to simple create initrd? Question which arise also for me when doing some modifications on rootfs and then need to compress it.</p>
<p>In this article I try to describe how to do it.<br />
<span id="more-142"></span>You need rootfs or initrd image which you would like to extract.</p>
<p><strong>Extraction:</strong></p>
<p>1. check initrd file:</p>
<pre>file initrd-2.6.25.20-0.1-pae</pre>
<pre>initrd-2.6.25.20-0.1-pae: gzip compressed data, from Unix, last modified: Wed Jan 28 18:51:41 2009, max compression</pre>
<p>Image is rootfs compressed with help of gzip and cpio.</p>
<p>2. use command for extraction:</p>
<pre>zcat initfs.img |cpio -id --no-absolute-filenames</pre>
<p>You need to be root when you perform create/extract actions.<br />
If not then you can get errors because initrd could contain /dev nodes which have root privileges.</p>
<p><strong>Creation:</strong></p>
<p>1. run command in root directory tree which sould be add to initrd image</p>
<pre>find |cpio -H newc -o |gzip -c &gt; initfs.img</pre>
<p>Note: inird file could be compressed into different filesystems (e.g squashfs &#8230;) use then appropriate command to create and extract initrd.</p>
<p>Marek</p>
]]></content:encoded>
			<wfw:commentRss>http://open-nandra.com/2009/03/initrd-creationextraction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

