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 python

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 'p

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

2017-07-06 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 > get

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

2010-10-04 Thread Seebs
On 2010-10-05, Lawrence D'Oliveiro wrote: > In message , 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 others have already > done? That isn't what the other poster s

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

2010-10-04 Thread Lawrence D'Oliveiro
In message , Anssi Saari wrote: > Lawrence D'Oliveiro 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 ca

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 Anssi Saari
Lawrence D'Oliveiro 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 > all for free? Because for th

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

2010-10-03 Thread Lawrence D'Oliveiro
In message , Anssi Saari wrote: > Nobody 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 something close to two dozen different partition fo

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

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

2010-09-30 Thread Anssi Saari
Nobody 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 partition

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

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 reasona

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? An