找回密码
 注册

QQ登录

只需一步,快速开始

楼主: ma20at

全shell光猫备份系统分区的命令,欢迎试用

[复制链接]
发表于 2017-11-24 11:28:33 | 显示全部楼层
方法是楼主发的,文件保存在tftp服务软件文件夹内
发表于 2017-12-1 12:06:54 | 显示全部楼层
楼主用什么命令恢复到光猫中
发表于 2017-12-1 13:09:26 | 显示全部楼层
楼主用什么命令恢复到光猫中
发表于 2017-12-1 14:59:36 | 显示全部楼层
可备份,如何打包,制作固件?
# l6 C/ m, ~5 \& x2 V' ?' j2 S
发表于 2017-12-9 14:10:26 | 显示全部楼层
如何打包,制作固件?
发表于 2017-12-9 19:54:14 | 显示全部楼层
; c; M" Q6 K  z  A+ {

8 m/ L3 w: s8 U7 x$ P; A$ [. Q& ]8 @" O按照楼主的方法,为什么提示出错?
0 a( b! C: T2 j+ Q3 b6 X

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2017-12-14 10:02:50 | 显示全部楼层
Login:root% a1 F! D) K7 I2 |: `7 y) a4 Z( j2 J( Q
Password:
& \: ]9 }% O' |' B4 a" _7 F, |Password is default value, please modify it!
8 Y) N) g5 _1 N2 WWAP>su
8 U* c6 O) A9 |" I! v2 Q3 Z4 psuccess!
; v' d/ W! u6 y2 K% ^. v' [' _) [SU_WAP>shell0 T; U; N3 A9 l- h
' {$ D. p% F' a' [
BusyBox v1.18.4 (2015-03-31 23:19:06 CST) built-in shell (ash)
' d2 d" V* k' TEnter 'help' for a list of built-in commands.; F$ c# s/ V( V# a

7 c5 F- }+ f' j6 y1 K' w# v1 wprofile close core dump
* h8 A" Z+ }( z$ {0 l1 W! _" d9 KWAP(Dopra Linux) # #!/bin/sh0 [- T. J) g7 p: j
WAP(Dopra Linux) # dev=`cat /proc/mtd|awk '{print $1}'|sed -n '2,$p'| sed 's/:/// ]( p5 O( o( ^

