-
Plug in the USB flash drive into your Linux PC. We recommend to use a Debian Linux based distributions, for example Debian Linux or Ubunt
-
Login as root user or switch to root. If the USB flash drive is mounted automatically, unmount the USB flash drive.
-
To check the availability of the
e2fsprogs
package, run the following command:apt list --installed | grep e2fsprogs
-
If the package is not installed, install the
e2fsprogs
package. -
To check partitions of the USB flash drive, run the
lsblk
command. The partitions are named like/dev/sdb
. -
To search for unallocated space, run the
fdisk <your_usb_flash_drive> command
, for examplefdisk /dev/sdb
. You need more than 1 GB unallocated space. -
If there is no unallocated space more than 1 GB, delete the partition with the
fdisk <your_usb_stick>
command. Pressd
andw
for writing and exiting. -
To create a new partition, run the
fdisk <your_usb_stick>
command. Press<n>
and confirm by pressing<Enter>
until the end. Press<w>
for writing and exiting. -
To create an ext4 file system, run the
mkfs.ext4 <usb_flash_drive_partition_created_in_step8>
command, for examplemkfs.ext4 /dev/sdb1
. -
To label the partition, run the
e2label <usb_flash_drive_partition_created_in_step8> USBONBOARD
command, for examplee2label /dev/sdb1 USBONBOARD
. -
Unplug and replug the USB flash drive.
-
Copy the onboard configuration file into the
USBONBOARD
named USB partition.