On Sat, 2 Jun 2012 10:14:36 +0800
"水静流深" <[email protected]> <[email protected]> wrote:
> [snip]
> i want to read sda1 with python:
> >>> file=open('/dev/sda1','rb')
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IOError: [Errno 13] Permission denied: '/dev/sda1'
>
> how can i own the access to read sda1?
>
You need read privileges. Either change the permissions of /dev/sda1,
or run python as root.
--
Corey Richardson
--
http://mail.python.org/mailman/listinfo/python-list