Booting from NVMe drive
To make a NVMe bootable, follow these steps:
Format the NVMe drive
Using a suitable file system (such as FAT32 or EXT4) format the NVMe.
Insert the NVMe into your computer. You can use a USB-to-NVMe adapter if required.
Open the File Explorer and right-click on the NVMe drive.
Select Format from the drop-down menu.
Select the desired file system (e.g., FAT32) and click Start.
Click OK to confirm the formatting.
Insert the NVMe into your computer. Use USB-to-NVMe adapter if required. You can use the lsblk command to list the available disks.
Open the Disks application if you are using a GUI.
Select the NVMe from the left panel.
Click on the Additional partition options icon and select Format Partition.
Select the desired file system (e.g., FAT32) and click Next.
Click Format to confirm the formatting.
Insert the NVMe into your computer.
Open the terminal and run the following command to list the available disks:
sudo parted /dev/nvmeXn1
Note
nvme``**X**``n1
is the name of the NVMe drive.the following command to print the partition table:
(parted) print
Delete the existing partitions using the following command:
(parted) rm 1
(parted) rm 2
...
After deleting all the partitions, the partition table should look like this:
Finally, quit the parted tool using the following command:
(parted) quit
Insert the NVMe into your computer.
Open the terminal and run the following command to list the available disks:
sudo fdisk /dev/nvmeXn1
Note
nvme``**X**``n1
is the name of the NVMe drive.Press d to delete the existing partition. Do this for all the partitions.
After deleting all the partitions, the partition table should be empty.
Finally, press w to write the changes to the disk.
Download the bootable image
Obtain the bootable image or operating system files for your desired platform.
Note
Write the image to the NVMe
Warning
You can use any disk imaging tool such as Etcher or Win32 Disk Imager to write the image to the NVMe.
For demonstration purposes, we will use the Balena Etcher tool to write the image to the NVMe.
Open the Balena Etcher tool.
Click on Select Image and select the image file.
Click on Select Target and select the NVMe.
Click on Flash to start writing the image to the NVMe.
Once the writing process is complete, click on Done.
Open the terminal and run the following command to write the image to the NVMe:
sudo dd if=/path/to/image of=/dev/nvmeX bs=4M status=progress; sync
Note
nvme``**X**``n1
is the name of the NVMe drive.Wait for the writing process to complete.
Once the writing process is complete, Safely eject the NVMe from your computer.
Boot from the NVMe
After writing the image to the NVMe, follow these steps to boot from the NVMe:
Safely eject the NVMe from your computer.
Insert the NVMe into your Vaaman SBC.
Place the NVMe board on top of Vaaman and secure it by tightening the nuts.
Power-on the device to initiate the boot process from the NVMe.
Connect the PD cable to the Vaaman SBC and the PD adapter to the power socket. Once the power is connected, the board will automatically turn on.
Danger
12V Power Input only! Do not use 5V power input.