This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
usb_formatting_with_swap_partition [2024/03/27 15:21] – [Configuring Post-mount and Pre-unmount Commands] -grammar hogwild | usb_formatting_with_swap_partition [2024/03/27 15:30] – [Deactivating the Swap Partition (Pre-unmount command)] -formatting hogwild | ||
---|---|---|---|
Line 94: | Line 94: | ||
</ | </ | ||
- | \\ \\ | + | |
<code -> | <code -> | ||
Line 106: | Line 106: | ||
\\ | \\ | ||
+ | |||
===== Configuring Post-mount and Pre-unmount Commands ===== | ===== Configuring Post-mount and Pre-unmount Commands ===== | ||
Line 115: | Line 116: | ||
To activate the swap partition you created on the drive, enter the following into the "**Run after mounting**" | To activate the swap partition you created on the drive, enter the following into the "**Run after mounting**" | ||
+ | |||
+ | \\ | ||
<code -> | <code -> | ||
swapon /dev/sda2 | swapon /dev/sda2 | ||
</ | </ | ||
+ | |||
+ | \\ | ||
The field should look like this: | The field should look like this: | ||
Line 125: | Line 130: | ||
You may have additional commands within the field. | You may have additional commands within the field. | ||
)) | )) | ||
+ | |||
+ | |||
+ | \\ | ||
==== Deactivating the Swap Partition (Pre-unmount command) ==== | ==== Deactivating the Swap Partition (Pre-unmount command) ==== | ||
- | To configure the router to automatically deactivate the swap partition (in this case, **/// | + | To configure the router to automatically deactivate the swap partition (in this case, **/// |
+ | |||
+ | \\ | ||
<code -> | <code -> | ||
Line 134: | Line 144: | ||
</ | </ | ||
- | The field should appear | + | \\ |
+ | |||
+ | The field should appear | ||
{{: | {{: | ||
Line 140: | Line 152: | ||
)) | )) | ||
- | As usual, in both cases, the save button at the bottom | + | In both cases, the Save button at the bottom should be checked |
===== Final setup ===== | ===== Final setup ===== |