找回密码
 注册

QQ登录

只需一步,快速开始

楼主: ma20at

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

[复制链接]
发表于 2017-12-9 19:54:14 | 显示全部楼层
( z, y0 O0 F0 n9 x

" F: V4 U) q0 r0 h) I- _1 s, H按照楼主的方法,为什么提示出错?
9 g/ c; l( ?' |; ?' }% t

本帖子中包含更多资源

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

×
发表于 2017-12-14 10:02:50 | 显示全部楼层
Login:root
# k( s+ y  ]. iPassword:
" m0 ?3 N# T: N, o3 RPassword is default value, please modify it!: o. L# B! c7 m+ J; n+ _2 A
WAP>su: @5 W+ f  x  u0 k' n
success!2 R$ T! y$ S7 _/ m$ Y% L  H: Z( ?
SU_WAP>shell6 N- R9 T) Y5 q  U3 n

9 d+ g4 J: q* J3 }! a: p- VBusyBox v1.18.4 (2015-03-31 23:19:06 CST) built-in shell (ash)
; A/ _# x% v8 Z- t6 Y. {( ^- oEnter 'help' for a list of built-in commands." A6 Q! @' q& r: `
, m+ I! \0 W8 r$ @1 Z! u$ j3 F1 S
profile close core dump. K; `% p* e/ ]" G4 P- T' j0 B
WAP(Dopra Linux) # #!/bin/sh
0 |- p8 \, v9 ~; K0 UWAP(Dopra Linux) # dev=`cat /proc/mtd|awk '{print $1}'|sed -n '2,$p'| sed 's/://2 {& {( Y0 i  t+ v/ L

! z* N- `6 P# \. p, e- Dg'`
4 h( N" s, c. }4 J3 y, YWAP(Dopra Linux) # for i in $dev ;
- T: A2 M+ [) s" v# ^: |> do3 ]& m( {- r* |( a1 v$ @! z
> dd if=/dev/$i of=/tmp/$i.bin ;
  E* ?2 E% E5 T- }> done
