This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
usb_formatting_with_swap_partition [2024/03/27 15:26] – [Manual method] -change "Now" to "Next" hogwild | usb_formatting_with_swap_partition [2024/10/31 23:51] (current) – [Deactivating the Swap Partition (Pre-unmount command)] 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 | + | swapon |
- | mkdir /mnt/usb && mount /dev/sda1 /mnt/usb | + | mkdir -p /mnt/usb && mount /dev/sda1 /mnt/usb |
nvram set usb_automount=" | nvram set usb_automount=" | ||
</ | </ | ||
Line 94: | Line 94: | ||
</ | </ | ||
- | | + | \\ \\ |
+ | |||
+ | 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, | For best practice, the swap partition should be activated as swap once the USB drive/flash is mounted. Additionally, | ||
+ | |||
+ | \\ | ||
==== Activating Swap Partition (Post Mount Command) ==== | ==== Activating Swap Partition (Post Mount Command) ==== | ||
Line 124: | Line 128: | ||
\\ | \\ | ||
+ | | ||
The field should look like this: | The field should look like this: | ||
Line 130: | Line 134: | ||
You may have additional commands within the field. | You may have additional commands within the field. | ||
)) | )) | ||
+ | |||
+ | \\ | ||
Line 143: | Line 149: | ||
\\ | \\ | ||
+ | | ||
The field should appear like this: | The field should appear like this: | ||
Line 149: | Line 155: | ||
Again, your form field may have additional data within it. | Again, your form field may have additional data within it. | ||
)) | )) | ||
- | + | \\ | |
- | In both cases, | + | |
+ | In both cases, | ||
Line 157: | Line 164: | ||
| | ||
- | \\ [[https:// | + | \\ [[https:// |
| | ||
Line 165: | Line 172: | ||
| | ||
- | \\ [[https:// | + | \\ [[https:// |
\\ | \\ |