0003 MPS2280D(Dual SSD Expansion Board):修订间差异

来自Mcuzone Wiki
无编辑摘要
 
(未显示2个用户的23个中间版本)
第1行: 第1行:
[[0003 MPS2280D(双SSD扩展板)|切换语言为中文]]
== '''Keywords''' ==
== '''Keywords''' ==
Raspberry Pi 5, PCIE Expansion, boot on SSD, NAS, speed test, OpenMediaVault, OMV
Raspberry Pi 5, PCIe Expansion, boot on SSD, NAS, speed test, OpenMediaVault, OMV


== '''Ⅰ、Introduction''' ==
== '''I. Introduction''' ==
After updating the Raspberry Pi firmware to May 2024, the RPi5 supports booting the system from an SSD via a PCIe switch chip. This article will demonstrate how to change the settings to enable booting from an SSD by using our MPS2280D expansion board. Moreover, the MPS2280D supports dual SSDs, making it suitable for creating large-capacity storage applications with the Raspberry Pi 5. You can connect existing storage devices (NVME protocol-supported SSD, including external portable hard drives and USB flash drives) to create secure backups of all important files accessible from anywhere in the world. This Network Attached Storage (NAS), allowing you to save files from computers and mobile devices to external hard drives through your home or office wireless network.
After updating the Raspberry Pi firmware to May 2024, the RPi5 supports booting the system from an SSD via a PCIe switch chip. This article will demonstrate how to change the settings to enable booting from an SSD by using our MPS2280D expansion board. Moreover, the MPS2280D supports dual SSDs, making it suitable for creating large-capacity storage applications with the Raspberry Pi 5. You can connect existing storage devices (NVMe protocol-supported SSD, including external portable hard drives and USB flash drives) to create secure backups of all important files accessible from anywhere in the world. This Network Attached Storage (NAS), allowing you to save files from computers and mobile devices to external hard drives through your home or office wireless network.


== '''Ⅱ、Hardware Resources''' ==
== '''II. Hardware Resources''' ==


2.1 Support for 2230/2242/2280 sized NVME SSDs (only soldered with 2280 copper standoffs in default);
2.1 Support for 2230/2242/2280 sized NVMe SSDs (only soldered with 2280 copper standoffs in default);


2.2. The hard drive can be used for storage expansion. Note: Only supports PCIE 1x Gen2.
2.2. The hard drive can be used for storage expansion. Note: Only supports PCIe 1x Gen2.


2.3 The hard drive supports booting from SSD and requires updating the official Raspberry Pi firmware to a version later than 2024.5.13;
2.3 The hard drive supports booting from SSD and requires updating the official Raspberry Pi firmware to a version later than 2024.5.13;


2.4 Reserve a power interface for the hard drive, 2.54mm-2P socket. If concerned about insufficient power supply, an auxiliary 5V power source can be externally connected via this interface. In practice, since the RPi5's PCIe is only 1x and only supports Gen2 mode after expansion, the power consumption will drop to 1/3 of the rated parameters. For instance, if the SSD is marked 3.3V 2.5A, the actual peak measured from the 5V side is only a little over 500mA. In our tests, the peak total current for two SSDs was 0.75A. The board dimensions are 56x86, slightly longer than the Raspberry Pi 5;
2.4 Reserve a power interface for the hard drive, 2.54mm-2P socket. If concerned about insufficient power supply, an auxiliary 5V power source can be externally connected via this interface. In practice, since the RPi5's PCIe is only 1x and only supports Gen2 mode after expansion, the power consumption will drop to 1/3 of the rated parameters. For instance, if the SSD is marked 3.3V 2.5A, the actual peak measured from the 5V side is only a little over 500mA. In our tests, the peak total current for two SSDs was 0.75A.  


2.5 Slotting at the 40-pin position, it does not affect the Dupont line connection;
2.5 Slotting at the 40-pin position, it does not affect the Dupont line connection;


2.6 Board size: 85*56mm;
2.6 Board size: 86*56mm;


2.7 Immersion gold process, lead-free production, PCB board certified by UL and ROHS.
2.7 Immersion gold process, lead-free production, PCB board certified by UL and ROHS.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_09.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_82.jpg


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_08.jpg
== '''III. Demonstration of Using the Raspberry Pi OS''' ==


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_10a.jpg
=== 3.1 Using SSD as storage expansion ===
 
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_11.jpg
 
Please connect the FPC cable according to the diagram. For the Raspberry Pi, position the metal side facing the center of the board, with the 5V silk screen close to the USB-C port. For the MPS2280D, position the metal side facing down, aligning the 5V silk screen on the FPC with the 5V silk screen on the board.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_80.jpg
==== 3.1.1 Download system ====
 
The Raspberry Pi OS used in this article is:2024-07-04-raspios-bookworm-armhf.img.xz,You can download it in:
== '''Ⅲ、Demonstration of Using the Raspberry Pi System''' ==
 
=== 3.1 Using SSD as storage expansion ===
3.1.1 The Raspberry Pi OS used in this article is:2024-07-04-raspios-bookworm-armhf.img.xz,You can download it in:


https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit
https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit


3.1.2 Use Imager or balenaEtcher to flash the OS image in TF card.
==== 3.1.2 Flash the system to TF card ====
Use Imager or balenaEtcher to flash the OS image in TF card.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_01.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_01.jpg
第46行: 第41行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_02.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_02.jpg


3.1.3 Boot the Raspberry Pi OS from the TF card and enter<code>sudo rpi-update</code>in the terminal to update the latest firmware and kernel. Note: Running<code>sudo rpi-update</code>may take 3-10 minutes and might require an internet connection to foreign country(please prepare your own method).
==== 3.1.3 Update Raspberry Pi Firmware and Kernel ====
Boot the Raspberry Pi OS from the TF card and enter<code>sudo rpi-update</code>in the terminal to update the latest firmware and kernel.
 
