本帖最后由 ceocn 于 2018-9-20 18:20 编辑 6 |( G: i# c. g; a) ] S+ n
3 @* i1 O5 f9 L' j; ?* W插入U盘(剩余空间大于1G)到光猫上,然后复制粘贴6 Z2 c* U+ T( m
一行一行的输入后回车,等备份完成后再输入下一行,有的分区较大备份时间较长
1 j0 y; R! n- v+ ]1 ^- P5 E
5 m. z* U) u. p, Z. T备份命令如下:
% z! A# w" x' a+ C8 x: j
- _% t& \- M) F9 add if=/dev/mtd0 of=/mnt/usb/USB_disc1/0.bin& u) P2 J. p2 ?' A5 V
1 g* y3 {+ l7 Odd if=/dev/mtd1 of=/mnt/usb/USB_disc1/1.bin( F( {0 K$ f S/ n/ i
/ N! K3 ]6 m$ s1 s1 @4 {: v1 j
dd if=/dev/mtd2 of=/mnt/usb/USB_disc1/2.bin
9 j7 f4 S0 l- d9 b" j5 ]5 j6 U
/ a1 I% K6 e, k @& fdd if=/dev/mtd3 of=/mnt/usb/USB_disc1/3.bin
* B$ V* `5 {" Y: |3 `$ E$ A# ?9 ~9 t1 ]
dd if=/dev/mtd5 of=/mnt/usb/USB_disc1/5.bin4 [* z: e# H8 y5 }6 S8 m
& o/ L" h1 p1 z
dd if=/dev/mtd7 of=/mnt/usb/USB_disc1/7.bin% _9 q3 [' Y; g3 w( y7 d$ j$ `5 L
! b) q# \) S8 X/ d' x( f) Add if=/dev/mtd9 of=/mnt/usb/USB_disc1/9.bin
% ?* r9 v' e# n! h) X/ ?5 l& m- @, a [
dd if=/dev/mtd11 of=/mnt/usb/USB_disc1/11.bin' O% s# k; l0 P5 v2 Y
0 ^! t' R* S f1 Y4 Jdd if=/dev/mtd13 of=/mnt/usb/USB_disc1/13.bin4 d0 t- t' Y3 j6 w5 ?% Z
% C. W% y. B) S: a9 Bdd if=/dev/mtd15 of=/mnt/usb/USB_disc1/15.bin. ^+ S5 q* V& G6 z+ b. _) ]9 ?
' U1 ], d0 W/ u1 n1 {% n9 j
dd if=/dev/mtd16 of=/mnt/usb/USB_disc1/16.bin, U S: w' b/ t
# h/ {' R K" C7 n; Xdd if=/dev/mtd17 of=/mnt/usb/USB_disc1/17.bin0 O6 G; m9 D9 f! u) G1 I6 o
7 j) Z% r0 B$ I# b3 U& x$ |. tdd if=/dev/mtd19 of=/mnt/usb/USB_disc1/19.bin5 Z0 e! d( ^; e1 M3 e; h: K
: c) A9 Q4 U5 M: U4 vdd if=/dev/ubi0_13 of=/mnt/usb/USB_disc1/0_13.bin
' h& v3 H5 l! _& a; o( D: J& S2 o% @) r7 C$ J+ O7 F6 [
U盘根目录下这些 bin文件就是各分区的完整备份. `6 N; r ^, B- ?" S: x
恢复的话就是反过来的命令, b5 M/ W$ Z' _6 A" _# K, V( V' G
A和B分区是一样的,所以只需备份其中一个即可
: g, Q5 P( `: i0 H$ i2 y2 X- w各分区的意思如下:
# e- }4 Z. e3 i& x4 a# [mtd0: ="startcode" E5 v- _1 j& [* C% s- Q$ e$ O
mtd1: ="ubifs"8 t" K5 V) D9 n$ a& N, j7 Q
mtd2: = "reserved"
1 t4 c5 e# o, G& Emtd3: = "ubootA"5 i, y8 d- w1 ]& u
mtd4: = "ubootB"' ~& h4 F9 D- y. { }6 S
mtd5: = "flash_configA"$ R9 c7 ?. ~' S) B) {' z
mtd6: = "flash_configB"
" X7 j1 W1 V# d) f; \6 kmtd7: = "slave_paramA"
, t% u& T4 l0 m( lmtd8: = "slave_paramB", X9 X- Q0 a% ^( Y
mtd9: = "kernelA"2 M% E, F3 y/ I; m
mtd10: = "kernelB"
2 O$ e6 A- s# k, @4 Nmtd11: = "rootfsA"
5 C2 @* b. w1 S( }mtd12: = "rootfsB"
) j( Z' b; P! E$ o( wmtd13: = "wifi_paramA"
b- {; p! G8 }& k+ p' z' g9 r" Umtd14: = "wifi_paramB"; D* | a+ X$ K2 |
mtd15: = "system_param"; M9 L4 K- o- [/ _' A6 k a4 [
mtd16: = "file_system"+ I! F# P$ E1 I' n
mtd17: = "frameworkA"* _3 W+ J& B# p2 z& U
mtd18: = "frameworkB"
6 u& @7 Y' ~' A7 u- s3 S$ ]" ~3 Fmtd19: = "apps"
& S+ p% w- W7 [$ t! ^ubi0_13 = "jffs2"# H7 {' i9 K* K% S4 K6 N
1 J! M. L1 E% u- j7 C j* O
- r5 M. G5 Y* n: z" b1 j& j' D& f* j V$ d4 _
|