PCIe TO M.2 (B)
From Waveshare Wiki
| ||
Overview
PCIe TO M.2 (B) is a PCI-E to M.2 adapter card, for upgrading Solid State Drive, supports CM4.Does not support PI5
Features
- Support NVMe protocol M.2 interface Solid State Drive protocol, high-speed write/read, higher working efficiency.
- Only support CM4 HAT.
- Supports Raspberry Pi Compute Module 4.
- Compatible with M.2 solid state drive in different sizes.
- The LED lights up when power-on, and keeps blinking while reading/writing.
User Guide
Mounting Hard Drive to CM4
Format
- Insert the SSD into the corresponding slot of the PCI-E to M.2 adapter, and secure it with the screws provided in the screw package.
- After powering up and booting, execute "lspci" to check the PCIE device.
- Execute "sudo mkfs.ext4 /dev/nvme0n1p1" to format the device. ("Type "mkfs." and then press the "tab" key to see various suffixes representing different formats you can use for formatting.)
Wait for a few moments, when "done" appears, it means that the formatting has been carried out.
Mount the Device
- Create a directory to mount:
sudo mkdir toshiba
- Mount the device:
sudo mount /dev/nvme0n1p1 ./toshiba
- Check the SSD status:
df -h
Mount the Hard Drive
- Create a new directory as the mount point for the hard drive.
sudo mkdir /home/pi/toshiba
- Execute the following commands to mount the hard drive:
sudo mount /dev/nvme0n1p1 /home/pi/toshiba
Execute again:
df -h
Then you can see the hard drive we inserted and the related information, indicating that it has been mounted successfully.
- For different hard drives, their names are different, and here is "nvme0n1p1", please refer to the hard drive you inserted.
Reading/Writing Test
Enter the directory to mount the hard drive:
cd /home/pi/toshiba
- Release caches:
sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
- Copying the contents of the Raspberry Pi's memory to the hard drive (Read):
sudo dd if=/dev/zero of=./test_write count=2000 bs=1024k
- Copying hard drive content to Raspberry Pi memory (Write):
sudo dd if=./test_write of=/dev/null count=2000 bs=1024k
- Note: the test result may vary due to different adapters and environments, and the Raspberry Pi is more susceptible.
Support
Technical Support
If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)