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 [2021/09/13 16:51] – [USB formatting with swap partition] hogwild | usb_formatting_with_swap_partition [2022/01/02 15:15] – [Automatic method] rs232 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== USB formatting with swap partition ====== | ====== USB formatting with swap partition ====== | ||
- | It is highly recommended to make some form of permanent storage available for FreshTomato. | + | A swap partition can prevent several types of insufficient RAM symptoms, such as system instability, |
This example assumes you are using either an ARM or MIPS build with USB support. It is also assumes that you have already have USB support enabled. If you're not sure how to enable USB support, check the [[: | This example assumes you are using either an ARM or MIPS build with USB support. It is also assumes that you have already have USB support enabled. If you're not sure how to enable USB support, check the [[: | ||
Line 21: | Line 21: | ||
nvram set usb_automount=" | nvram set usb_automount=" | ||
(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 | ||
- | mkfs.ext2 -L USB $partion | + | mkfs.ext2 -L usb $partion |
- | mkswap /dev/sda2 | + | # or mkfs.vfat -n usb $partion |
- | swapon | + | mkswap |
+ | swapon | ||
mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1 | mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1 | ||
nvram set usb_automount=" | nvram set usb_automount=" |