how can i read /dev/sda1?
<p>I'm trying to run this in the Python REPL:</p>

<pre class="lang-python prettyprint-override"><code>file = open('/dev/sda1','rb')
</code></pre>

<p>However, I am getting this error:</p>

<blockquote>
  <p><strong>Traceback (most recent call last):</strong><br>
  File <code>&lt;stdin&gt;</code>, line 1, in <code>&lt;module&gt;</code><br>
  <strong><code>IOError</code>: [Errno 13]</strong> <em>Permission denied: <code>/dev/sda1</code></em></p>
</blockquote>

<p>How do I gain access to <code>/dev/sda1</code>?</p>
