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 split command for USB disk #5

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
67 changes: 54 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,48 @@ Here we take UC-8100 as illustration:

#### 1. Install and modify all the applications and configurations you want on the UC-8100

#### 2. Dump the image by `dd` command and save it to another Linux PC with enough storage
```
# dd if=<device> | ssh <Username of Linux PC>@<IP address of Linux PC> dd of=<dumped_image_file>
```

The device can be checked by `lsblk` command:
#### 2. Dump the image by `dd` command. There are two methods to copy the whole system

- 2.a - Dump via ethernet and save it to another Linux PC with enough storage
```
# dd if=<device> | ssh <Username of Linux PC>@<IP address of Linux PC> dd of=<dumped_image_file>
```

The device can be checked by `lsblk` command:

![lsblk](/lsblk.PNG)

In this example, root is mounted at "/dev/mmcblk0p2", so the device is "/dev/mmcblk0":

```
# dd if=/dev/mmcblk0 | ssh [email protected] dd of=/tmp/uc8100_dump.img
```

- 2.b Dump the image to the local storage such as USB disk
```
# dd if=<device> of=<dumped_image_file>
```

![lsblk-usb](/lsblk_usb.PNG)

In this example, root is mounted at "/dev/mmcblk2p2", so the device is "/dev/mmcblk2":

```
# dd if=/dev/mmcblk2 of=/media/usb/uc8100_dump.img
```

Most USB disk file system is FAT32, split image is recommend

```
dd if=/dev/mmcblk2 bs=1M | split --verbose -b 1G - /media/usb/uc8100_dump.img.
```

Merge on laptop

```
cat /media/usb/uc8100_dump.img.* | dd of=/tmp/uc8100_dump.img
```

![lsblk](/lsblk.PNG)

In this example, root is mounted at "/dev/mmcblk0p2", so the device is "/dev/mmcblk0":

```
# dd if=/dev/mmcblk0 | ssh [email protected] dd of=/tmp/uc8100_dump.img
```

#### 3. Clone or download this repository on your Linux PC
```
Expand Down Expand Up @@ -58,6 +86,13 @@ The output image file will be named as "resize.img"
* UC-8100-ME series:

including UC-8112-ME-T-LX, UC-8112-ME-T-LX1, UC-8112-ME-T-LX-US-LTE, UC-8112-ME-T-US-LTE-LX1
* UC-8100A-ME series:

including UC-8112A-ME-T-LX, UC-8112-ME-LX
* UC-8410A series:

including UC-8410A-LX, UC-8410A-NW-LX, UC-8410A-T-LX, UC-8410A-NW-T-LX

* Type B
* UC-2100 series:

Expand All @@ -68,3 +103,9 @@ The output image file will be named as "resize.img"
* UC-5100 series:

including UC-5101-LX, UC-5101-T-LX, UC-5102-LX, UC-5102-T-LX, UC-5111-LX, UC-5111-T-LX, UC-5112-LX, UC-5112-T-LX
* UC-8100A-ME series:

including UC-8112A-ME-T-LX, UC-8112A-ME-T-US, UC-8112A-ME-T-EU, UC-8112A-ME-T-AP
* UC-8200 series:

including UC-8210-T-LX, UC-8210-T-LX-S, UC-8220-T-LX, UC-8220-T-LX-US-S ,UC-8220-T-LX-EU-S ,UC-8220-T-LX-AP-S
Binary file added lsblk_usb.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.