Rex::Commands::Partition - Online Linux Manual PageSection : 3
Updated : 2021-03-06
Source : perl v5.32.1
Note : User Contributed Perl Documentation
NAMERex::Commands::Partition − Partition module
DESCRIPTIONWith this Module you can partition your harddrive. Version <= 1.0: All these functions will not be reported. All these functions are not idempotent.
SYNOPSIS use Rex::Commands::Partition;
EXPORTED FUNCTIONS
clearpart($drive)Clear partitions on drive `sda`: clearpart "sda";
Create a new GPT disk label (partition table) on drive `sda`: clearpart "sda",
initialize => "gpt";
If GPT initialization is requested, the `bios_boot` option (default: TRUE) can also be set to TRUE or FALSE to control creation of a BIOS boot partition: clearpart "sda",
initialize => "gpt",
bios_boot => FALSE;
partition($mountpoint, %option)Create a partition with the specified parameters: ondisk The disk to be partitioned. Mandatory. size Desired size of the partition in MB. It is mandatory to pass either a size or a grow parameter (but not both). grow If TRUE, then the partition will take up all the available space on the disk. It is mandatory to pass either a grow or a size parameter (but not both). type Partition type to be passed to parted's mkpart command. Optional, defaults to primary. boot Sets boot flag on the partition if TRUE. Optional, no boot flag is set by default. fstype Create a filesystem after creating the partition. Optional, no filesystem is created by default. label Label to be used with the filesystem. Optional, defaults to no label. mount If TRUE, try to mount the partition after creating it. Optional, no mount is attempted by default. mount_persistent If TRUE, try to mount the partition after creating it, and also register it in /etc/fstab. Optional, no mount or /etc/fstab manipulation is attempted by default. vg Creates an LVM PV, then creates the specified LVM VG (or extends it, if the VG already exists). Needs ondisk. Examples: partition "/",
fstype => "ext3",
size => 15000,
ondisk => "sda",
type => "primary";
partition "none",
type => "extended",
ondisk => "sda",
grow => 1,
mount => TRUE,
partition "swap",
fstype => "swap",
type => "logical",
ondisk => "sda",
size => 8000;
partition "/",
fstype => "ext3",
size => 10000,
ondisk => "sda",
vg => "vg0";
0
Johanes Gumabo
Data Size : 11,902 byte
man-Rex::Commands::Partition.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 170,132
Visitor ID : :
Visitor IP : 3.139.236.144 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|Rex::Commands::Partition.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|Rex::Commands::Partition.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|Rex::Commands::Partition.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|Rex::Commands::Partition.3pm|43|'br══─}─══ |'br══─}─══
)