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 revisionBoth sides next revision
usb_formatting_with_swap_partition [2021/09/13 16:57] – [USB formatting with swap partition] hogwildusb_formatting_with_swap_partition [2022/01/02 15:15] – [Automatic method] rs232
Line 21: Line 21:
 nvram set usb_automount="0" nvram set usb_automount="0"
 (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 /dev/sda2+mkswap -L swap /dev/sda2 
 +swapon swap
 mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1 mkdir /mnt/sda1 && mount /dev/sda1 /mnt/sda1
 nvram set usb_automount="1" nvram set usb_automount="1"
usb_formatting_with_swap_partition.txt · Last modified: 2024/03/27 15:32 by hogwild