Note: Running<code>sudo rpi-update</code>may take 3-10 minutes and might require an internet connection to foreign country(please prepare your own method).


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_03.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_03.jpg
第52行: 第50行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_04.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_04.jpg


After upgrading, enter <code>sudo rpi-eeprom-config --edit</code> in the terminal to edit the boot.conf file in the kernel. Add <code>NVME_CONTROLLER=1</code> to the last line, save and exit. The <code>BOOT_ORDER=0XF461</code> means the boot order is SD (TF) card, NVME (SSD), and USB drive. [http://wiki.mcuzone.com/index.php?title=0005_MPS2242_2280%EF%BC%88%E5%8D%95SSD%E6%89%A9%E5%B1%95%E6%9D%BF%EF%BC%89#cite_ref-1 Click here to go to the boot order settings instructions.]After setting successfully, reboot the system. This way, SSD (including storage and boot) will be supported.
After upgrading, enter <code>sudo rpi-eeprom-config --edit</code> in the terminal to edit the boot.conf file in the kernel. Add <code>NVME_CONTROLLER=1</code> to the last line, save and exit. The <code>BOOT_ORDER=0XF461</code> means the boot order is SD (TF) card, NVMe (SSD), and USB drive. [[0005 MPS2242 2280(单SSD扩展板)#cite ref-1|Click here to go to the boot order settings instructions]]. After setting successfully, reboot the system. This way, SSD (including storage and boot) will be supported.
 
==== 3.1.4 Enable SSD storage and boot ====
After upgrading, enter <code>sudo rpi-eeprom-config --edit</code> in the terminal to edit the boot.conf file in the kernel. Add <code>NVME_CONTROLLER=1</code> to the last line, save and exit. The <code>BOOT_ORDER=0XF461</code> means the boot order is SD (TF) card, NVMe (SSD), and USB drive. [http://wiki.mcuzone.com/index.php?title=0005_MPS2242_2280%EF%BC%88%E5%8D%95SSD%E6%89%A9%E5%B1%95%E6%9D%BF%EF%BC%89#cite_ref-1 Click here to go to the boot order settings instructions.]After setting successfully, reboot the system. This way, SSD (including storage and boot) will be supported.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_05.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_05.jpg
第77行: 第78行:


=== 3.2 Using SSD as system boot ===
=== 3.2 Using SSD as system boot ===
3.2.1 Flash Raspberry Pi OS to SSD, [http://wiki.mcuzone.com/index.php?title=0005_MPS2242_2280%EF%BC%88%E5%8D%95SSD%E6%89%A9%E5%B1%95%E6%9D%BF%EF%BC%89#%E4%B8%89%E3%80%81%E7%B3%BB%E7%BB%9F%E7%83%A7%E5%86%99%E5%8F%8A%E8%AE%BE%E7%BD%AE 点击直达烧写方法说明]。然后拔掉TF卡,或者在启动顺序设置中,把从NVME(SSD)启动设置成第一位。
3.2.1 Flash Raspberry Pi OS to SSD, [[0005 MPS2242 2280(单SSD扩展板)#三、系统烧写及设置|Click here to go to the burning method instructions]]. (Firmware of the Raspberry Pi needs to be updated to a version later than 2024.5.13. For the upgrade method, please refer to [[0003 MPS2280D(Dual SSD Expansion Board)#3.1.3 Update Raspberry Pi Firmware and Kernel|Section 3.1.3 of this document]]) Then remove the TF card, or [[0005 MPS2242 2280(单SSD扩展板)#cite note-1|set booting]] from NVMe (SSD) as the first option in the boot order settings.


3.2.2 经我们的测试,单个SSD插在任何一个SSD插槽上均可启动系统(靠近Mcuzone标志的是03插槽,远离Mcuzone标志的是04插槽);若两个插槽都插上SSD,如果只有一个SSD烧写了系统,那将从烧写了系统的SSD启动,若两个SSD都烧写了系统,则将从04插槽优先启动系统。插槽在扩展板上的位置如下图所示:
3.2.2 After our testing, a single SSD inserted into any SSD slot can boot the system (the slot near the Mcuzone logo is Slot 03, and the slot away from the Mcuzone logo is Slot 04). If two slots have SSDs inserted and only one SSD has the system , the OS will boot from the SSD with the system. If both SSDs have the system, the OS will prioritize booting from Slot 04. The positions of the slots on the expansion board are shown in the diagram below.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_79.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_79.jpg


两个插槽的具体信息,可以在终端中输入lspci来查看。
Specific information about two slots can be viewed by entering <code>lspci</code> in the terminal.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_16.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_16.jpg


'''''注意:金士顿NV2系列SSD没法直接从纯PCIE SSD扩展板启动,但可以从带PCIE SWITCH芯片的扩展板上启动。'''''
'''''Note: Kingston NV2 series SSD cannot boot directly from a pure PCIe SSD expansion board, but can boot from an expansion board with a PCIe switch chip.'''''


== '''四、Ubuntu系统下使用演示''' ==
== '''IV. Demonstration of Using the Ubuntu OS''' ==


=== 4.1 SSD用作存储扩展 ===
=== 4.1 Using SSD as storage expansion ===
4.1.1 本文所使用的Ubuntu系统为:ubuntu-24.04-preinstalled-desktop-arm64+raspi.img.xz,官方下载页面如下:
4.1.1 The Ubuntu OS used in this article is: ubuntu-24.04-preinstalled-desktop-arm64+raspi.img.xz. You can download it in:


https://ubuntu.com/download/raspberry-pi
https://ubuntu.com/download/raspberry-pi


4.1.2 使用树莓派镜像烧录器或者balenaEtcher,将镜像烧写进TF卡。操作方法与上一章烧写树莓派OS相同,此处略过(第三章 3.1.2)。
4.1.2 Use Imager or balenaEtcher to flash the OS image in TF card. The operation method is the same as in the previous chapter on flashing the Raspberry Pi OS. (Ⅲ 3.1.2)


4.1.3 从TF卡启动Ubuntu系统,因为上一章已经更新了树莓派内核,并且在内核中开启了支持SSD(包括存储和启动)功能,所以这里不需要再做一遍,如果没有做过,请按照上一章的步骤做一遍.(第三章 3.1.3、3.1.4)。
4.1.3 Boot the Ubuntu OS from the TF card. Since the previous chapter has already updated the Raspberry Pi kernel and enabled support for SSDs (including storage and boot), there is no need to repeat these steps here. If you have not done this before, please follow the steps in the previous chapter. (Ⅲ 3.1.3、3.1.4)


注意,在Ubuntu系统下,更新树莓派内核的命令是<code>sudo rpi-eeprom-update -a</code>,而编辑boot.conf文件的命令仍然为<code>sudo rpi-eeprom-config --edit</code>
Note, on the Ubuntu OS, the command to update the Raspberry Pi firmware is <code>sudo rpi-eeprom-update -a</code>,, while the command to edit the boot.conf file is still <code>sudo rpi-eeprom-config --edit.</code>


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_17.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_17.jpg


4.1.4 关机,插上两块SSD,然后启动Ubuntu系统,我们可以看到两块SSD及其各自的两个分区。与树莓派OS不同的是,我们不需要输入系统密码就可以对SSD进行操作。
4.1.4 Shut down the system, insert two SSDs, then start the Ubuntu OS. We can see the two SSDs and their respective two partitions. Unlike the Raspberry Pi OS, we can operate the SSDs without enter the system password.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_18.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_18.jpg
第110行: 第111行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_19.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_19.jpg


同时在终端中输入<code>df</code>,也可以看到两个SSD,我们可以将这两个SSD作为存储设备。
By entering <code>df</code> in the terminal, you can see two SSDs, which we can use as storage devices.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_20.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_20.jpg


=== 4.2. SSD用于系统启动 ===
=== 4.2.Using SSD as system boot ===
4.2.1 和树莓派OS一样,将Ubuntu系统分别烧写进两个SSD,然后拔掉TF卡,或者在启动顺序设置中,把从NVME(SSD)启动设置成第一位。
4.2.1 Flash Ubuntu OS to SSD, Then remove the TF card, or set booting from NVMe (SSD) as the first option in the boot order settings.


4.2.2 Ubuntu系统也一样,单个SSD插在任何一个SSD插槽上均可启动系统(靠近Mcuzone标志的是03插槽,远离Mcuzone标志的是04插槽);若两个插槽都插上SSD,并且两个SSD上都烧写有系统的话,将从04插槽启动系统,两个插槽的具体信息,可以在终端中输入lspci来查看。
4.2.2 After our testing, a single SSD inserted into any SSD slot can boot the system (the slot near the Mcuzone logo is Slot 03, and the slot away from the Mcuzone logo is Slot 04). If two slots have SSDs inserted and only one SSD has the system , the OS will boot from the SSD with the system. If both SSDs have the system, the OS will prioritize booting from Slot 04. The positions of the slots on the expansion board are shown in the diagram below. Specific information about two slots can be viewed by entering <code>lspci</code> in the terminal.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_21.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_21.jpg


== '''五、对SSD进行分区等操作''' ==
== '''V. Operations such as partitioning on the SSD''' ==


=== 5.1 概述 ===
=== 5.1 Overview ===
本章以树莓派OS为例,介绍对MPS2280D的SSD进行分区、挂载等操作。
This chapter uses Raspberry Pi OS as an example to introduce operations such as partitioning and mounting the SSD.


=== 5.2 使用GParted软件对SSD进行分区 ===
=== 5.2 Partitioning an SSD using GParted ===
5.2.1 下载GParted软件。打开树莓派OS终端,输入以下命令,安装GParted软件。
5.2.1 Download the GParted. Open the Raspberry Pi OS terminal and enter the following command to install the GParted.


<code>sudo apt install gparted</code>
<code>sudo apt install gparted</code>
第133行: 第134行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_77.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_77.jpg


5.2.2 打开GParted软件,选择相应SSD。
5.2.2 Open the GParted and select the corresponding SSD.


打开GParted软件的命令是<code>sudo gparted</code>,打开后为图形化界面,我们在右上角的下拉菜单中选择SSD。
The command to open GParted is<code>sudo gparted</code>. After opening it, you'll see a GUI. In the upper right corner, select the SSD from the dropdown menu.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_23.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_23.jpg
第141行: 第142行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_24.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_24.jpg


5.2.3 在对SSD进行分区前,首先要对该分区进行取消原来的挂载,在该分区上点右键,选择“Unmount”,取消挂载后,再次在此分区上点右键,选择“Delete”,删除分区。本SSD上有两个分区,对另一个分区也是如此操作。
5.2.3 Before partitioning the SSD, you need to unmount the existing partition. Right-click on the partition and select "Unmount". After unmounting, right-click on the partition again and select "Delete" to remove the partition. There are two partitions on this SSD, perform the same steps for the other partition as well.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_25.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_25.jpg
第147行: 第148行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_26.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_26.jpg


5.2.4 删除分区完毕后,我们在菜单中选择“Edit - Apply All Operations”,接受上述所有的操作。GParted类似于DiskGenius,在没有Apply之前,是不会对分区进行真实的操作的。
5.2.4 After completing the partition deletion, we select "Edit - Apply All Operations" from the menu to accept all the above operations. GParted is similar to DiskGenius in that it does not perform any real operations on the partitions until "Apply" is clicked.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_27.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_27.jpg
第155行: 第156行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_29.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_29.jpg


5.2.5 然后在空白的SSD上点击右键,选择“New”,建立新分区,在这里我们建立了两个分区,格式为exfat,操作如下所示。
5.2.5 Right-click on the empty SSD and select "New" to create a new partition. We created two partitions in the exFAT format. The steps are shown below.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_30.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_30.jpg
第171行: 第172行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_36.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_36.jpg


这样我们就完成了对SSD的分区。
Thus, we have completed the partitioning of the SSD.


=== 5.3 挂载分区 ===
=== 5.3 Mount partition ===
5.3.1 此时SSD已经分为了两个区,这两个区可以在Windows下进行操作,但Linux和Windows不一样,需要对新建的分区进行挂载,挂载完毕后才能操作。我们首先用命令<code>lsblk</code>查看分区信息,可见新建的两个分区,名字分别为nvme0n1p1和nvme0n1p2。
5.3.1 Now, the SSD has been divided into two partitions. These partitions can be managed in Windows, but Linux is different. You need to mount the partitions before you operate on them. First, use the <code>lsblk</code> command to view the partition information. You will see the two new partitions named nvme0n1p1 and nvme0n1p2.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_37.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_37.jpg


然后我们依次输入以下命令,建立挂载点:
Then we input the following commands in sequence to create the mount point:


<code>sudo mkdir /ssd1</code>
<code>sudo mkdir /ssd1</code>
第184行: 第185行:
<code>sudo mkdir /ssd2</code>
<code>sudo mkdir /ssd2</code>


5.3.2 查看分区UUID,我们在树莓派终端中输入命令<code>sudo blkid</code>,如图所示,两个SSD分区的UUID分别是769F-F2E1和77F0-F2E1,将这两个值记录下来。
5.3.2 To check the partition UUIDs, enter the command <code>sudo blkid</code> in the Raspberry Pi terminal. The UUIDs of the two SSD partitions are 769F-F2E1 and 77F0-F2E1, respectively. Record these two values.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_38.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_38.jpg


5.3.3 在树莓派终端中输入命令<code>sudo nano /etc/fstab</code>,在文件的末尾加入两行代码:
5.3.3 Enter the command <code>sudo nano /etc/fstab</code> in the Raspberry Pi terminal, and add the following two lines of code at the end of the file:


<code>UUID=769F-F2E1 /ssd1 exfat defaults,umask=000,gid=1000 0 2</code>
<code>UUID=769F-F2E1 /ssd1 exfat defaults,umask=000,gid=1000 0 2</code>
第198行: 第199行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_40.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_40.jpg


保存后退出,然后重启系统,在树莓派终端中输入<code>lsblk</code>,可以看见nvme0n1p1和nvme0n1p2分别被挂载到ssd1和ssd2下。
After saving and exiting, restarting the system, enter <code>lsblk</code> in the Raspberry Pi terminal. You can see that nvme0n1p1 and nvme0n1p2 are mounted under <code>ssd1</code> and <code>ssd2</code>.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_42.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_42.jpg


此时我们也可以在文件目录的根目录下看到ssd1和ssd2两个目录,分别代表SSD上的两个分区,我们可以对这两个文件夹进行操作,这样就完成了分区的挂载。
Now, we can see two directories: ssd1 and ssd2, at the root of the file directory, representing the two partitions on the SSD. We can perform operations on these two folders. We complete the mounting of the partitions now.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_41.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_41.jpg


== '''六、NAS服务器的应用演示''' ==
== '''VI. Application demonstration of NAS server''' ==


=== 6.1 系统选择 ===
=== 6.1 Choose the correct OS ===
为了能够正确安装NAS服务器,软件平台请选择32位Lite版本(即不带GUI的32位命令行版本),其他版本将无法正常安装OpenMediaVault。系统镜像下载地址:
To correctly install the NAS server, please select the 32-bit Lite version of the software platform (i.e., the 32-bit command-line version without GUI). Other versions will not be able to install OpenMediaVault properly. You can download it in:


https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit
https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit


本文所使用的镜像版本为:2024-07-04-raspios-bookworm-armhf-lite.img.xz
The version of Raspberry Pi OS which we use is 2024-07-04-raspios-bookworm-armhf-lite.img.xz


=== 6.2 系统烧写 ===
=== 6.2 Flashing the Raspberry Pi OS ===
使用树莓派镜像烧录器烧写系统。
Use Imager to flash the OS image.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_45.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_45.jpg


因为该系统起来后为命令行界面,因此在Use OS customization中,点击编辑设置,将登录用户名和密码设置进去,如果需要使用Wifi,将Wifi参数也一并设置,这样就免去在命令行界面下进行设置,便于使用。
Since the system will come up with a command line interface, go to "Use OS customization" and click "Edit Settings" to set the login username and password. If you need to use WiFi, also set the WiFi parameters here. This will avoid the need to configure these settings in the command line interface, making it easier to use.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_46.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_46.jpg
第226行: 第227行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_47.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_47.jpg


=== 6.3 安装OpenMediaVault软件 ===
=== 6.3 Install OpenMediaVault ===
6.3.1 系统烧写完毕后,连接好网线并启动系统(如果之前设置了Wifi,也可以使用Wifi),将之前烧录时设定的用户名和密码填入,登录系统。
6.3.1 After the system has been flashed, connect the network cable and start the system (if WiFi was set up previously, you can also use WiFi). Enter the username and password that were set during the flashing process to log into the system.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_43.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_43.jpg


6.3.2 登录系统后,输入以下命令更新系统和头文件:
6.3.2 After logging into the system, enter the following commands to update the system and header files:


<code>sudo apt update</code>
<code>sudo apt update</code>
第239行: 第240行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_44.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_44.jpg


然后输入以下命令安装OpenMediaVault软件:
Then enter the following command to install the OpenMediaVault:


<code>wget <nowiki>https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install</nowiki></code>
<code>wget <nowiki>https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install</nowiki></code>
第249行: 第250行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_48.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_48.jpg


注意:下载OpenMediaVault软件时可能需要能连通外网(需自备方法),且安装时间较长,请耐心等待。
Note: Downloading OpenMediaVault software may require an internet connection to foreign country(please prepare your own method), and the installation process can take a long time. Please be patient.


=== 6.4 配置NAS服务器的OpenMediaVault软件 ===
=== 6.4 Configuring OpenMediaVault for the NAS server ===
6.4.1 使用<code>ifconfig</code>查看树莓派的系统ip,如图所示,本文所使用的树莓派的ip为192.168.8.102。
6.4.1 Use <code>ifconfig</code> to check the system IP of the Raspberry Pi. As shown, the IP of the Raspberry Pi used in this article is 192.168.8.102.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_69.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_69.jpg


在同一局域网内的PC中,在浏览器中输入192.168.8.102,打开OpenMediaVault,默认的登录名和登录密码分别为admin和openmediavault。
In the same local network, open a browser on your PC and enter 192.168.8.102 to access OpenMediaVault. The default login name and password are "admin" and :openmediavault".


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_49.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_49.jpg


6.4.2 在配置NAS服务器之前,请确保存储设备已经正确安装,安装好后才能进行接下来的操作。选择“存储器”,随后点击“磁盘”此处应显示所有连接的存储设备,包括SD(TF)卡和SSD硬盘。如果没有,请仔细检查所有内容是否正确插入并重新启动系统。
6.4.2 Before configuring the NAS server, please ensure that the storage devices are correctly installed. Only after installation, you  can proceed with the next steps. Select "Storage", then click "Disk". At this point, all connected storage devices, including SD (TF) cards and SSD hard drives, should be displayed. If not, please carefully check if everything is properly inserted and restart the system.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_50.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_50.jpg


6.4.3 点击“存储器”下的“文件系统”,然后点击“挂载现有文件系统”,如下图所示,选择目前已安装的存储器,本文中所选择的是一块120G的SSD硬盘。在分区格式方面,我们建议选择EXT4格式。
6.4.3 Click on "File System" under "Storage", then click on "Mount Existing File System" as shown in the image below. Select the currently installed storage device; in this article, we have chosen a 120GB SSD hard drive. For the partition format, we recommend choosing the EXT4 format.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_51.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_51.jpg
第270行: 第271行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_52.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_52.jpg


选择完毕后点击保存,保存后再点击随后显示的“待应用的配置更改”中的“更改”,这样就完成了挂载设置。
After making your selection, click "Save". Once saved, click on 'Change' in the "Pending Configuration Changes" that appears next. This will complete the mounting settings.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_53.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_53.jpg
第276行: 第277行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_54.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_54.jpg


我们可以重复上述步骤,挂载多个存储器。
We can repeat the above steps to mount multiple storage devices.


6.4.4 点击“存储器”下的“共享文件夹”,再点击“创建”:
6.4.4 Click on "Shared Folders" under "Storage", then click 'Create'.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_55.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_55.jpg


您可以在此处命名文件夹,选择它应存在于哪个驱动器上,并向用户授予权限。默认情况下,权限应该是正确的,但如果您更喜欢网络首选项的不同选项,则可以调整它们。保存并应用更改。
You can name the folder here, choose which drive it should be on, and grant permissions to users. By default, the permissions should be correct, but if you prefer different options for network preferences, you can adjust them. Save and apply the changes.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_56.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_56.jpg
第288行: 第289行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_57.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_57.jpg


此处可根据需求添加多个设备。
Multiple devices can be added here according to needs.


6.4.5 接下来,我们需要确保网络上的计算机可以找到该共享文件夹。点击“服务”下的“SMB/CIFS”,然后点击“设置”,选中“已启动”,保存并应用更改。
6.4.5 Next, we need to ensure that computers on the network can find the shared folder. Click on "Services', then "SMB/CIFS" and click "Settings".  Select "Enabled" then save and apply the changes.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_58.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_58.jpg


随后点击“SMB/CIFS”下的“共享”,点击“创建”,然后选择上面配置的共享文件夹,保存并应用更改,
Next, we need to ensure that computers on the network can find the shared folder. Click on "Services", then "SMB/CIFS", and click "Settings". Select "Enabled", then save and apply the changes.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_59.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_59.jpg
第302行: 第303行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_61.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_61.jpg


如果需要配置多个共享文件夹,请按照上述步骤重复进行。
If you need to configure multiple shared folders, please repeat the above steps.


6.4.5 最后,点击“用户”下的“用户”,我们可以设置一个用户供后续登录NAS服务器用,如果不想创建新用户,也可以使用默认的用户(本文所示的为adm用户),如果不知道默认用户的登录密码,可以编辑该用户,重新修改一个密码。
6.4.5 Finally, Click on "User - User" to set up a user for subsequent logins to the NAS server. If you do not wish to create a new user, you can use the default user (in this article, the default user is "adm"). If you do not know the default user's login password, you can edit the user to change the password.


'''''注意:此处的默认用户即为树莓派OS的登录用户(本文所示的为adm用户),如果改了这个密码,下次登录树莓派系统时也要使用新的密码。'''''
'''''Note: The default user refers to the login user of the Raspberry Pi OS (in this article, it is the "adm" user). If you change this password, you will need to use the new password the next time you log into the Raspberry Pi OS.'''''


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_62.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_62.jpg
第316行: 第317行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_71.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_71.jpg


=== 6.5 测试NAS服务器 ===
=== 6.5 Test NAS server ===
6.5.1 确认网络发现和文件共享是否打开。进入以太网设置,点击“更改高级共享设置”,查看“启用网络发现”和“启用文件和打印机共享”是否打开,如果没打开,请打开。
6.5.1 Check "Network discovery and file sharing" is enabled. Go to the Ethernet settings, click on "Change advanced sharing options", and see if "Turn on network discovery" and "Turn on file and printer sharing" are enabled. If they are not, please enable them.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_74.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_74.jpg
第323行: 第324行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_75.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_75.jpg


6.5.2 在同一局域网内的PC中,点击“网络”,找到NAS服务器,本文中所示的为“RASPBERRYPI”,双击此服务器,然后输入上面设置的用户名和密码,即可打开共享文件夹
6.5.2 On the same local area network (LAN), click on "Network" and find the NAS server, which in this article is shown as "RASPBERRYPI". Double-click on this NAS server, then enter the username and password you set up earlier to open the shared folder.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_72.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_72.jpg
第331行: 第332行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_76.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_76.jpg


6.5.3 接下来我们通过拷贝大文件进行NAS测速。下面分别是写入和读取演示,速度按网络状况不同而异。
6.5.3 Next, we will test the NAS speed by copying a large file. Here are demonstrations of writing and reading, with speeds varying depending on the network conditions.


http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_67.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_67.jpg
第337行: 第338行:
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_68.jpg
http://www.mcuzone.com/wiki/0003_MPS2280D/MPS2280D_68.jpg


{{联系我们_图标}}
'''''Note: Test speed is affected by various factors such as network conditions, hard drive quality, and the file storage situation on the hard drive. The above test results are for reference only and do not represent the final parameters of the actual product.'''''
 
{{Contact_Us_icon}}

2024年9月2日 (一) 11:30的最新版本

切换语言为中文

Keywords

Raspberry Pi 5, PCIe Expansion, boot on SSD, NAS, speed test, OpenMediaVault, OMV

I. Introduction

After updating the Raspberry Pi firmware to May 2024, the RPi5 supports booting the system from an SSD via a PCIe switch chip. This article will demonstrate how to change the settings to enable booting from an SSD by using our MPS2280D expansion board. Moreover, the MPS2280D supports dual SSDs, making it suitable for creating large-capacity storage applications with the Raspberry Pi 5. You can connect existing storage devices (NVMe protocol-supported SSD, including external portable hard drives and USB flash drives) to create secure backups of all important files accessible from anywhere in the world. This Network Attached Storage (NAS), allowing you to save files from computers and mobile devices to external hard drives through your home or office wireless network.

II. Hardware Resources

2.1 Support for 2230/2242/2280 sized NVMe SSDs (only soldered with 2280 copper standoffs in default);

2.2. The hard drive can be used for storage expansion. Note: Only supports PCIe 1x Gen2.

2.3 The hard drive supports booting from SSD and requires updating the official Raspberry Pi firmware to a version later than 2024.5.13;

2.4 Reserve a power interface for the hard drive, 2.54mm-2P socket. If concerned about insufficient power supply, an auxiliary 5V power source can be externally connected via this interface. In practice, since the RPi5's PCIe is only 1x and only supports Gen2 mode after expansion, the power consumption will drop to 1/3 of the rated parameters. For instance, if the SSD is marked 3.3V 2.5A, the actual peak measured from the 5V side is only a little over 500mA. In our tests, the peak total current for two SSDs was 0.75A.

2.5 Slotting at the 40-pin position, it does not affect the Dupont line connection;

2.6 Board size: 86*56mm;

2.7 Immersion gold process, lead-free production, PCB board certified by UL and ROHS.

MPS2280D_82.jpg

III. Demonstration of Using the Raspberry Pi OS

3.1 Using SSD as storage expansion

3.1.1 Download system

The Raspberry Pi OS used in this article is:2024-07-04-raspios-bookworm-armhf.img.xz,You can download it in:

https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit

3.1.2 Flash the system to TF card

Use Imager or balenaEtcher to flash the OS image in TF card.

MPS2280D_01.jpg

MPS2280D_02.jpg

3.1.3 Update Raspberry Pi Firmware and Kernel

Boot the Raspberry Pi OS from the TF card and entersudo rpi-updatein the terminal to update the latest firmware and kernel.

Note: Runningsudo rpi-updatemay take 3-10 minutes and might require an internet connection to foreign country(please prepare your own method).

MPS2280D_03.jpg

MPS2280D_04.jpg

After upgrading, enter sudo rpi-eeprom-config --edit in the terminal to edit the boot.conf file in the kernel. Add NVME_CONTROLLER=1 to the last line, save and exit. The BOOT_ORDER=0XF461 means the boot order is SD (TF) card, NVMe (SSD), and USB drive. Click here to go to the boot order settings instructions. After setting successfully, reboot the system. This way, SSD (including storage and boot) will be supported.

3.1.4 Enable SSD storage and boot

After upgrading, enter sudo rpi-eeprom-config --edit in the terminal to edit the boot.conf file in the kernel. Add NVME_CONTROLLER=1 to the last line, save and exit. The BOOT_ORDER=0XF461 means the boot order is SD (TF) card, NVMe (SSD), and USB drive. Click here to go to the boot order settings instructions.After setting successfully, reboot the system. This way, SSD (including storage and boot) will be supported.

MPS2280D_05.jpg

MPS2280D_06.jpg

MPS2280D_07.jpg

3.1.5 After the system starts, we can see two SSDs in the File Manager of Raspberry Pi OS, as shown in the figure below:

MPS2280D_12.jpg

If you need to operate on the SSD, please click on any of the partitions. At this point, you will need to enter the system password. Once the verification is successful, you can operate on the SSD.

MPS2280D_13.jpg

At this point, returning to the desktop, you can see the shortcut icons for each partition of the two SSDs:

MPS2280D_14.jpg

By entering df in the terminal, you can see two SSDs, which we can use as storage devices.

MPS2280D_15.jpg

3.2 Using SSD as system boot

3.2.1 Flash Raspberry Pi OS to SSD, Click here to go to the burning method instructions. (Firmware of the Raspberry Pi needs to be updated to a version later than 2024.5.13. For the upgrade method, please refer to Section 3.1.3 of this document) Then remove the TF card, or set booting from NVMe (SSD) as the first option in the boot order settings.

3.2.2 After our testing, a single SSD inserted into any SSD slot can boot the system (the slot near the Mcuzone logo is Slot 03, and the slot away from the Mcuzone logo is Slot 04). If two slots have SSDs inserted and only one SSD has the system , the OS will boot from the SSD with the system. If both SSDs have the system, the OS will prioritize booting from Slot 04. The positions of the slots on the expansion board are shown in the diagram below.

MPS2280D_79.jpg

Specific information about two slots can be viewed by entering lspci in the terminal.

MPS2280D_16.jpg

Note: Kingston NV2 series SSD cannot boot directly from a pure PCIe SSD expansion board, but can boot from an expansion board with a PCIe switch chip.

IV. Demonstration of Using the Ubuntu OS

4.1 Using SSD as storage expansion

4.1.1 The Ubuntu OS used in this article is: ubuntu-24.04-preinstalled-desktop-arm64+raspi.img.xz. You can download it in:

https://ubuntu.com/download/raspberry-pi

4.1.2 Use Imager or balenaEtcher to flash the OS image in TF card. The operation method is the same as in the previous chapter on flashing the Raspberry Pi OS. (Ⅲ 3.1.2)

4.1.3 Boot the Ubuntu OS from the TF card. Since the previous chapter has already updated the Raspberry Pi kernel and enabled support for SSDs (including storage and boot), there is no need to repeat these steps here. If you have not done this before, please follow the steps in the previous chapter. (Ⅲ 3.1.3、3.1.4)

Note, on the Ubuntu OS, the command to update the Raspberry Pi firmware is sudo rpi-eeprom-update -a,, while the command to edit the boot.conf file is still sudo rpi-eeprom-config --edit.

MPS2280D_17.jpg

4.1.4 Shut down the system, insert two SSDs, then start the Ubuntu OS. We can see the two SSDs and their respective two partitions. Unlike the Raspberry Pi OS, we can operate the SSDs without enter the system password.

MPS2280D_18.jpg

MPS2280D_19.jpg

By entering df in the terminal, you can see two SSDs, which we can use as storage devices.

MPS2280D_20.jpg

4.2.Using SSD as system boot

4.2.1 Flash Ubuntu OS to SSD, Then remove the TF card, or set booting from NVMe (SSD) as the first option in the boot order settings.

4.2.2 After our testing, a single SSD inserted into any SSD slot can boot the system (the slot near the Mcuzone logo is Slot 03, and the slot away from the Mcuzone logo is Slot 04). If two slots have SSDs inserted and only one SSD has the system , the OS will boot from the SSD with the system. If both SSDs have the system, the OS will prioritize booting from Slot 04. The positions of the slots on the expansion board are shown in the diagram below. Specific information about two slots can be viewed by entering lspci in the terminal.

MPS2280D_21.jpg

V. Operations such as partitioning on the SSD

5.1 Overview

This chapter uses Raspberry Pi OS as an example to introduce operations such as partitioning and mounting the SSD.

5.2 Partitioning an SSD using GParted

5.2.1 Download the GParted. Open the Raspberry Pi OS terminal and enter the following command to install the GParted.

sudo apt install gparted

MPS2280D_77.jpg

5.2.2 Open the GParted and select the corresponding SSD.

The command to open GParted issudo gparted. After opening it, you'll see a GUI. In the upper right corner, select the SSD from the dropdown menu.

MPS2280D_23.jpg

MPS2280D_24.jpg

5.2.3 Before partitioning the SSD, you need to unmount the existing partition. Right-click on the partition and select "Unmount". After unmounting, right-click on the partition again and select "Delete" to remove the partition. There are two partitions on this SSD, perform the same steps for the other partition as well.

MPS2280D_25.jpg

MPS2280D_26.jpg

5.2.4 After completing the partition deletion, we select "Edit - Apply All Operations" from the menu to accept all the above operations. GParted is similar to DiskGenius in that it does not perform any real operations on the partitions until "Apply" is clicked.

MPS2280D_27.jpg

MPS2280D_28.jpg

MPS2280D_29.jpg

5.2.5 Right-click on the empty SSD and select "New" to create a new partition. We created two partitions in the exFAT format. The steps are shown below.

MPS2280D_30.jpg

MPS2280D_31.jpg

MPS2280D_32.jpg

MPS2280D_33.jpg

MPS2280D_34.jpg

MPS2280D_35.jpg

MPS2280D_36.jpg

Thus, we have completed the partitioning of the SSD.

5.3 Mount partition

5.3.1 Now, the SSD has been divided into two partitions. These partitions can be managed in Windows, but Linux is different. You need to mount the partitions before you operate on them. First, use the lsblk command to view the partition information. You will see the two new partitions named nvme0n1p1 and nvme0n1p2.

MPS2280D_37.jpg

Then we input the following commands in sequence to create the mount point:

sudo mkdir /ssd1

sudo mkdir /ssd2

5.3.2 To check the partition UUIDs, enter the command sudo blkid in the Raspberry Pi terminal. The UUIDs of the two SSD partitions are 769F-F2E1 and 77F0-F2E1, respectively. Record these two values.

MPS2280D_38.jpg

5.3.3 Enter the command sudo nano /etc/fstab in the Raspberry Pi terminal, and add the following two lines of code at the end of the file:

UUID=769F-F2E1 /ssd1 exfat defaults,umask=000,gid=1000 0 2

UUID=77F0-F2E1 /ssd2 exfat defaults,umask=000,gid=1000 0 2

MPS2280D_39.jpg

MPS2280D_40.jpg

After saving and exiting, restarting the system, enter lsblk in the Raspberry Pi terminal. You can see that nvme0n1p1 and nvme0n1p2 are mounted under ssd1 and ssd2.

MPS2280D_42.jpg

Now, we can see two directories: ssd1 and ssd2, at the root of the file directory, representing the two partitions on the SSD. We can perform operations on these two folders. We complete the mounting of the partitions now.

MPS2280D_41.jpg

VI. Application demonstration of NAS server

6.1 Choose the correct OS

To correctly install the NAS server, please select the 32-bit Lite version of the software platform (i.e., the 32-bit command-line version without GUI). Other versions will not be able to install OpenMediaVault properly. You can download it in:

https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-32-bit

The version of Raspberry Pi OS which we use is 2024-07-04-raspios-bookworm-armhf-lite.img.xz

6.2 Flashing the Raspberry Pi OS

Use Imager to flash the OS image.

MPS2280D_45.jpg

Since the system will come up with a command line interface, go to "Use OS customization" and click "Edit Settings" to set the login username and password. If you need to use WiFi, also set the WiFi parameters here. This will avoid the need to configure these settings in the command line interface, making it easier to use.

MPS2280D_46.jpg

MPS2280D_47.jpg

6.3 Install OpenMediaVault

6.3.1 After the system has been flashed, connect the network cable and start the system (if WiFi was set up previously, you can also use WiFi). Enter the username and password that were set during the flashing process to log into the system.

MPS2280D_43.jpg

6.3.2 After logging into the system, enter the following commands to update the system and header files:

sudo apt update

sudo apt upgrade

MPS2280D_44.jpg

Then enter the following command to install the OpenMediaVault:

wget https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install

chmod +x install

sudo ./install -n

MPS2280D_48.jpg

Note: Downloading OpenMediaVault software may require an internet connection to foreign country(please prepare your own method), and the installation process can take a long time. Please be patient.

6.4 Configuring OpenMediaVault for the NAS server

6.4.1 Use ifconfig to check the system IP of the Raspberry Pi. As shown, the IP of the Raspberry Pi used in this article is 192.168.8.102.

MPS2280D_69.jpg

In the same local network, open a browser on your PC and enter 192.168.8.102 to access OpenMediaVault. The default login name and password are "admin" and :openmediavault".

MPS2280D_49.jpg

6.4.2 Before configuring the NAS server, please ensure that the storage devices are correctly installed. Only after installation, you  can proceed with the next steps. Select "Storage", then click "Disk". At this point, all connected storage devices, including SD (TF) cards and SSD hard drives, should be displayed. If not, please carefully check if everything is properly inserted and restart the system.

MPS2280D_50.jpg

6.4.3 Click on "File System" under "Storage", then click on "Mount Existing File System" as shown in the image below. Select the currently installed storage device; in this article, we have chosen a 120GB SSD hard drive. For the partition format, we recommend choosing the EXT4 format.

MPS2280D_51.jpg

MPS2280D_52.jpg

After making your selection, click "Save". Once saved, click on 'Change' in the "Pending Configuration Changes" that appears next. This will complete the mounting settings.

MPS2280D_53.jpg

MPS2280D_54.jpg

We can repeat the above steps to mount multiple storage devices.

6.4.4 Click on "Shared Folders" under "Storage", then click 'Create'.

MPS2280D_55.jpg

You can name the folder here, choose which drive it should be on, and grant permissions to users. By default, the permissions should be correct, but if you prefer different options for network preferences, you can adjust them. Save and apply the changes.

MPS2280D_56.jpg

MPS2280D_57.jpg

Multiple devices can be added here according to needs.

6.4.5 Next, we need to ensure that computers on the network can find the shared folder. Click on "Services', then "SMB/CIFS" and click "Settings". Select "Enabled" then save and apply the changes.

MPS2280D_58.jpg

Next, we need to ensure that computers on the network can find the shared folder. Click on "Services", then "SMB/CIFS", and click "Settings". Select "Enabled", then save and apply the changes.

MPS2280D_59.jpg

MPS2280D_60.jpg

MPS2280D_61.jpg

If you need to configure multiple shared folders, please repeat the above steps.

6.4.5 Finally, Click on "User - User" to set up a user for subsequent logins to the NAS server. If you do not wish to create a new user, you can use the default user (in this article, the default user is "adm"). If you do not know the default user's login password, you can edit the user to change the password.

Note: The default user refers to the login user of the Raspberry Pi OS (in this article, it is the "adm" user). If you change this password, you will need to use the new password the next time you log into the Raspberry Pi OS.

MPS2280D_62.jpg

MPS2280D_63.jpg

MPS2280D_70.jpg

MPS2280D_71.jpg

6.5 Test NAS server

6.5.1 Check "Network discovery and file sharing" is enabled. Go to the Ethernet settings, click on "Change advanced sharing options", and see if "Turn on network discovery" and "Turn on file and printer sharing" are enabled. If they are not, please enable them.

MPS2280D_74.jpg

MPS2280D_75.jpg

6.5.2 On the same local area network (LAN), click on "Network" and find the NAS server, which in this article is shown as "RASPBERRYPI". Double-click on this NAS server, then enter the username and password you set up earlier to open the shared folder.

MPS2280D_72.jpg

MPS2280D_73.jpg

MPS2280D_76.jpg

6.5.3 Next, we will test the NAS speed by copying a large file. Here are demonstrations of writing and reading, with speeds varying depending on the network conditions.

MPS2280D_67.jpg

MPS2280D_68.jpg

Note: Test speed is affected by various factors such as network conditions, hard drive quality, and the file storage situation on the hard drive. The above test results are for reference only and do not represent the final parameters of the actual product.

Contact Us

0001_x.jpg 0002_fb.jpg 0004_ytb.jpg 0003_bb.jpg 0005_qq.jpg QQ:8204136

Email: mcuzone@vip.qq.com

Tel: +86(0)13957118045

If there are any omissions, errors, or infringements on this page, please contact us through the above methods. Thank you!

Copyright 2004-2024 Wildchip