# 软路由iStoreOS分区

## 备份整个iStoreOS系统

#### 首先你可以cd到其他硬盘分区，比如移动硬盘，然后查看分区结构

`fdisk -l`

`dd   bs=512 count=[fdisk命令中最大的end数+1] if=/dev/sda of=/ghost.img`

就可以把我需要的分区数据全部copy到ghost.img文件中

#### 举例，如果想要进度条，可以提前在软件包里安装coreutils-dd 这款插件

**`dd if=/dev/sda bs=512 count=4982272 of=ghost.img status=progress`**

## **软件包扩容的填充命令**&#x20;

#### **假设扩大2G给软件包,具体命令如下**

**#解压**&#x20;

**gzip -kd op.img.gz**

**#填充**  &#x20;

**dd if=/dev/zero bs=1M count=2048 >> op.img status=progress**

**#扩容**&#x20;

**parted op.img**

**print**

**resizepart 3 100%**

**quit**

## **fdisk 命令的语法**

**#展示硬盘分区情况**

**fdisk -l**

\
\&#xNAN;**#分区命令**

**fdisk /dev/nvme0n1  或者fdisk /dev/sda**<br>

**#在fdisk中，请不少删除系统分区。**<br>

**m 是帮助文档**

**d  是删除分区**

**n  是创建分区**

**w 是提交（保存并退出）**

**q  是不保存退出**

## **访问或者挂载其他的NAS空间**

**`mount -t cifs -o vers=2.0,username=wkwk,password=Cos#123456,iocharset=utf8 //192.168.6.149/public  /mnt/ds1821/`**

**`你可以把上述代码，写在系统的 启动项 里 ，这样每次启动系统 就自动挂载了`**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://didiboy0702.gitbook.io/wukongdaily/new-shou-ye/ruan-lu-you-shi-yong-ji-qiao/ruan-lu-you-istoreos-fen-qu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
