In message <[email protected]>, Anssi Saari wrote: > Nobody <[email protected]> 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
