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 [2022/01/02 15:17] – [Automatic method] rs232 | usb_formatting_with_swap_partition [2022/01/05 06:17] – [Manual method:] rs232 | ||
---|---|---|---|
Line 6: | Line 6: | ||
For this example, we used a 16GB USB flash drive which is seen in the system as device **sda**. | For this example, we used a 16GB USB flash drive which is seen in the system as device **sda**. | ||
+ | |||
+ | **VERY IMPORTANT!** The filesystem you're going to be choosing must support symbolic-links e.g. exfat(vfat) doesn' | ||
Line 22: | Line 24: | ||
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 | ||
- | # Uncomment the preferred option here below: | + | mkfs.ext2 -L usb $partion |
- | # mkfs.ext2 -L usb $partion | + | |
- | # mkfs.vfat -n usb $partion | + | |
mkswap -L swap $swappartion | mkswap -L swap $swappartion | ||
swapon swap | swapon swap | ||
Line 90: | Line 90: | ||
<code -> | <code -> | ||
- | mkfs.ext2 -L USB /dev/sda1 | + | mkfs.ext2 -L usb /dev/sda1 |
- | mkswap /dev/sda2 | + | mkswap |
</ | </ | ||
Line 99: | Line 99: | ||
<code -> | <code -> | ||
- | swapon | + | swapon |
- | mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1 | + | mkdir /mnt/usb && mount /dev/sda1 /mnt/usb |
</ | </ | ||