Hi Barry,
Looking at your output from the lsblk command, you will need to create a primary partition using fdisk and format it. Once you’ve don this you should see something like “nvme0n1p1” .
Note:
To format the partition using ext4 flle system I ran “sudo mkfs -t ext4 /dev/nvme0n1p1”
Once done, you can then mount the partition by doing the following:
- Create a folder to mount the partition in the /mnt folder e.g. “sudo mkdir /mnt/mynvmessd”.
- Mount the drive nvme drive partition to the new folder e.g. “sudo mount /dev/nvme0n1p1 /mnt/mynvmessd”
If you then run “df -h” you should then be able to see your partition and the mountpoint, in this example /mnt/mynvmessd.
However, please note that this method is not persistent and you’ll have to remount the drive when you power cycle or reboot the device.
If you want the drive to be mounted automatically on reboot you’ll need to edit the file system table “/etc/fstab”.
However, what I’ve done is copied the RAKOS operating system from the EMMC drive on the CM4 to my NVMe drive and modified/re-flashed the CM4 bootloader so that the CM4 boots from the NVMe drive. To do this you’ll need to use the raspberry pi usbboot tool.
Let me know if you get stuck or would like more information on how to boot from the NVME drive.
Cheers
Greg