From: <ea...@gm...> - 2007-08-14 20:09:11
|
Well, a little update on whats happening with the drive partitioning: I'm trying to get the installer to check for available space before installing anything (since this was one of the flaws that the text installe= r has: it will crash and burn if space runs out). This is easy enough to accomplish for the full-auto partitioning mode, sinc= e the installer creates the partitions, it knows how much space there is available. But for the "free-space mode" its a different story: the unused space value= s have to be obtained some other way, and from reading parted's documentation and asking on the #parted channel, libparted does not provide any way to know the amount of unused space on an *unmounted* partition. One possible way would be to mount ALL the partitions found and parse df, but thats a somewhat messy approach. The best would be to get the amount of unused space when the partitions are still unmounted (so these values can be displayed to the user before selecting a partition). I've opened a thread on the GParted forum about this ( http://gparted-forum.surf4.info/viewtopic.php?id=3D862), since they have obviously found a way to do this. Any ideas on solving this problem some other way? Cheers, Eug=E9ne |