% b: V1 O. K+ k/ l- M2048+0 records in
' a2 N# I8 X; y# R8 T" d' h( I2048+0 records out* c3 _" C$ z3 ^/ @; l4 X
1048576 bytes (1.0MB) copied, 0.169414 seconds, 5.9MB/s8 D( G% n2 W8 \/ |( x2 [
dd: writing '/tmp/mtd1.bin': No space left on device
8 N0 N6 d' r# p' q. a6 I& L) M18385+0 records in
; A2 P; R) x0 d, S/ [. x5 P* L: J  M18384+0 records out1 ?, k0 w$ i( o7 l% N4 D( ]! N
9412608 bytes (9.0MB) copied, 1.499058 seconds, 6.0MB/s% B2 f1 N. E1 ?7 E: R  C( j
0+0 records in
, ~9 |3 j' J' f8 j0 |& f0+0 records out
1 x, \: C4 ?  Z" ~$ c/ P* f0 bytes (0B) copied, 0.000104 seconds, 0B/s
& x% @' x7 R+ y2 K+ Y, Z1 gdd: writing '/tmp/mtd3.bin': No space left on device! S0 ?- e  Y/ `- S! y- g
1+0 records in8 t3 c: @+ t2 f, y9 t
0+0 records out8 g0 n% t. j  G6 v5 W
0 bytes (0B) copied, 0.000569 seconds, 0B/s9 U; L7 e5 B) ?4 X3 W! c* Z
dd: writing '/tmp/mtd4.bin': No space left on device( s" e# w0 {- W- ~( h( S
1+0 records in4 Y  _& m' U, L& q9 p
0+0 records out
) n/ F! @2 A* e# ~+ \+ q0 y0 bytes (0B) copied, 0.000568 seconds, 0B/s
" @4 W2 f% x. e1 u5 l9 d; K( Ddd: writing '/tmp/mtd5.bin': No space left on device
( L8 u, }* p. B1+0 records in9 N8 n5 r, V/ B: [* q! a) K3 E
0+0 records out5 A+ ]# }! |. M. t2 O- d7 ?7 s
0 bytes (0B) copied, 0.000568 seconds, 0B/s
# c3 a5 Q, b1 M3 O- bdd: writing '/tmp/mtd6.bin': No space left on device, Y+ Z% O4 g  _3 |/ d  Y
1+0 records in1 |/ |6 ?+ X- v5 n: O* s
0+0 records out
/ F0 P+ ]# z8 K, }0 bytes (0B) copied, 0.000557 seconds, 0B/s' o" w; M# }0 ?7 P
dd: writing '/tmp/mtd7.bin': No space left on device
1 G/ B4 b  X, Z/ ?3 C( r1+0 records in
: e2 M% M( u9 c; l) m* r; P) c- O0+0 records out8 ]" S, W" c: Y5 \
0 bytes (0B) copied, 0.000569 seconds, 0B/s  J/ C; q% {/ |7 g
dd: writing '/tmp/mtd8.bin': No space left on device
& _2 n5 G5 ^/ w1+0 records in
  `: b7 d# G0 A& d; W& L0+0 records out# |; B6 G* y4 R0 A+ H# Y8 n
0 bytes (0B) copied, 0.000561 seconds, 0B/s( B! Y$ o2 a- y! x( q' I
dd: writing '/tmp/mtd9.bin': No space left on device$ E8 b" w  X" W) e& }
1+0 records in2 W/ B9 V3 q) x: Q' c
0+0 records out  t9 C4 g; K. z5 f6 }1 }
0 bytes (0B) copied, 0.001088 seconds, 0B/s. O& @( c. H2 g8 k
dd: writing '/tmp/mtd10.bin': No space left on device
# ^8 I3 P! Z, T' ]5 i; V0 E8 p1+0 records in; \7 W! J1 [6 _: \4 V. ]
0+0 records out
  J' ?  i5 s, E! v# B  y0 bytes (0B) copied, 0.000561 seconds, 0B/s
1 g& t, @5 j, E- |3 h' mdd: writing '/tmp/mtd11.bin': No space left on device
) O; }1 s5 l+ p: o3 P5 Z1+0 records in
# c" f; C% y2 q+ S4 o- _9 ^0+0 records out3 H1 k5 }  C1 H% G
0 bytes (0B) copied, 0.000557 seconds, 0B/s
7 K5 A5 b% z1 ?# s3 I6 H0 Qdd: writing '/tmp/mtd12.bin': No space left on device
: x& B3 I, i. d* Y1+0 records in
# ^* O, {! I4 ]# Y1 X2 l1 Q0+0 records out9 U) Z- `+ a$ A  A/ V. q' }3 t
0 bytes (0B) copied, 0.000571 seconds, 0B/s( v  ~$ _+ G. }/ ~* ?* x; E
dd: writing '/tmp/mtd13.bin': No space left on device: b( Z5 k5 F+ c% F
1+0 records in% P! j) G- v$ Z
0+0 records out
0 Y( r5 U+ U) O7 A" a: J/ r8 Z; q0 bytes (0B) copied, 0.000564 seconds, 0B/s
1 c! Y, W+ l& T/ P; [1 Rdd: writing '/tmp/mtd14.bin': No space left on device
  t" Q3 M2 l" S$ n! T( x1 d4 r1+0 records in; |! l  y7 T9 t4 S9 j
0+0 records out
, ^) z* S; z) j( ?" x0 bytes (0B) copied, 0.000561 seconds, 0B/s
0 h, y. s- \0 w: udd: writing '/tmp/mtd15.bin': No space left on device& |) O( M0 L% o/ B5 s/ ]" e
1+0 records in
% u: G6 Q; L6 i/ F, M0+0 records out# ^7 a! P8 H# {7 _
0 bytes (0B) copied, 0.000566 seconds, 0B/s# j: b/ z  v8 N1 \( c5 B, H
dd: writing '/tmp/mtd16.bin': No space left on device
5 I5 X6 M+ H' h0 i# \* n3 r1+0 records in/ E" d/ O# o; Q# t/ I) X: N4 {
0+0 records out- r, [1 ?' N+ X; Y, T, z2 c
0 bytes (0B) copied, 0.004745 seconds, 0B/s' X8 a0 f2 z+ j2 j0 o) Q2 y+ F
WAP(Dopra Linux) # cd /tmp) g# _& p3 O- p
WAP(Dopra Linux) # cat /proc/mtd > mtd.log2 Q/ Z. I, |; Q: L/ p
cat: write error: No space left on device: V: z$ R! A& ?1 Z! j, D
WAP(Dopra Linux) # tar czvf fw.tar.gz *.bin mtd.log) B. ?* P9 V0 L, K1 T' w& J( }
mtd0.bin$ s7 U( K' J7 u  R
gzip: short write
6 r' Z- Q% L- y* \: Utar: write error: Broken pipe
& ^1 l- @" {  bWAP(Dopra Linux) # tftp -p -l fw.tar.gz 192.168.1.100
) [" Q$ Z6 r8 y+ ?" c( YWAP(Dopra Linux) # rm -f  fw.tar.gz *.bin5 d' j0 j4 J! p- y( l% r" p
提示错误,因空间不足,备份文件只有0字节。
发表于 2017-12-14 10:06:30 | 显示全部楼层
WAP(Dopra Linux) # cat /proc/mtd > mtd.log
, i, S) s0 j( I+ _" T8 o% Xcat: write error: No space left on device
2 T" a+ g' Y" C, C在这里提示空间不足
发表于 2017-12-14 11:22:53 | 显示全部楼层
好东西藏自治区
发表于 2018-9-6 17:13:36 | 显示全部楼层
这个谁懂,感觉很有用的样子。
发表于 2018-9-6 20:26:44 | 显示全部楼层
我想试试,你们谁成功了?
发表于 2018-9-6 23:23:50 | 显示全部楼层
有成功备份的吗??
发表于 2024-3-14 22:51:21 | 显示全部楼层
提示空间不足
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-3 21:06 , Processed in 0.025151 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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