[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatic partitioning of harddisk in linux
From: |
Andrew Clausen |
Subject: |
Re: Automatic partitioning of harddisk in linux |
Date: |
Fri, 27 Jul 2001 10:21:29 +1000 |
User-agent: |
Mutt/1.2.5i |
On Thu, Jul 26, 2001 at 10:21:43AM -0000, Meenakshi Sharma wrote:
> Respected Sir,
> I am a c- programer.And I am doing a project in which I have to provide the
> following 3 option :
>
> 1)Find out the size of your harddisk
> 2)Manual Partition
> 3)Automatic Partition(100 MB-boot,128MB-swap,128MB-Swap,/-remaining
>
> I think Manual partition (option -2) can be done easily by using the sfdisk
> command and following the instructions on the screen. However, in order to
> create automatic partition ( option 3), I do not know how I should proceed.
> Please explain to me the following :
>
> -How to find out size of harddisk ( I am using sfdisk -s command)
> -How to create automatic partition. Currently I am using cfdisk command but
> I don't know how to pass parameter (using cluster,sector,tracks)
RTFM, or ask the author / list / whatever. (Andreas Brouwer, IIRC)
IIRC, it's pretty straight forward... it's in the same format as the
"print" output.
> (ii) I shall be grateful if you advise me whether is there any other command
> / utility which give me automatic partition facility.
You could use libparted + python bindings, and make your own tool fairly
easily...
http://people.redhat.com/msw/parted-python.tar.gz
Up to you *shrug*
Or you could use libparted directly. Or modify one of the existing
front ends (parted, gtkparted, kparted, mi, anaconda...).
Andrew