Difference between revisions of "Manual:Partitions"
From MikroTik Wiki
(Created page with "{{Versions|v6rc6+}} __TOC__ ==Summary== <p id="shbox"><b>Sub-menu:</b> <code>/partition</code></p> Starting from v6rc6 it is possible to partition NAND flash, allowing to inst...") |
|||
Line 1: | Line 1: | ||
− | {{Versions| | + | {{Versions|v6rc5+}} |
__TOC__ | __TOC__ | ||
Line 6: | Line 6: | ||
− | Starting from | + | Starting from v6rc5 it is possible to partition NAND flash, allowing to install own OS on each partition and specify primary and fallback partitions. |
{{Note | Repartitioning of the NAND requires latest bootloader version}} | {{Note | Repartitioning of the NAND requires latest bootloader version}} | ||
Line 17: | Line 17: | ||
Maximum number of allowed partitions is 8. | Maximum number of allowed partitions is 8. | ||
+ | <pre> | ||
+ | [admin@bumba] /partitions> print | ||
+ | Flags: A - active, R - running | ||
+ | # NAME FALLBACK-TO VERSION SIZE | ||
+ | 0 AR part0 next RouterOS v6.0rc5 64Mi | ||
+ | </pre> | ||
==Commands== | ==Commands== | ||
Line 50: | Line 56: | ||
==Properties== | ==Properties== | ||
+ | |||
+ | {{Mr-arg-table-h | ||
+ | |prop=Property | ||
+ | |desc=Description | ||
+ | }} | ||
+ | |||
+ | {{Mr-arg-table | ||
+ | |arg=name | ||
+ | |type=string | ||
+ | |default= | ||
+ | |desc=Name of the partition | ||
+ | }} | ||
+ | |||
+ | {{Mr-arg-table-end | ||
+ | |arg=fallback-to | ||
+ | |type=etherboot {{!}} next {{!}} <partition-name> | ||
+ | |default=next | ||
+ | |desc=What to do if active partition fails to boot: | ||
+ | * '''etherboot''' - switch to etherboot | ||
+ | * '''next'''' - try next partition | ||
+ | * fallback to specified partition | ||
+ | }} | ||
+ | |||
+ | |||
+ | '''''Read-only''''' | ||
+ | |||
+ | {{Mr-arg-table-h | ||
+ | |prop=Property | ||
+ | |desc=Description | ||
+ | }} | ||
+ | |||
+ | {{Mr-arg-ro-table | ||
+ | |arg=active | ||
+ | |type=yes {{!}} no | ||
+ | |desc=Partition is active | ||
+ | }} | ||
+ | |||
+ | {{Mr-arg-ro-table | ||
+ | |arg=running | ||
+ | |type=yes {{!}} no | ||
+ | |desc=Currently running partition | ||
+ | }} | ||
+ | |||
+ | {{Mr-arg-ro-table | ||
+ | |arg=size | ||
+ | |type=integer[MiB] | ||
+ | |desc=Partition size | ||
+ | }} | ||
+ | |||
+ | {{Mr-arg-ro-table-end | ||
+ | |arg=version | ||
+ | |type=string | ||
+ | |desc=Current RouterOS version installed on the partition | ||
+ | }} | ||
[[Category:Manual|P]] | [[Category:Manual|P]] | ||
[[Category:System|P]] | [[Category:System|P]] | ||
[[Category:Hardware|P]] | [[Category:Hardware|P]] |
Revision as of 16:15, 10 December 2012
Contents
Summary
Sub-menu: /partition
Starting from v6rc5 it is possible to partition NAND flash, allowing to install own OS on each partition and specify primary and fallback partitions.
Minimum partition sizes:
- 32MB on MIPS
- 40MB on PowerPC
- 48MB on CCR
Maximum number of allowed partitions is 8.
[admin@bumba] /partitions> print Flags: A - active, R - running # NAME FALLBACK-TO VERSION SIZE 0 AR part0 next RouterOS v6.0rc5 64Mi
Commands
Property | Description |
---|---|
repartition (integer) | Will reboot the router and reformat the NAND, leaving only active partition. |
copy-to (<partition>) | Clone running OS with config to specified partition. Previously stored data on partition will be erased. |
save-config-to (<partition>) | Clone running config on specified partition. Everything else is untouched. |
restore-config-from (<partition>) | Copy config from specified partition to running partition |
Properties
Property | Description |
---|---|
name (string; Default: ) | Name of the partition |
fallback-to (etherboot | next | <partition-name>; Default: next) | What to do if active partition fails to boot:
|
Read-only
Property | Description |
---|---|
active (yes | no) | Partition is active |
running (yes | no) | Currently running partition |
size (integer[MiB]) | Partition size |
version (string) | Current RouterOS version installed on the partition |