From: uel a. <ue...@gm...> - 2007-08-14 20:29:42
|
you shouldnt need to know the unused space on a partition only the partitio= n size. since we should format the partitions, shouldnt we? Uel On 8/14/07, Eug=E9ne Suter <ea...@gm...> wrote: > > 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 instal= ler > has: it will crash and burn if space runs out). > > This is easy enough to accomplish for the full-auto partitioning mode, > since 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 > values have to be obtained some other way, and from reading parted's > documentation and asking on the #parted channel, libparted does not provi= de > 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 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Vectorlinux-devel mailing list > Vec...@li... > https://lists.sourceforge.net/lists/listinfo/vectorlinux-devel > > |