Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an SD card title #106

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs/duo/FAQ/extended-root-partition.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ sidebar_position: 40

# Expand root partition

## Check current disk usage
## Extended root partition for SD card boot mode

### Check current disk usage

Run command ` df - h ` to view current disk partitions and usage.

Expand Down Expand Up @@ -35,7 +37,7 @@ Partition table type: DOS (MBR)
The root partition we want to expand is /dev/mmcblk0p3. Remember the starting sector 266241 of this partition.

Note: /dev/mmcblk0p1 is the boot partition, do not change it.
## Use fdisk to expand the root partition
### Use fdisk to expand the root partition

1. Run the command `fdisk /dev/mmcblk0` to start fdisk.
```
Expand Down Expand Up @@ -124,7 +126,7 @@ tmpfs 159M 36K 159M 1% /run
```
Root partition (/dev/root): 30G, 178M used, 28G remaining.

## Create an extended root partition script
### Create an extended root partition script

The content is as follows:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ sidebar_position: 40

# 拓展根分区

## 检查当前磁盘使用情况
## SD卡启动方式的拓展根分区

### 检查当前磁盘使用情况

运行命令` df- h `查看当前磁盘分区和使用情况。

Expand Down Expand Up @@ -46,7 +48,7 @@ Device Boot Start End Sectors Size Id Type
我们要扩展的根分区就是 /dev/mmcblk0p3 ,要记住此分区的起始扇区 266241 。

注意:/dev/mmcblk0p1 是 boot 分区,不要动。
## 使用 fdisk 扩展根分区
### 使用 fdisk 扩展根分区

1. 运行命令 `fdisk /dev/mmcblk0` 启动 fdisk 。
```
Expand Down Expand Up @@ -149,7 +151,7 @@ tmpfs 159M 36K 159M 1% /run
```
根分区 (/dev/root):30G,已用178M,剩余28G。

## 创建扩展根分区脚本
### 创建扩展根分区脚本

内容如下:

Expand Down