HP Integrity Superdome SX1000 SmartSetup Scripting Toolkit Deployment Guide: H - Page 79

parted, Synopsis, Description, Examples, Table 6-22 Expressions, Table 6-23, Options

Page 79 highlights

Table 6-22 Expressions Operator or Term and or gt lt gte lte eq neq not PCI:string HWQ:string string number Result True if both operands are true. True if either operand is true. True if the first operand is greater than the second. True if the first operand is less than the second. True if the first operand is greater than or equal to the second. True if the first operand is less than or equal to the second. True if the two operands are equal. True if the two operands are not equal. True if the operand is false. True if a PCI device whose name includes string is found in the hardware discovery file. string is case-sensitive. The hardware discovery file is searched for string, and the corresponding value is the value of this term. string is case-sensitive. A literal string, used for comparison. A literal number, used for comparison. parted Synopsis parted [-v | -i | -s | -h]... [DEVICE [COMMAND [PARAMETER]...] ...] Description The parted utility manages disk partitions. It allows you to make a GPT partition table and to create all the partitions needed. It is also able to create hidden partitions and change the partition GUID to HPSP, SWAP, LINUX and ESP. Table 6-23 parted Options Option -v -i -s -h Description Displays the version. Where necessary, prompts for user intervention. Never prompts for user intervention. Displays this help message. Examples The following examples illustrate the use of parted: • To check the file system: check MINOR • To copy a file system to another partition: cp [FROM-DEVICE] FROM-MINOR TO-MINOR parted 79

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85

Table 6-22 Expressions
Result
Operator or Term
True if both operands are true.
and
True if either operand is true.
or
True if the first operand is greater than the second.
gt
True if the first operand is less than the second.
lt
True if the first operand is greater than or equal to the second.
gte
True if the first operand is less than or equal to the second.
lte
True if the two operands are equal.
eq
True if the two operands are not equal.
neq
True if the operand is false.
not
True if a PCI device whose name includes
string
is found in the hardware discovery file.
string
is case-sensitive.
PCI:
string
The hardware discovery file is searched for
string
, and the corresponding value is the value
of this term.
string
is case-sensitive.
HWQ:
string
A literal string, used for comparison.
string
A literal number, used for comparison.
number
parted
Synopsis
parted [-v | -i | -s | -h]...
[DEVICE [COMMAND [PARAMETER]...] ...]
Description
The
parted
utility manages disk partitions. It allows you to make a GPT partition table and to
create all the partitions needed. It is also able to create hidden partitions and change the partition
GUID to HPSP, SWAP, LINUX and ESP.
Table 6-23
parted
Options
Description
Option
Displays the version.
-v
Where necessary, prompts for user intervention.
-i
Never prompts for user intervention.
-s
Displays this help message.
-h
Examples
The following examples illustrate the use of
parted
:
To check the file system:
check MINOR
To copy a file system to another partition:
cp [FROM-DEVICE] FROM-MINOR TO-MINOR
parted
79