<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi,</p>
<p>It is not Haskell specific. You just have to read from the
partition device special file (e.g., something like /dev/sdb2) as
you would do with a normal file. You must have the permission to
do so (e.g., be root). Be careful as you can destroy your system
if you write something incorrect in your partitions.<br>
</p>
<p>Repositioning handles:
<a class="moz-txt-link-freetext" href="https://www.stackage.org/haddock/lts-8.20/base-4.9.1.0/System-IO.html#g:13">https://www.stackage.org/haddock/lts-8.20/base-4.9.1.0/System-IO.html#g:13</a><br>
</p>
<p>Read/write:
<a class="moz-txt-link-freetext" href="https://www.stackage.org/haddock/lts-8.20/base-4.9.1.0/System-IO.html#v:hPutBuf">https://www.stackage.org/haddock/lts-8.20/base-4.9.1.0/System-IO.html#v:hPutBuf</a></p>
<p>Sylvain<br>
</p>
<br>
<div class="moz-cite-prefix">On 26/06/2017 07:35, Silent Leaf wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGFccjN9sX+1bRbxbA_a0a7+q3RFR8H6FCfXS5vZxDSi8zKPkw@mail.gmail.com">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I'd like to be able to read and write from/to partitions
directly. I've had trouble with the documentation (honestly i
can't find anything, and any mention of partitions leads to
mathematical partitioning of lists or whatever).</div>
<div><br>
</div>
<div>I obviously would need to be able to write or read from a
specific position in the partition. Mind you that would be
good too for files (that is, being able to read/write from a
specific position in it) since i plan on making disk images.</div>
<div><br>
</div>
<div>Thanks in advance!</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Beginners mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners">http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</body>
</html>