Auto Install for Mandrake Linux
Prev Next

partitions

This option is used to define the partitions that are to be created on your hard disks. It is used in conjunction with the 'partitioning' options entry for 'auto_allocate'. If 'auto_allocate' => 0, then this options' contents are ignored.

'partitions' => [

{

'mntpoint' => '/boot',

'type' => 131,

'size' => 64449,

'hd' => 'hda'

},

{

'mntpoint' => 'swap',

'type' => 130,

'size' => 524097,

'hd' => 'hda'

},

{

'mntpoint' => '/',

'type' => 387,

'size' => 573344,

'ratio' => 100,

'maxsize' => 5750000

'hd' => 'hda'

}

],

Descriptions:

'mntpoint' - the directory where the partition will be mounted.

'type' - file system type for the partition.

131 (0x83) is ext2, 130 (0x82) is swap, 387 (0x183) is reiserfs. See Mandrake/mdkinst/usr/bin/perl-install/partition_table.pm for a complete listing.

'size' - the number of sectors that the partition is to be created with. The partitioning of the disk is done to the nearest cylinder boundary less than or equal to the number you have specified. The number of sectors in a cylinder are found by (number of sectors per track) * (number of heads). Usually each sector is 512 bytes in size, so you can do the math...

A quick short way is: 'size' => 32 << 11 should give you something just short of 32 megabytes.

'ratio' - is the percentage (1 -> 100) of the disk that the partition can grow to.

'maxsize' - is the maximum number of sectors that the partition can be. A limit on the 'ratio'

'hd' - device label (without the /dev/ part) for the disk drive that this set of definitions applies to. eg. hda or sdb. This entry is not required if you only have one hard disk, but it may be a good habit to get into in case the next system has more than one drive and you forget.

Currently, you can NOT configure software LVM or RAID devices with this option, only hardware RAID. However, if you want to use the software versions of these, you can use the Replay Install method and manually set them up.

NOTE: To make your life a bit simpler and be able to allocate all of the disk, change the last partitions 'size' to some small value and set the 'ratio' to 100. This has the effect of allocating all of the remainder of the disk to that partition.

Related Option Entries:

manualFstab, partitioning




PrevHome Next
partitioning   postInstall and postInstallNonRooted