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:30] – [Deactivating the Swap Partition (Pre-unmount command)] -formatting hogwildusb_formatting_with_swap_partition [2024/06/17 19:25] (current) – [Manual method] hogwild
Line 26: Line 26:
 (echo o; echo n; echo p; echo 2; echo ; echo +1000M; echo t; echo 82; echo n; echo p; echo 1; echo ; echo ; echo w) | fdisk $device (echo o; echo n; echo p; echo 2; echo ; echo +1000M; echo t; echo 82; echo n; echo p; echo 1; echo ; echo ; echo w) | fdisk $device
 # Uncomment the preferred option here below: # Uncomment the preferred option here below:
-# mkfs.ext2 -L usb $partion +# mkfs.ext2 -L usb $partition 
-# mkfs.vfat -n usb $partion +# mkfs.vfat -n usb $partition 
-mkswap -L swap $swappartion +mkswap -L swap $swappartition 
-swapon swap +swapon $swappartition 
-mkdir /mnt/usb && mount /dev/sda1 /mnt/usb+mkdir -p /mnt/usb && mount /dev/sda1 /mnt/usb
 nvram set usb_automount="1" nvram set usb_automount="1"
 </code> </code>
Line 94: Line 94:
 </code> </code>
  
- \\  Next, mount the partitions: \\ \\+ \\ \\  \\ 
 + 
 +Next, mount the partitions: \\ \\
  
 <code -> <code ->
Line 112: Line 114:
 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) ====
Line 130: Line 134:
 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) ====
Line 152: Line 156:
 )) ))
  
-In both cases, the Save button at the bottom should be checked before continuing.+In both cases, click the Save button at the bottom before continuing.
  
  
usb_formatting_with_swap_partition.txt · Last modified: 2024/06/17 19:25 by hogwild