我小白一个,之前买的mbl是刷了somewood的固件,不知怎么的最近摔了一下就黄灯直亮无法进入系统,所谓就是变砖了。研究了国外mbl论坛,终于总结出修砖不删除文件的方法,之前见论坛大大有发过修砖说明,不过是会格式化硬盘的,现在介绍给大家新的方法。
这个教程适合ssh也无法连接,只能拆机刷的情况下的方法。
(刷机有风险,请大家谨慎选择)
一 修砖前需要达到以下要求!
修砖需要拆机,拆机教程可以百度搜索到
取出来的硬盘需要esata转usb的盒子连接电脑,或者有台式机的可以插到硬盘槽
需要安装ubuntu linux操作系统
需要下载mbl官网固件(.deb结尾文件)安装7zip解压得到 rootfs.img 文件大约2gb左右
(http://download.wdc.com/nas/apnc-024303-022-20130916.deb)
二刷机开始
网上其他的方法都很复杂,而且容易做错,我总结出一个国外大神的方法:
1.启动ubuntu系统
2.将硬盘连接到电脑
3下载我上传的debricker.sh脚本或者可以查看底下代码,然后拷贝到ubuntu系统 home/你的用户名/ 根目录下
4把下载好的rootfs.img文件也拷贝到ubuntu系统 home/你的用户名/ 根目录下
5打开ubuntu自带的Gparted 程序,查看mbl硬盘盘符,我的是dev/sdb
6打开Terminal 终端程序
7输入以下代码即可一键修砖(大约需要40分钟)
首先输入- 安装系统过程中需要用到Mdadm和Gcc两个软件,后者在Ubuntu中已安装,这里只需安装Mdadm。打开Terminal终端,依次输入以下命令,每一行输入完毕按回车键(下同)。
- sudo apt-get update
- sudo apt-get install mdadm
复制代码 然后输入- sudo bash ./debricker /dev/sdb /home/你的用户名/rootfs.img
复制代码 接下来需要按几次键盘y来确认,如果成功修砖,terminal脚本运行如下- marc@marc-HP-Compaq-dx2200-MT:~$ sudo bash debricker.sh /dev/sdb /home/marc/rootfs.img
- ********************** DISK **********************
- script will use the following disk:
- Model: ATA WDC WD30EZRS-11J (scsi)
- Disk /dev/sdb: 3001GB
- Sector size (logical/physical): 512B/4096B
- Partition Table: gpt
- Number Start End Size File system Name Flags
- 3 15.7MB 528MB 513MB primary
- 1 528MB 2576MB 2048MB primary raid
- 2 2576MB 4624MB 2048MB ext3 primary raid
- 4 4624MB 3001GB 2996GB ext4 primary
- is this REALLY the disk you want? [y] y
- ********************** IMAGE **********************
- ********************** IMPLEMENTATION **********************
- everything is now prepared!
- device: /dev/sdb
- image_img: /home/marc/rootfs.img
- destroy: false
- this is the point of no return, continue? [y] y
- mdadm: size set to 1999808K
- mdadm: array /dev/md0 started.
- mke2fs 1.41.14 (22-Dec-2010)
- Filesystem label=
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- Stride=1 blocks, Stripe width=1 blocks
- 125184 inodes, 499952 blocks
- 24997 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=515899392
- 16 block groups
- 32768 blocks per group, 32768 fragments per group
- 7824 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912
- Checking for bad blocks (read-only test): done
- Writing inode tables: done
- Creating journal (8192 blocks): done
- Writing superblocks and filesystem accounting information: done
- This filesystem will be automatically checked every 20 mounts or
- 180 days, whichever comes first. Use tune2fs -c or -i to override.
- mdadm: cannot find valid superblock in this array - HELP
- synchronize raid... done
- copying image to disk...
- dd: writing to `/dev/md0': Input/output error
- 1+0 records in
- 0+0 records out
- 0 bytes (0 B) copied, 0.0203363 s, 0.0 kB/s
- mount: you must specify the filesystem type
- cp: cannot stat `/mnt/md0/usr/local/share/bootmd0.scr': No such file or directory
- debricker.sh: line 359: /mnt/md0/etc/nas/service_startup/ssh: No such file or directory
- umount: /mnt/md0: not mounted
- mdadm: stopped /dev/md0
- /dev/sdb1: Read-only file system
- /dev/sdb2: Read-only file system
- all done! device should be debricked!
复制代码
debricker.sh文件下载(把.zip后缀去掉)
debricker.sh.zip
(10.51 KB, 下载次数: 142)
|