Differences
This shows you the differences between two versions of the page.
linux_wiki:add_new_partitions_and_logical_volumes_and_swap_to_a_system_non-destructively [2016/02/29 21:33] billdozor created |
linux_wiki:add_new_partitions_and_logical_volumes_and_swap_to_a_system_non-destructively [2016/03/03 21:49] billdozor |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | About this page/ | + | Different methods of adding swap. |
---- | ---- | ||
- | **Logical | + | ===== Swap with Logical |
- | \\ | + | |
Create new partition with the Logical Volume type | Create new partition with the Logical Volume type | ||
<code bash> | <code bash> | ||
Line 22: | Line 22: | ||
</ | </ | ||
+ | \\ | ||
Setup LVM physical volume, volume group, logical volume | Setup LVM physical volume, volume group, logical volume | ||
<code bash> | <code bash> | ||
Line 29: | Line 30: | ||
</ | </ | ||
+ | \\ | ||
Format logical volume with swap, enable, and add to fstab | Format logical volume with swap, enable, and add to fstab | ||
<code bash> | <code bash> | ||
Line 39: | Line 41: | ||
</ | </ | ||
- | \\ | + | ---- |
- | **Physical Partition | + | |
- | \\ | + | ===== Swap with Physical Partition |
Create physical disk partition for swap | Create physical disk partition for swap | ||
<code bash> | <code bash> | ||
Line 56: | Line 59: | ||
* Hex code 82 is Linux Swap | * Hex code 82 is Linux Swap | ||
+ | \\ | ||
Create the swap filesystem | Create the swap filesystem | ||
<code bash> | <code bash> | ||
Line 63: | Line 67: | ||
* edit /etc/fstab if you want persistent changes | * edit /etc/fstab if you want persistent changes | ||
+ | \\ | ||
View swap space | View swap space | ||
<code bash> | <code bash> | ||
Line 68: | Line 73: | ||
</ | </ | ||
+ | \\ | ||
Activate all swap on /etc/fstab | Activate all swap on /etc/fstab | ||
<code bash> | <code bash> |