bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I get the device number of a partition before it's created?


From: Hauke Goos-Habermann
Subject: How can I get the device number of a partition before it's created?
Date: Wed, 13 Aug 2003 17:26:52 +0200
User-agent: KMail/1.5.2

Hi,

I'm working on a web based frontend (PHP) for parted for our software 
distribution system m23 (m23.sf.net), that allows me to remove, add and 
format partitions. The interface showes me how the new partitionating will 
look like before it is actualy done. So I've to know how the partitions are 
numbered (e.g. hda1, hda2, ...). After each operation the web page is updated 
and shows me the new look of the partitioning.

What I don't understand is the numbering of the newly created partitions. 
Sometimes they get reordered and sometimes not. If I delete a partition and 
create two new in that space the numbering is not always recalculaded. Till 
now I haven't found the algorithm how it is done.

Can somebody help me?

Regards Hauke





reply via email to

[Prev in Thread] Current Thread [Next in Thread]