You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc: update the instructions to increase the size of a UOS disk image
Update the instructions on how to increase the size of a UOS disk image so that
the entire operation can be performed on the development host. This has the
advantage that it can be done completely offline (the UOS must be powered off
in fact) and no extra tools need to be installed in the UOS to do this.
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
the-partition-of-the-virtual-disk>`_ section to resize the partition hosting the
61
-
UOS rootfs (typically ``/dev/sda3``).
56
+
The next step is to modify the ``rootfs`` partition (in Clear Linux, it is
57
+
partition 3) to use the additional space available. We will use the ``parted``
58
+
tool and perform these steps:
59
+
60
+
* Enter the ``parted`` tool
61
+
* Press ``p`` to print the partition tables
62
+
* A warning will be displayed, enter ``Fix``
63
+
* Enter ``resizepart 3``
64
+
* Enter the size of the disk (``19.9GB`` in our example)
65
+
* Enter ``q`` to quit the tool
66
+
67
+
Here is what the sequence looks like:
68
+
69
+
.. code-block:: none
70
+
71
+
$ parted uos.img
72
+
73
+
.. code-block:: console
74
+
:emphasize-lines: 5,7,9,19,20
75
+
76
+
WARNING: You are not superuser. Watch out for permissions.
77
+
GNU Parted 3.2
78
+
Using /home/gvancuts/uos/uos.img
79
+
Welcome to GNU Parted! Type 'help' to view a list of commands.
80
+
(parted) p
81
+
Warning: Not all of the space available to /home/gvancuts/uos/uos.img appears to be used, you can fix the GPT to use all of the space (an extra 20971520 blocks) or continue with the current setting?
82
+
Fix/Ignore? Fix
83
+
Model: (file)
84
+
Disk /home/gvancuts/uos/uos.img: 19.9GB
85
+
Sector size (logical/physical): 512B/512B
86
+
Partition Table: gpt
87
+
Disk Flags:
88
+
89
+
Number Start End Size File system Name Flags
90
+
1 1049kB 537MB 536MB fat16 primary boot, esp
91
+
2 537MB 570MB 33.6MB linux-swap(v1) primary
92
+
3 570MB 9160MB 8590MB ext4 primary
93
+
94
+
(parted) resizepart 3
95
+
End? [9160MB]? 19.9GB
96
+
(parted) q
62
97
63
98
Resize the filesystem
64
99
*********************
65
100
66
-
Follow the `Resize the filesystem <https://clearlinux.org/documentation/
0 commit comments