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
usb_formatting_with_swap_partition [2024/03/27 15:21] – [Configuring Post-mount and Pre-unmount Commands] -grammar hogwildusb_formatting_with_swap_partition [2024/03/27 15:32] (current) – [Deactivating the Swap Partition (Pre-unmount command)] -condense 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 =====
Line 111: Line 112:
 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: 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 125: 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 134: 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 140: 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, click the Save button at the bottom before continuing. 
  
 ===== Final setup ===== ===== Final setup =====
usb_formatting_with_swap_partition.1711552875.txt.gz · Last modified: 2024/03/27 15:21 by hogwild