Site Tools


usb_formatting_with_swap_partition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
usb_formatting_with_swap_partition [2024/03/27 06:23] – added postmount and preunmount commands section for swapon and swapoff (I apologize if I stepped out of line,this is my first edit here) roninusb_formatting_with_swap_partition [2024/03/27 15:31] – [Activating Swap Partition (Post Mount Command)] -formatting hogwild
Line 94: Line 94:
 </code> </code>
  
- \\   \\  Now, mount the partitions: \\ \\+ \\  Next, mount the partitions: \\ \\
  
 <code -> <code ->
Line 106: Line 106:
  
  \\  \\
 +
  
 ===== Configuring Post-mount and Pre-unmount Commands ===== ===== Configuring Post-mount and Pre-unmount Commands =====
  
-For best practices, the swap partition should be activated as swap once the USB drive/flash is mounted. Additionally, it's best to deactivate swap partitions before unmounting them. It is quite simple to configure both the post-mount and pre-unmount commands. The methods for both are as follows:+For best practice, the swap partition should be activated as swap once the USB drive/flash is mounted. Additionally, it's best to deactivate swap partitions before unmounting them. It is quite simple to configure both the post-mount and pre-unmount commands. The methods for both are as follows: 
 + 
 + 
 + \\
  
 ==== Activating Swap Partition (Post Mount Command) ==== ==== Activating Swap Partition (Post Mount Command) ====
  
 To activate the swap partition you created on the drive, enter the following into the "**Run after mounting**" form field: To activate the swap partition you created on the drive, enter the following into the "**Run after mounting**" form field:
 +
 + \\
  
 <code -> <code ->
 swapon /dev/sda2 swapon /dev/sda2
 </code> </code>
 +
 + \\
  
 The field should look like this: The field should look like this:
Line 124: Line 132:
 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, **///dev/sda2//**) , the "**Run before unmounting**" form field will need to be populated with the following:+To configure the router to automatically deactivate the swap partition (in this case, **///dev/sda2//**) , the "**Run before unmounting**" field needs to be populated with the following: 
 + 
 + \\
  
 <code -> <code ->
Line 133: Line 146:
 </code> </code>
  
-The field should appear as so:+ \\ 
 + 
 +The field should appear like this:
  
 {{:pasted:20240327-060929.png?nolink}}(( {{:pasted:20240327-060929.png?nolink}}((
Line 139: Line 154:
 )) ))
  
-As usual, in both cases, the save button at the bottom of the form should be clicked to save your changes before continuing on.+In both cases, the Save button at the bottom should be checked before continuing. 
  
 ===== Final setup ===== ===== Final setup =====
usb_formatting_with_swap_partition.txt · Last modified: 2024/03/27 15:32 by hogwild