<?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>FreeStone Blog &#187; mount</title>
	<atom:link href="http://blog.freestone.net/index.php/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.freestone.net</link>
	<description>What goes on at FreeStone ...</description>
	<lastBuildDate>Thu, 02 Feb 2012 06:35:55 +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>Mount a prtition from a diskimage with linux</title>
		<link>http://blog.freestone.net/index.php/2010/05/06/mount-a-prtition-from-a-diskimage-with-linux/</link>
		<comments>http://blog.freestone.net/index.php/2010/05/06/mount-a-prtition-from-a-diskimage-with-linux/#comments</comments>
		<pubDate>Thu, 06 May 2010 06:28:58 +0000</pubDate>
		<dc:creator>Matthias Cramer</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://blog.freestone.net/?p=66</guid>
		<description><![CDATA[While duplicating CF cards for a Project running on ALIX boards. A had the need to change something on the Diskimage which I am duplicating. But this image was a dump of the whole CF card, including MBR, partitiontable and so on. So some magic has to be done... First we have to find out [...]]]></description>
			<content:encoded><![CDATA[<p>While duplicating CF cards for a Project running on ALIX boards. A had the need to change something on the Diskimage which I am duplicating.</p>
<p>But this image was a dump of the whole CF card, including MBR, partitiontable and so on. So some magic has to be done...</p>
<p>First we have to find out where the partition starts inside the diskimage. The easiest was is to use parted to find that out:</p>
<blockquote><p><code>cramer@fiji:~$ sudo parted swissix-oob-2010-05-05.img<br />
GNU Parted 2.2<br />
Using /home/cramer/swissix-oob-2010-05-05.img<br />
Welcome to GNU Parted! Type 'help' to view a list of commands.<br />
(parted) unit<br />
Unit?  [compact]? B<br />
(parted) print<br />
Model:  (file)<br />
Disk /home/cramer/swissix-oob-2010-05-05.img: 4017807360B<br />
Sector size (logical/physical): 512B/512B<br />
Partition Table: msdos</code></p>
<p>Number  Start   End          Size         Type     File system  Flags<br />
1      32256B  4017291263B  4017259008B  primary  ext2         boot</p>
<p>(parted) quit</p></blockquote>
<p>So this means that the first and only partition in this case starts at offset 32256.</p>
<p>Now we can mount this partition with the loop module:</p>
<blockquote><p><code>sudo mount -o loop,offset=32256 swissix-oob-2010-05-05.img /mnt</code></p></blockquote>
<p>That's it. Easy if you just know it....</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.freestone.net/index.php/2010/05/06/mount-a-prtition-from-a-diskimage-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

