Re: how to get partition information of a hard disk with python

2017-07-07 Thread Tim Chase
Strange. The OP's message didn't make it here, but I'm seeing multiple replies > On Wednesday, September 22, 2010 at 4:01:04 AM UTC+5:30, Hellmut > Weber wrote: > > Hi list, > > I'm looking for a possibility to access the partiton inforamtion > > of a hard disk of my computer from within a

Re: how to get partition information of a hard disk with python

2017-07-07 Thread Tim Golden
On 07/07/2017 07:18, palashkhair...@gmail.com wrote: On Wednesday, September 22, 2010 at 4:01:04 AM UTC+5:30, Hellmut Weber wrote: Hi list, I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Googling I found the module

Re: how to get partition information of a hard disk with python

2017-07-07 Thread palashkhaire92
On Wednesday, September 22, 2010 at 4:01:04 AM UTC+5:30, Hellmut Weber wrote: > Hi list, > I'm looking for a possibility to access the partiton inforamtion of a > hard disk of my computer from within a python program. > > Googling I found the module 'parted' but didn't see any possibility to >

Re: how to get partition information of a hard disk with python

2010-10-04 Thread Anssi Saari
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: The Linux kernel includes built-in support for something close to two dozen different partition formats, from the common ones like MS-DOS, Solaris, SGI, Ultrix, EFI and BSD on down. Why reinvent parts of that when you can get it

Re: how to get partition information of a hard disk with python

2010-10-04 Thread Tim Chase
On 10/04/10 09:33, Anssi Saari wrote: But can you really get all that for free, in python? in other words, is there a python API for all that? The stuff in /proc/partitions seems rather limited to me, although I have only vanilla partitions on my computers. A similar question regarding reading

Re: how to get partition information of a hard disk with python

2010-10-04 Thread Lawrence D'Oliveiro
In message vg3pqvqc9jy@pepper.modeemi.fi, Anssi Saari wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: The Linux kernel includes built-in support for something close to two dozen different partition formats, from the common ones like MS-DOS, Solaris, SGI, Ultrix, EFI

Re: how to get partition information of a hard disk with python

2010-10-04 Thread Seebs
On 2010-10-05, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message vg3pqvqc9jy@pepper.modeemi.fi, Anssi Saari wrote: Because for the common case it's simple and easy and one might learn something interesting? You consider it ???interesting??? to reinvent stuff that

Re: how to get partition information of a hard disk with python

2010-10-03 Thread Lawrence D'Oliveiro
In message vg31v8bfws3@pepper.modeemi.fi, Anssi Saari wrote: Nobody nob...@nowhere.com writes: Have you considered parsing /proc/partitions? One could also just read the partition table directly, it's on the first sector usually. The Linux kernel includes built-in support for

Re: how to get partition information of a hard disk with python

2010-09-30 Thread Anssi Saari
Nobody nob...@nowhere.com writes: On Wed, 22 Sep 2010 00:31:04 +0200, Hellmut Weber wrote: I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Have you considered parsing /proc/partitions? One could also just read the

Re: how to get partition information of a hard disk with python

2010-09-30 Thread Nobody
On Thu, 30 Sep 2010 11:41:48 +0300, Anssi Saari wrote: I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Have you considered parsing /proc/partitions? One could also just read the partition table directly, it's on

Re: how to get partition information of a hard disk with python

2010-09-22 Thread Nobody
On Wed, 22 Sep 2010 00:31:04 +0200, Hellmut Weber wrote: I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Have you considered parsing /proc/partitions? -- http://mail.python.org/mailman/listinfo/python-list

how to get partition information of a hard disk with python

2010-09-21 Thread Hellmut Weber
Hi list, I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Googling I found the module 'parted' but didn't see any possibility to get the desired information. Is there any reasonable documentation for the parted module?

Re: how to get partition information of a hard disk with python

2010-09-21 Thread MRAB
On 21/09/2010 23:31, Hellmut Weber wrote: Hi list, I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Googling I found the module 'parted' but didn't see any possibility to get the desired information. Is there any