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 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? -- http://mail.python.org/mailman/listinfo/python-list