Dipl.-Ing. Ralf Neugebauer wrote:
Problem: I have got completly similar computers expect the harddisc's. There are three Western Digital WD400EB (20.000 logical sectors) and fifteen Western Digital WD400BB (4800 logical sectors). This difference causes a problem with region tags in partition part of Configfile. How can I do a harddisc check as rule to create the region tags? I need similar partitions to write the old image to it.
Why do you use region then? Wouldn't it be easier to specify sizes? To create a new partition /dev/hda2 of 200mb for /boot I use sth. like <partition> <create config:type="boolean">true</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <fstopt>defaults</fstopt> <mount>/boot</mount> <partition_nr config:type="integer">2</partition_nr> <size>200mb</size> </partition> and if this partition already existed before and I want to reformat it I just use <partition> <create config:type="boolean">false</create> <filesystem config:type="symbol">ext3</filesystem> <format config:type="boolean">true</format> <fstopt>defaults</fstopt> <mount>/boot</mount> <partition_nr config:type="integer">2</partition_nr> </partition> without giving a size. This way you never have to deal with sectors... cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *