找回密码
 注册

QQ登录

只需一步,快速开始

楼主: ma20at

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

[复制链接]
发表于 2017-12-9 19:54:14 | 显示全部楼层
! X. Y& D# ]$ Q2 |3 ?
6 }3 t3 o0 {! u- w( j: w
按照楼主的方法,为什么提示出错?5 N) a) J) m$ x2 `, U5 `0 h

本帖子中包含更多资源

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

×
发表于 2017-12-14 10:02:50 | 显示全部楼层
Login:root' @& u. \* i6 D; K9 b
Password:
- P  u  X" J" u( [0 UPassword is default value, please modify it!
# C: H  d, m5 D9 c  g  SWAP>su8 ^. z' ?  {# ~+ C) [/ A
success!" K; [7 x7 ]2 R3 h% b/ D( ?
SU_WAP>shell
# U! F9 u5 y. D
. h2 Z  P6 {" i5 @1 ~+ VBusyBox v1.18.4 (2015-03-31 23:19:06 CST) built-in shell (ash)* G( {- ]2 |3 ?2 d' y; @2 C
Enter 'help' for a list of built-in commands.
0 p1 {8 Y3 ]* r0 j3 a" l, E5 Y" m* C
profile close core dump9 @; @" D. B/ O) s) c
WAP(Dopra Linux) # #!/bin/sh2 L4 J/ M1 @/ J; n5 z6 D
WAP(Dopra Linux) # dev=`cat /proc/mtd|awk '{print $1}'|sed -n '2,$p'| sed 's/://4 m0 T; N( q! m/ r; R
" i3 \9 q/ v$ a$ R
g'`
/ x1 p+ ?  A0 SWAP(Dopra Linux) # for i in $dev ;
* a0 i6 k! d3 i9 I! j> do3 z) H0 G4 }. [/ n- T7 S
> dd if=/dev/$i of=/tmp/$i.bin ;
! t* B- c3 t3 O2 P+ x> done. J3 ^8 g! o1 u
2048+0 records in' C  v. g+ p: C$ p% l1 y3 n
2048+0 records out+ ]  s/ l2 ]1 \
1048576 bytes (1.0MB) copied, 0.169414 seconds, 5.9MB/s1 _. T5 X/ c5 T6 z3 ?$ t5 {
dd: writing '/tmp/mtd1.bin': No space left on device
( [# a- U; T: m18385+0 records in
; L5 J  G" y4 m" y$ e' u' U18384+0 records out0 g( N' d* Q' p4 }; S0 X7 x
9412608 bytes (9.0MB) copied, 1.499058 seconds, 6.0MB/s" \1 ~/ |; G% E6 J$ p1 a. E2 R1 [
0+0 records in* O* a1 z" ], U
0+0 records out
" ]  P* v/ n' q' l0 bytes (0B) copied, 0.000104 seconds, 0B/s# u1 f5 e# U4 A
dd: writing '/tmp/mtd3.bin': No space left on device- g5 \* I6 c$ y3 T% D5 F
1+0 records in
9 E# G+ ?3 ~8 O- {$ ~$ f- O% n8 N0+0 records out
3 ]( V( Y+ M% Y$ M5 X# d. P; B2 y0 bytes (0B) copied, 0.000569 seconds, 0B/s
4 z" ^' |9 r! odd: writing '/tmp/mtd4.bin': No space left on device& {6 @0 \9 Q/ B0 \! |
1+0 records in
3 [5 ^  D8 `- c" B4 Q, z0+0 records out
) Q& I1 M% [. q1 O0 bytes (0B) copied, 0.000568 seconds, 0B/s
1 `8 i8 b+ I8 r" s9 L3 y2 U7 `dd: writing '/tmp/mtd5.bin': No space left on device  x6 t* @2 E" O# ?
1+0 records in
, T# z: a; Q9 }: q. N0+0 records out/ t: W- k4 Z/ s8 z( f
0 bytes (0B) copied, 0.000568 seconds, 0B/s) i7 v) _% A0 B) E' G/ u) n( q
dd: writing '/tmp/mtd6.bin': No space left on device( R; l) u: F& u; q* S2 u; r; X
1+0 records in
, r' ?4 ?2 @/ _* {2 {0+0 records out' Q) W6 C; n8 q" E+ H: n5 P6 g
0 bytes (0B) copied, 0.000557 seconds, 0B/s7 Y6 E  F) c' a( j
dd: writing '/tmp/mtd7.bin': No space left on device
* l2 e" M" S. A$ ^' d2 A1+0 records in
, E* [4 c( ^4 O0+0 records out5 f# W; [* o3 q, g7 `
0 bytes (0B) copied, 0.000569 seconds, 0B/s
5 f, Q/ U6 X; E0 p% w% h1 \dd: writing '/tmp/mtd8.bin': No space left on device8 s7 j, z- n6 j
1+0 records in
6 O# S: b  x4 p: M- V, P0+0 records out# D" P6 _, u3 ]4 r2 s
0 bytes (0B) copied, 0.000561 seconds, 0B/s+ R6 c9 F; m# E5 w3 b
dd: writing '/tmp/mtd9.bin': No space left on device9 a8 s# v" Z% \
1+0 records in
. V$ c" ~/ S6 Q- f& |  c0+0 records out3 ?# d6 e9 u3 @* f/ E
0 bytes (0B) copied, 0.001088 seconds, 0B/s7 M# ?4 P: `8 F+ F+ j9 T. Z0 X9 i' S0 M
dd: writing '/tmp/mtd10.bin': No space left on device' J5 I" N" p' m4 }, ^0 x
1+0 records in. U& z  u# x4 T7 {$ o0 T1 T' r, {
0+0 records out
# {& Z% N6 s/ J0 bytes (0B) copied, 0.000561 seconds, 0B/s. B% }& O% m: v- p; l5 _, O( c3 ~
dd: writing '/tmp/mtd11.bin': No space left on device1 _3 W1 F4 L" Z2 C, h
1+0 records in; {3 d. @9 ]; l# n
0+0 records out- x. |/ q6 J! J$ s
0 bytes (0B) copied, 0.000557 seconds, 0B/s
5 ]+ {) O) p6 M% c! }* A" Y& {dd: writing '/tmp/mtd12.bin': No space left on device
/ s+ R7 l" c* I6 z, G5 h8 R1+0 records in
9 i0 i5 U9 s8 c6 `& o$ `; P0+0 records out
9 z- N- u; Q8 F8 p% [; E9 R0 bytes (0B) copied, 0.000571 seconds, 0B/s
$ a: Q: q: e0 @/ C5 v( wdd: writing '/tmp/mtd13.bin': No space left on device
; v7 C+ u! F8 `, V6 g: p+ ]1+0 records in
6 m1 u; o0 @" i0 d0+0 records out7 q% u' G; f! m$ X
0 bytes (0B) copied, 0.000564 seconds, 0B/s
1 e! l' p+ P2 O$ ^' I) S) S0 Tdd: writing '/tmp/mtd14.bin': No space left on device/ n- \& A, }; d$ R  [
1+0 records in
' @8 }# B* p' Y* y( m1 [7 b0+0 records out4 y6 i7 p% v$ q0 e
0 bytes (0B) copied, 0.000561 seconds, 0B/s
: i9 S6 C4 }: Gdd: writing '/tmp/mtd15.bin': No space left on device# N& d& T' B, @) z7 w4 Q% a* Q
1+0 records in# ^# Y" u# M( g' g8 i+ T' T2 E$ {
0+0 records out
3 B* W4 f9 {7 D- Z# M1 m; {2 G! B0 bytes (0B) copied, 0.000566 seconds, 0B/s
, f' z9 t3 f) h4 P( ~2 d8 ldd: writing '/tmp/mtd16.bin': No space left on device
6 o# M: b2 z: J0 v% Y1+0 records in& |) _; c6 L# {5 Q# ]
0+0 records out: x* j8 O9 K& q# D& Q, t
0 bytes (0B) copied, 0.004745 seconds, 0B/s
! r2 w2 B$ ~9 }& |WAP(Dopra Linux) # cd /tmp# j- H" E' O6 G, n2 s
WAP(Dopra Linux) # cat /proc/mtd > mtd.log  Q3 D/ [1 a. l9 E$ ]+ d3 e4 q+ K
cat: write error: No space left on device
& C* X9 t6 y' g, ZWAP(Dopra Linux) # tar czvf fw.tar.gz *.bin mtd.log
2 f5 ]+ L8 W9 ^0 L3 v# @* Kmtd0.bin
8 u6 V6 Q# \( Cgzip: short write) U/ a; e. B- E; G
tar: write error: Broken pipe" h) ?( {% B* f/ ~
WAP(Dopra Linux) # tftp -p -l fw.tar.gz 192.168.1.1008 N# _; k4 y8 e' O
WAP(Dopra Linux) # rm -f  fw.tar.gz *.bin4 ?. B: c  {* ]
提示错误,因空间不足,备份文件只有0字节。
发表于 2017-12-14 10:06:30 | 显示全部楼层
WAP(Dopra Linux) # cat /proc/mtd > mtd.log
1 N2 }0 }9 O! g+ Lcat: write error: No space left on device
  g3 O( C/ o* p( p1 K在这里提示空间不足
发表于 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-6-18 11:09 , Processed in 0.027326 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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