, M$ Y# i6 m' S7 a3 rg'`# ?6 `$ j8 I" D& p* K: q4 Q  Y
WAP(Dopra Linux) # for i in $dev ;
5 R( b1 ~8 [2 L& Z/ e3 o) r> do
: D$ H# J$ ~: R( D3 W> dd if=/dev/$i of=/tmp/$i.bin ;
% p4 Y: w. f6 |; k$ D" x> done" _2 i' y" F- m. q- o
2048+0 records in( S( _' L/ p; R' F! m# _, O- K
2048+0 records out
2 m3 q! I0 O4 n1048576 bytes (1.0MB) copied, 0.169414 seconds, 5.9MB/s0 ^& z8 M8 |6 i) f$ b3 \* \, M
dd: writing '/tmp/mtd1.bin': No space left on device
6 a" [, K5 l* z; R0 L2 v18385+0 records in" g4 h7 K9 x9 f, }
18384+0 records out
7 V% ?; A# o9 o7 j8 u8 {9412608 bytes (9.0MB) copied, 1.499058 seconds, 6.0MB/s8 c+ ^$ j9 y- F. ?+ X* ~
0+0 records in3 o" X: M7 Z( r3 x' A4 X
0+0 records out! [- L2 g' ?5 R5 A4 B" v7 A
0 bytes (0B) copied, 0.000104 seconds, 0B/s
9 d5 k; X: \, H2 N2 Cdd: writing '/tmp/mtd3.bin': No space left on device
. G7 H$ ]6 M* h4 _2 m6 w7 w- B1+0 records in
) E$ }) @' v3 s6 L' g: R# Y2 Q; W+ F0+0 records out# f6 p( L: ]) W! g8 b- j
0 bytes (0B) copied, 0.000569 seconds, 0B/s
8 c3 M& h7 `) {& @; gdd: writing '/tmp/mtd4.bin': No space left on device) a0 |( K2 T5 Y2 c: D5 Y; J
1+0 records in
) V1 L5 {" D; w  L0+0 records out8 i( E: p/ _+ V- A: P6 b. _4 M
0 bytes (0B) copied, 0.000568 seconds, 0B/s
% W7 z5 }7 [6 C4 Zdd: writing '/tmp/mtd5.bin': No space left on device
: {$ K) [  |4 v: [7 s1+0 records in" p- U* C8 a  ^( U* l0 Y% X8 N' r
0+0 records out
) ~* X' {& C% a+ t0 bytes (0B) copied, 0.000568 seconds, 0B/s7 A- `4 z% O* D* B$ M0 A( D
dd: writing '/tmp/mtd6.bin': No space left on device
1 ?& a0 U9 m! i0 x% Q- J1+0 records in
& i2 ~8 `: b: X4 i4 ?0+0 records out" ~% G! L# J" I2 @. r  l
0 bytes (0B) copied, 0.000557 seconds, 0B/s- Q% K5 ~" h( j5 ?$ c% t" @
dd: writing '/tmp/mtd7.bin': No space left on device9 J. x/ M; h( L( n6 d  K
1+0 records in
7 F) l* X; T4 w+ L7 Y* ?0+0 records out- U0 x% f, \, L3 T3 t; p2 t! c
0 bytes (0B) copied, 0.000569 seconds, 0B/s9 ?$ ~9 \* @- r% {
dd: writing '/tmp/mtd8.bin': No space left on device
. M7 G5 @$ p! l6 L$ Y1+0 records in$ X, {; F8 p; }2 A
0+0 records out
4 C, j$ M: b* |$ h0 bytes (0B) copied, 0.000561 seconds, 0B/s+ X) g% L/ V0 E- d2 z( I6 H) D
dd: writing '/tmp/mtd9.bin': No space left on device
% ~+ m+ k( c. |8 |2 ~4 L3 k1+0 records in
. [% n. o- s6 i. m/ n/ S) _) |0+0 records out
4 o6 \. ^% y6 n2 p+ _0 bytes (0B) copied, 0.001088 seconds, 0B/s
/ }& m! y* x& Q4 ?( _& m) pdd: writing '/tmp/mtd10.bin': No space left on device; u+ n+ y' F2 O
1+0 records in. j3 O9 v: d: e, E5 ~+ F
0+0 records out/ {3 }& |0 k9 o  J& U. G
0 bytes (0B) copied, 0.000561 seconds, 0B/s& A* Q3 y, g) V! m
dd: writing '/tmp/mtd11.bin': No space left on device7 X; k" S0 I- Z9 j
1+0 records in
0 @+ m" U5 V8 C- X0+0 records out
* O6 t6 u4 R$ q9 {0 f8 D1 `0 bytes (0B) copied, 0.000557 seconds, 0B/s
6 y7 s0 a7 R# @! C& n0 ^- `, bdd: writing '/tmp/mtd12.bin': No space left on device
9 z  Q( l; P- D! q$ w' E# q1+0 records in
) q* J1 Z! s5 a5 |1 z: L, u0+0 records out
7 A3 |& y6 N2 f6 c# J3 C0 bytes (0B) copied, 0.000571 seconds, 0B/s' l4 `4 [. k1 d3 j  ~
dd: writing '/tmp/mtd13.bin': No space left on device4 }. i/ l; }2 W! q1 }) x; H( @. ]4 @
1+0 records in
" q9 D( f5 Z$ q! M/ j0+0 records out
# b( d, [. h! X% [  M4 p. O0 bytes (0B) copied, 0.000564 seconds, 0B/s0 `* ^& u4 l1 a  |
dd: writing '/tmp/mtd14.bin': No space left on device0 G6 m! Z) p1 z/ P) o  ^
1+0 records in/ G2 G  h  o; g& \0 L5 b
0+0 records out: p" B! A! {. f/ ?( M* a
0 bytes (0B) copied, 0.000561 seconds, 0B/s
1 U( E) \$ ^" x2 ]( ^dd: writing '/tmp/mtd15.bin': No space left on device
( I6 \, f& X; U* e1+0 records in7 y+ w4 T2 q* f0 y9 r' {* F
0+0 records out; K# x9 i- D! O' J2 U8 c; @
0 bytes (0B) copied, 0.000566 seconds, 0B/s- l) f' d/ y2 S! s& g
dd: writing '/tmp/mtd16.bin': No space left on device6 h' a" a8 k+ }! q: L0 e
1+0 records in
8 H4 m4 D+ n  {! X$ \4 x9 ?* T* _0+0 records out3 x! T) r: k+ k* j/ q7 t) E) y6 S- \) p
0 bytes (0B) copied, 0.004745 seconds, 0B/s; I( b- F1 j% P  q9 h
WAP(Dopra Linux) # cd /tmp) ?' `6 `+ p. K* ]% |
WAP(Dopra Linux) # cat /proc/mtd > mtd.log  l8 r& L( T! R1 a
cat: write error: No space left on device- `, g7 y* g0 a2 W" `
WAP(Dopra Linux) # tar czvf fw.tar.gz *.bin mtd.log$ c& o  Q6 }9 \! [2 G6 i% y7 S
mtd0.bin& t  Z( N( W. J
gzip: short write
- j" L7 [/ d  n( l/ h. \# Wtar: write error: Broken pipe. g9 K% c8 b, i& K1 Y
WAP(Dopra Linux) # tftp -p -l fw.tar.gz 192.168.1.100
3 F/ a' t5 N- w3 YWAP(Dopra Linux) # rm -f  fw.tar.gz *.bin
; b- G: e! }- R3 O6 [  F5 `提示错误,因空间不足,备份文件只有0字节。
发表于 2017-12-14 10:06:30 | 显示全部楼层
WAP(Dopra Linux) # cat /proc/mtd > mtd.log2 D, y( g3 O6 {7 b0 t* {( R# t4 u1 t- f; |
cat: write error: No space left on device& P8 G% J8 K4 }* }/ ^
在这里提示空间不足
发表于 2017-12-14 11:22:53 | 显示全部楼层
好东西藏自治区
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|宽带技术网 |网站地图

粤公网安备 44152102000001号

GMT+8, 2024-4-28 22:49 , Processed in 0.024818 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表