From: Sriram D. <sri...@gm...> - 2007-08-15 17:39:22
|
Is it part of your plan to allow multiple partitions to be marked for using free space from? if so then going with your mount approach may not be that bad. show a lis tof all partitions + free space on partition. let the user make a decision on which partitions should be resized. the installer can provide a basic visual check that the required free space has been achieved. and then un mount every thing and go on with your usual algorithm of resizing the selected partitions and using the resulting free space. This approach makes good use of mounting all partitions and hopefully will handle ext partitions also. cheers ram On 8/14/07, M0E Lnx <m0...@gm...> wrote: > > So then, you do need to know the ammount of free space left on the > device so you can then resize which ever partition is the largest and > steal space to make your Linux friendly partition. > This involves > * an analysis of the drive to determine what partitions are present. > * If in Wind OS, most likely one hughe partition for the system and > mayne a backup / restore partition > * Maybe analyze the size of each partition to determine which one is > the largest and also to get a correct label for your new partitons > (/dev/hdxx) > > > > On 8/14/07, uel archuletta <ue...@gm...> wrote: > > Sorry I didnt think about wanting to resize. > > i dont have any ext3 partitions but I do get this error with ext2 > > root:# parted /dev/hdb print 5 > > Error: File system was not cleanly unmounted! You should run e2fsck. > > Modifying > > an unclean file system could cause severe corruption. > > Ignore/Cancel? i > > > > Minor: 5 > > Flags: > > File System: ext2 > > Size: 10.5GB (4.20%) > > Minimum size: 9001MB (3.60%) > > Maximum size: 250GB (100%) > > > > and it seems the version of parted i have doesnt support ntfs > > root:# parted /dev/hda print 1 > > No Implementation: Support for opening ntfs file systems is not > implemented > > yet. > > but works well with fat32 > > root:# parted /dev/hdb print 1 > > > > Minor: 1 > > Flags: boot, lba > > File System: fat32 > > Size: 105GB (41.9%) > > Minimum size: 97.5GB (39.0%) > > Maximum size: 250GB (100%) > > > > uel > > > > On 8/14/07, Eug=E9ne Suter <ea...@gm...> wrote: > > > > > > Seems that parted can be used for this after all (according to the > post in > > the gparted forum): > > > > > > > > > > > > > Lets say the partition you want to check is a fat32 partition on > > /dev/hda1. > > > > > > > > >parted /dev/hda1 > > > > > > > > bla bla bla > > > > > > > > >print 1 > > > > > > > > Minor: 1 > > > > Flags: > > > > File System: fat32 > > > > Size: 10.0GB (100%) > > > > Minimum size: 8369MB (83.7%) <------- RIGHT HERE > > > > Maximum size: 10.0GB (100%) > > > > > > > > 100% - 83.7% =3D 16.3% free > > > > > > > > That's how GParted does it. Hope this helps. > > > > > > > > Patrick Verner > > > > www.partedmagic.com > > > > > > > > > > > > Problem is, this only works for me on non ext* filesystems. > > > Running parted against one of my ext3 backup partitions gives this > error: > > > > > > > > > > > > > root:# parted /dev/hda print 5 > > > > Error: File system has an incompatible feature enabled. > > > > > > Anyone else get this problem on ext3 partitions as well? > > > > > > > > > > > > ------------------------------------------------------------------------- > > > 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 > > > > > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > > > > > ------------------------------------------------------------------------- > 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 > |