<?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 Kernel &#8211; Harry Jackson</title>
	<atom:link href="http://127.0.0.1:8090/category/linux-kernel/feed" rel="self" type="application/rss+xml" />
	<link>http://127.0.0.1:8090</link>
	<description>Parent, Painter, Programmer</description>
	<lastBuildDate>Sun, 04 Mar 2012 15:38:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>qemu bridged networking</title>
		<link>http://127.0.0.1:8090/qemu_bridget_networking.htm</link>
					<comments>http://127.0.0.1:8090/qemu_bridget_networking.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sun, 04 Mar 2012 15:38:45 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux Kernel]]></category>
		<category><![CDATA[Technical]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=404</guid>

					<description><![CDATA[My final /etc/networking/interfaces file looks like (this is for Debian)auto lo eth0 tap0 br0iface lo inet loopbackiface br0 inet dhcp bridge_ports eth0 tap0 bridge_maxwait 0iface eth0 inet manualiface tap0 inet manual pre-up tunctl -b -u &#60;my_user_name&#62; -t tap0 pre-up ifconfig tap0 up post-down tunctl -d tap0 I stole this from the following site joost.damad.be Beware &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/qemu_bridget_networking.htm" class="more-link">Continue reading<span class="screen-reader-text"> "qemu bridged networking"</span></a></p>]]></description>
										<content:encoded><![CDATA[<pre>My final /etc/networking/interfaces file looks like (this is for Debian)<br /><br /><b>auto lo eth0 tap0 br0<br /><br />iface lo inet loopback<br /><br />iface br0 inet dhcp<br />        bridge_ports eth0 tap0<br />        bridge_maxwait 0<br /><br />iface eth0 inet manual<br /><br />iface tap0 inet manual<br />        pre-up tunctl -b -u <strike><u><i>&lt;my_user_name&gt;</i></u></strike> -t tap0<br />        pre-up ifconfig tap0 up<br />        post-down tunctl -d tap0</b></pre>
<p>I stole this from the following site <a href="http://joost.damad.be/2007/04/debian-in-kvm-mini-howto.html">joost.damad.be</a></p>
<p>Beware the username enttry above needs to be changed to your username&#8230; You will also need to install uml-utilities. Once I had this running I could start my image as follows:</p>
<p><b>qemu -net nic -net tap,ifname=tap0,script=no -hda debian.img</b></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/qemu_bridget_networking.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Mount You must specify the filesystem type</title>
		<link>http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm</link>
					<comments>http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm#respond</comments>
		
		<dc:creator><![CDATA[harry]]></dc:creator>
		<pubDate>Sat, 03 Mar 2012 07:00:32 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Kernel]]></category>
		<category><![CDATA[Technical]]></category>
		<guid isPermaLink="false">http://www.hjackson.org/wp/?p=403</guid>

					<description><![CDATA[I encountered this error while trying to mount an image created using qemu. The command from the docs says to run the following command to mount it on the loopback device. mount -o loop,offset=32256 debian.img ./mntpoint This is completely wrong because the data start is not 32kb into the image file. To figure out where &#8230; <p class="link-more"><a href="http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm" class="more-link">Continue reading<span class="screen-reader-text"> "Mount You must specify the filesystem type"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>I encountered this error while trying to mount an image created using qemu. The command from the docs says to run the following command to mount it on the loopback device.</p>
<p></p>
<pre><b>mount -o loop,offset=32256 debian.img ./mntpoint</b><br /><br /></pre>
<p>This is completely wrong because the data start is not 32kb into the image file. To figure out where it starts you need to use the following commands:<br /><b><i><br />]$ fdisk -ul debian.img</i><br />you must set cylinders.<br />You can do this from the extra functions menu.</p>
<p>Disk debian.img: 0 MB, 0 bytes<br />255 heads, 63 sectors/track, 0 cylinders, total 0 sectors<br />Units = sectors of 1 * 512 = 512 bytes<br />Sector size (logical/physical): 512 bytes / 512 bytes<br />I/O size (minimum/optimal): 512 bytes / 512 bytes<br />Disk identifier: 0x00077ccb</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Blocks&nbsp;&nbsp; Id&nbsp; System<br />debian.img1&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2048&nbsp;&nbsp;&nbsp;&nbsp; 5785599&nbsp;&nbsp;&nbsp;&nbsp; 2891776&nbsp;&nbsp; 83&nbsp; Linux<br />Partition 1 does not end on cylinder boundary.<br />debian.img2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5787646&nbsp;&nbsp;&nbsp;&nbsp; 6141951&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 177153&nbsp;&nbsp;&nbsp; 5&nbsp; Extended<br />Partition 2 does not end on cylinder boundary.<br />debian.img5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5787648&nbsp;&nbsp;&nbsp;&nbsp; 6141951&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 177152&nbsp;&nbsp; 82&nbsp; Linux swap / Solaris</p>
<p></b>Once you have this output you can see that the data starts at sector 2048 and since sector size is 512 on my image I need to set the offset to 512*2048. So the final working command is<b>:</p>
<p>mount -o loop,offset=$((512*2048)) -t ext3 ./debian.img ./mntpoint</p>
<p></b>and we now have a mounted image file.<b><br /></b></p>
]]></content:encoded>
					
					<wfw:commentRss>http://127.0.0.1:8090/mount_you_must_specify_the_filesystem_type.htm/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
