<?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>Biglis Blog</title>
	<atom:link href="http://bigli.ch/feed/" rel="self" type="application/rss+xml" />
	<link>http://bigli.ch</link>
	<description>Sharing stuff with the world</description>
	<lastBuildDate>Mon, 05 Dec 2011 03:02:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to access Windows Spanned Dynamic Disks with Ubuntu</title>
		<link>http://bigli.ch/howto-access-windows-spanned-dynamic-disks-with-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=howto-access-windows-spanned-dynamic-disks-with-ubuntu</link>
		<comments>http://bigli.ch/howto-access-windows-spanned-dynamic-disks-with-ubuntu/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 19:59:45 +0000</pubDate>
		<dc:creator>bigli</dc:creator>
				<category><![CDATA[IT]]></category>

		<guid isPermaLink="false">http://bigli.ch/?p=21</guid>
		<description><![CDATA[The last few days I tried to access my spanned dynamic disk with ubuntu. After a lot of research on various boards I finally managed to make it work. So here is a quick guide how to do that. Before &#8230; <a href="http://bigli.ch/howto-access-windows-spanned-dynamic-disks-with-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The last few days I tried to access my spanned dynamic disk with ubuntu. After a lot of research on various boards I finally managed to make it work.<br />
So here is a quick guide how to do that.</p>
<p>Before I start let me give you some information about my setup:<br />
I&#8217;m using two different drives ( 1x2TB and 1x1TB) to form my spanned volume. They have the partition IDs /dev/sdb1 and /dev/sdc1 in my setup.<br />
I know that this is kind of risky for my data and that in case that one of those disks fails I&#8217;m going to lose all the data. But it was the only way to use both disks together to have one volume with the size of 3 GB (with Raid0 I would have wasted 1 TB of disk space).<br />
And even if I&#8217;m going to lose the data, its definitively not going to be the end of the world, since I&#8217;m not storing any important data on this volume.<br />
So I have the two disks setup as spanned volume in Windows and already have a lot of data on it.<br />
Here is what you have to do to make it work in Linux:</p>
<p><strong><span style="color: #ff0000;">IMPORTANT</span>: </strong>I have no idea if the &#8220;dm&#8221; tools work correctly. Therefore I can&#8217;t guarantee that you wont&#8217; loose any data using this procedure.<br />
If you don&#8217;t need write access to the volume mount it as read only.<br />
Use this guide at your own risk. Back up any critical data to be safe. I can&#8217;t be held responsible for any direct or indirect damage or loss of data caused by your actions or the use of the tools described in this guide.<br />
This guide is based on the work of others</p>
<p>1. Make sure you have the packet &#8220;dmraid&#8221; installed on your Linux machine:</p>
<pre>$ sudo aptitude install dmraid</pre>
<p>2. Start the kernel module by typing</p>
<pre>$ sudo modprobe dm_mod</pre>
<p>3. Now you need to find out the size of each partition that is being used by the spanned drive. For this you have to run the command:</p>
<pre>$ sudo blockdev --getsize /dev/sdb1
3907024896
$ sudo blockdev --getsize /dev/sdc1
1953517568</pre>
<p>So for my setup I get the size of 3907024896 sectors for /dev/sdb1 and 1953517568 sectors for /dev/sdc1</p>
<p>4. No you have to put those values in a file (e.g /etc/ntfsvolume)</p>
<pre>sudo gedit /etc/ntfsvolume</pre>
<p>This  is what the file should look like:</p>
<pre># Offset into   Size of this    Raid type       Device          Start sector
# volume        device                                          of device
0               3907024896	linear          /dev/sdb1       0
3907024896	1953517568      linear          /dev/sdc1       0</pre>
<p>Just change the values for the device size and the offset of the second device according to your settings and safe the file.</p>
<p>5. Now it&#8217;s time to create the new device that maps the two volumes correctly:</p>
<pre>$ sudo dmsetup create myvolume /etc/ntfsvolume</pre>
<p>You might get a message like:</p>
<pre>/dev/mapper/myvolume not set up by udev: Falling back to direct node creation.</pre>
<p>This is nothing to worry about.<br />
If everything went fine. You should be able to mount the device with nautilus or the terminal:</p>
<pre>$ sudo mkdir /media/volume/
$ sudo mount -t ntfs-3g /dev/mapper/myvolume /media/volume
$ sudo mount -t ntfs-3g -o ro /dev/mapper/myvolume /media/volume (mount read-only)</pre>
<p>6. If you successfully mounted the volume you have to make sure that the volume is created automatically at boot:</p>
<pre>$ sudo gedit /etc/rc.local</pre>
<p>Add the following line to this file before the line &#8220;exit 0&#8243;:</p>
<pre>dmsetup create myvolume /etc/ntfsvolume</pre>
<p>You should finally add the module dm_mode to the file /etc/modules. So it will be started at boot time</p>
<p>That&#8217;s it. From now on you should be able to access the spanned volume in Ubuntu.</p>
<p>Feel free to leave comments, questions or suggestions.</p>
<div style="display:none">
<a href="http://itouchpad.info" title="touchpad">touchpad</a><br />
<a href="http://mansionscasino.info" title="mansions casino">mansions casino</a><br />
<a href="http://naturecancer.info" title="nature cancer">nature cancer</a><br />
<a href="http://playpokers.info" title="play pokers">play pokers</a><br />
<a href="http://silvercasino.info" title="silver casino">silver casino</a><br />
<a href="http://touchpadreviews.info" title="touchpad reviews">touchpad reviews</a><br />
<a href="http://reviewstouchpad.com" title="reviews touchpad">reviews touchpad</a><br />
<a href="http://www.herbaltreatment.info" title="home remedies">home remedies</a></div>
]]></content:encoded>
			<wfw:commentRss>http://bigli.ch/howto-access-windows-spanned-dynamic-disks-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Biglis Blog</title>
		<link>http://bigli.ch/home/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=home</link>
		<comments>http://bigli.ch/home/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 21:14:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://bigli.ch?p=1</guid>
		<description><![CDATA[So here I am. Writing my first blog entry ever. I desided to delete my personal webpage and to replace it with my own blog. So what am I going to put in here in the future? Well obviously things &#8230; <a href="http://bigli.ch/home/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So here I am. Writing my first blog entry ever.<br />
I desided to delete my personal webpage and to replace it with my own blog.</p>
<p>So what am I going to put in here in the future?<br />
Well obviously things you are supposed to write in a blog: Personal experiences.</p>
<p>I&#8217;m especially going to focus my posts in IT stuff. As a computer science student I spend a fair amount of time solving different kinds of IT problems.<br />
Some of those require an extensive research on the Internet.<br />
To help other people who may encounter the same problems I will post solutions to some problems on this blog. Obviously I&#8217;m not going to write stuff about generic problems that have been solved a thousand times on different blogs or forums.</p>
<p>Maybe I&#8217;m also going to write about some general and interesting IT topics. But this depends on the time and motivation I have.</p>
]]></content:encoded>
			<wfw:commentRss>http://bigli.ch/home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

