找回密码
 加入我们

扫一扫,访问微社区

QQ登录

只需一步,快速开始

搜索
查看: 4938|回复: 11

[webOS开发] 修复变砖的方法,免刷机系统和数据备份或恢复的方法,供参考

[复制链接]
发表于 2011-9-20 21:00 | 显示全部楼层 |阅读模式
本帖最后由 laris 于 2011-9-21 09:32 编辑 2 X, H1 a+ n3 ]% \: [* Z1 [

( y  H2 W3 c: l) H( Z刚才重启发现不断重启了
% P9 r& ?* j4 ^" Q- R+ l0 z$ n: o; ~! k. P0 W
仔细想了下应该是我把busybox改为bash
& y* x/ l, a* m* D: k* p- a然后在/etc/passwd里将/bin/sh改成了/bin/bash6 J0 D; O+ t" E
而bash在/opt/bin/bash里
% H- B& O: d& b. J1 `0 j3 [0 c$ q所以开机的debug最后信息里显示:
  1. & B7 E. a8 ?$ I5 h0 m
  2. ext3-fs mounted filesystem with orderd data mode
    1 s% I$ [6 N- H% e9 ~2 l
  3. ; Q7 B6 X' I8 F, K) l7 E& f
  4. /sbin/init exec: line83 : /sbin/init No found
    5 l1 k$ W6 ?2 [# ]7 B5 f9 Y

  5. - `; `3 {- x( `& H
  6. Kernel panic - not syncing: Attempted to kill init!# I4 p+ |0 W0 l- v
  7. 4 w% F  e# T& D0 E2 D+ C
  8. rebooting in 15s
    & a- c; X2 _5 j# I
复制代码
杯具啊,可惜不能把flash摘下来直接挂载到系统下改啊。。。
2 y7 q8 i6 t' @1 S, B0 r: R4 A  _' `" Y0 r

评分

参与人数 1威望 +10 收起 理由
寂夜清风 + 10

查看全部评分

回复

使用道具 举报

 楼主| 发表于 2011-9-20 22:53 | 显示全部楼层
搞定7 k4 C5 w5 W7 r0 E4 h
http://www.webos-internals.org/wiki/How_To_Recover

  1. # Q6 U; U. {# @  F: m1 c* n$ U
  2. Doctor disconnects at 8%
    7 k; f- t2 @: b2 s$ ]- m: H) Z
  3. 4 p6 J. p% K! g) V
  4. If the webOS Doctor continually disconnects at 8%, then you probably have a corrupted USB drive. This is how you can fix that (note that this will completely and utterly destroy all data on the USB drive)." x& u  v. G" A/ j( a( N1 Y6 g# d
  5. % L  a" u# Z, y. O
  6. If you are reading this following an interrupted webOS Doctor, you might want to try to extract the installer uImage from the version that was there before the interrupted procedure. For example if you were upgrading from webOS 2.0.0 to webOS 2.1.0, you might want to try the uImage from the 2.0.0 webOS Doctor jar./ F: i7 q$ D0 U; y7 d

  7. ! q2 d) K1 ^& R  ]+ x; O. T5 S: P+ E
  8. First put the device into recovery mode, then memboot the device using the installer uImage (extracted from your webOS Doctor jar):  ?. i6 L+ S) q, |; K4 O8 V
  9. ( \" U6 w0 X+ C6 @7 L- u
  10. novacom boot mem:// < nova-installer-image-castle.uImage
    8 i5 }5 @3 q# Q
  11. ! |, t" S- T1 Q% z- ^- P
  12. After it boots, run novaterm:
    1 K& O5 ]6 T# G6 d

  13. ! U) H$ n. z& L
  14. novaterm$ B9 ]- B7 C' @

  15.   a2 J5 M: a/ F) `/ L( O
  16. Once connected to the device, type:0 O. `. G" K' a# r: k5 _
  17. - U' c5 G/ f" V3 \
  18. lvm.static vgscan --ignorelockingfailure
    / G3 z% ?. v6 B$ {! T8 }
  19. lvm.static vgchange -ay --ignorelockingfailure6 X" e( o% a. l/ {* _6 `
  20. ; _4 j# o- z% F% Z- g( b
复制代码

  1. 2 ]5 ~% ^/ j# O! Y4 |( n; P' L' E
  2. root@palm-webos:/dev/store# mkdir /tmp/root && mount root /tmp/root && cd /tmp/root/. e' m; F3 F! y+ i5 B. C  |* [

  3. 7 p( \2 B9 `. f2 n. T* i$ T( ]
  4. root@palm-webos:/tmp/root/bin# ln -sf busybox sh  v9 W1 n+ ^' o# g
  5. 6 p. E( @' `) K' q4 a( l! U
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-9-21 09:30 | 显示全部楼层
仔细想了一下' F- B" c2 A5 P+ @* Y: D) j
这个方法基本上可以解决以下问题:9 b+ {' S/ R+ X! d( H: p
只要bootloader没坏,rootfs没坏,就可以用这个方法备份系统和修复系统
; x8 h  k% F* ~$ ^" O0 E, [% \# P
5 {- j  }6 u( G换句话说,这个方法可以在界面启动不了或者无法连接的情况下(就是usb根本不认,不能识别成u盘或其它模式,我的情况是内核引导成功了但没有chroot到实际的系统,基本上就是系统都不能正常启动); w6 Z* h) E( T5 u
能把webos的系统和数据全部搞出来8 E" n; Z# e0 C' m- y
比如说你的短信或者u盘上的数据
$ d* U7 f# P$ X- X4 x* d  c7 Y或者说你打了某个补丁然后挂了,你想修复但没有办法,可以用这个办法把原始的文件恢复过去或者unpatch
  x2 t$ ~: v, G* v
0 X$ F" C& x/ T4 [; w0 V! I0 s以前一直想找这个办法但没找到,这次找到了希望对折腾坏系统又没办法备份数据的同学有用
回复 支持 反对

使用道具 举报

发表于 2011-9-21 10:39 | 显示全部楼层
好好学习天天向上
回复 支持 反对

使用道具 举报

发表于 2011-9-21 21:40 | 显示全部楼层
看不懂,祈祷我的别变砖就行了
回复 支持 反对

使用道具 举报

发表于 2011-9-22 13:25 | 显示全部楼层
请E文好的大哥帮助翻译一下,看不懂啊
回复 支持 反对

使用道具 举报

发表于 2011-9-22 23:34 | 显示全部楼层
laris 发表于 2011-9-20 22:53
2 x1 n, |3 u& e0 T搞定
7 k( v- P; Y5 J1 E  ahttp://www.webos-internals.org/wiki/How_To_Recover

; m( p' X# x! C  @7 S请问以上命令可以在WINDOWS下执行么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-9-23 08:50 | 显示全部楼层
可以,只要你装了driver,有novacom的驱动,能启动恢复模式
! n( q, {' }9 |& b0 i0 K8 Y) |4 n就可以在cmd里(windows的命令窗口)在命令行里操作7 c3 `/ u5 i$ n- x$ f: E

+ U. v  q- k4 M! W( h基本思路是将一个webos刷机时用的系统加载到palm上,然后那个系统在palm上启动后,挂载palm上的系统,进行修复或其它操作# Z) O' a. N5 d: e  }

! z4 q) K+ K- L. O7 N4 p1 H* @% N, }换句话说,如果你的bootloader没坏,就可以把palm硬件上的系统坏的部分给格了(官方文档是把存储那一块吧)9 s# I6 P3 U+ u4 _4 e
然后重装系统
回复 支持 反对

使用道具 举报

发表于 2011-9-27 22:43 | 显示全部楼层
LZ在不,手机变砖,求助
回复 支持 反对

使用道具 举报

发表于 2012-8-29 16:13 | 显示全部楼层
laris 发表于 2011-9-21 09:30
8 e) y' {/ m3 ^( f- i  e( X+ S" ^2 }8 p仔细想了一下% e; j' w, {1 E' n7 J8 b" q) d5 J
这个方法基本上可以解决以下问题:
& E4 S6 z3 G9 W2 T6 u1 s5 K只要bootloader没坏,rootfs没坏,就可以用这个方法备份 ...
4 s8 O. S; R% [" d$ G8 M) O
我在novaterm里面输入lvm.static vgchange -ay --ignorelockingfailure回车后,告诉我command not found,知道是什么问题吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-11-11 16:02 | 显示全部楼层
没连接到系统里吧
回复 支持 反对

使用道具 举报

发表于 2012-11-24 14:05 | 显示全部楼层
菜鸟学习。。。。。。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|吹友吧 ( 京ICP备05078561号 )

GMT+8, 2024-3-29 01:11 , Processed in 0.231372 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

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