469,898 Members | 1,713 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,898 developers. It's quick & easy.

Python on linux

Hi i wanted to know how can i find disk size on linux platform using
python. Also any info on how i can partition the hard disk, etc will be
welcome thank you.
Nov 22 '05 #1
4 1492
> Hi i wanted to know how can i find disk size on linux platform using
python.


You could use python to drive the 'sfdisk' command through a pipe, which
will probably do much of what you want.

-- Lars

--
Lars Kellogg-Stedman <82*************@jetable.net>
This email address will expire on 2005-11-23.

Nov 22 '05 #2
> Hi i wanted to know how can i find disk size on linux platform using
python.


You could use python to drive the 'sfdisk' command through a pipe, which
will probably do much of what you want.

-- Lars

--
Lars Kellogg-Stedman <82*************@jetable.net>
This email address will expire on 2005-11-23.

Nov 22 '05 #3
Partitioning a hard disk on linux can be done with parted, see
http://www.gnu.org/software/parted/parted.html - I don't know how good
the python-pated interface is, and what it's capable of

Nov 22 '05 #4
Partitioning a hard disk on linux can be done with parted, see
http://www.gnu.org/software/parted/parted.html - I don't know how good
the python-pated interface is, and what it's capable of

Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Logan | last post: by
13 posts views Thread by Alexander May | last post: by
34 posts views Thread by Ville Voipio | last post: by
12 posts views Thread by Claudio Grondi | last post: by
25 posts views Thread by redefined.horizons | last post: by
1 post views Thread by Sorin Schwimmer | last post: by
2 posts views Thread by enquiring mind | last post: by
5 posts views Thread by jgelfand | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.