Files
TDT/orangepi3B安装系统到SSD.md

61 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# orangepi 3B 安装系统到SSD
## 将系统盘安装到TF卡中
#### 安装盘的位置:Downloads/Orangepi3b_1.0.8_ubuntu_jammy_server_linux6.6.0-rc5/Orangepi3b_1.0.8_ubuntu_jammy_server_linux6.6.0-rc5.img
## 将TF卡插入orangepi 3B中,启动主机,查找主机的IP地址,ssh orangepi@192.168.3.101进入主机
## 关机、拔掉电源、将SSD安装到orangepi 3B中
## 重新开机ssh root@192.168.3.101进入主机orangepi
## 能够查找到SSD
```
fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
```
## 使用 TF 卡启动 Linux 系统后,我们首先烧录 u-boot 镜像到 SPI Flash 中
```
nand-sata-install--7
Install/Update ther bootloader on SPI Flash
yes
等待几分钟
左下角会显示一个Done
```
## 将 Linux 镜像文件(从官网下载的 Debian 或者 Ubuntu 镜像)上传到 TF 卡中
```
scp zhongjin@192.168.3.185:~/Downloads/Orangepi3b_1.0.8_ubuntu_jammy_server_linux6.6.0-rc5/Orangepi3b_1.0.8_ubuntu_jammy_server_linux6.6.0-rc5.img .
```
## 查找到SSD
```
fdisk -l
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
```
## 使用 dd 命令清空下 NVMe SSD
```
dd bs=1M if=/dev/zero of=/dev/nvme0n1 count=2000 status=progress
sync
```
## 使用 dd 命令烧录开发板的 Linux 镜像到 NVMe SSD 中
```
dd bs=1M if=Orangepi3b_1.0.8_ubuntu_jammy_server_linux6.6.0-rc5.img of=/dev/nvme0n1 status=progress
sync
```
## 当成功烧录开发板的 Linux 镜像到 NVMe SSD 后,此时就可以使用 poweroff命令关机了。然后请拔出 TF 卡,再短按电源按键开机,此时就会启动 SPIFlash+NVMeSSD 中的 Linux 系统了
## 看到实际的硬盘容量
```
df -h
/dev/nvme0n1p2 464G 2.1G 457G 1% /
```