CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 15847|回复: 11

SATA看来不是很稳定,解压一个1G多的文件硬盘挂掉了。

[复制链接]
发表于 2013-4-4 15:51:32 | 显示全部楼层 |阅读模式
SATA看来不是很稳定,解压一个1G多的文件硬盘挂掉了。

root@localhost:/mnt/files/uploader# bzip2 -d cubie.img.bz2
bzip2: I/O or other error, bailing out.  Possible reason follows.
bzip2: Input/output error
        Input file = cubie.img.bz2, output file = cubie.img
bzip2: Deleting output file cubie.img, if it exists.
bzip2: WARNING: deletion of output file (apparently) failed.


root@localhost:/mnt/files/uploader# ls -lsa
total 5825628
      4 drwxr-xr-x 2 uploader uploader       4096 Apr  4 07:14 .
      4 drwxr-xr-x 3     1002     1003       4096 Apr  4 06:59 ..
4156164 -rw------- 1 root     root     4255907840 Apr  4 07:38 cubie.img
1611676 -rw-r--r-- 1 uploader uploader 1650350545 Apr  4 07:06 cubie.img.bz2
  57780 -rw-r--r-- 1 uploader uploader   59163584 Apr  4 07:00 test100.zip


root@localhost:/mnt/files/uploader# rm cubie.img
rm: cannot remove `cubie.img': Read-only file system


root@localhost:/mnt/files/uploader# rm cubie.img -rf
rm: cannot remove `cubie.img': Read-only file system


root@localhost:/mnt/files/uploader# ls -lsa
total 5825628
      4 drwxr-xr-x 2 uploader uploader       4096 Apr  4 07:14 .
      4 drwxr-xr-x 3     1002     1003       4096 Apr  4 06:59 ..
4156164 -rw------- 1 root     root     4255907840 Apr  4 07:38 cubie.img
1611676 -rw-r--r-- 1 uploader uploader 1650350545 Apr  4 07:06 cubie.img.bz2
  57780 -rw-r--r-- 1 uploader uploader   59163584 Apr  4 07:00 test100.zip


root@localhost:/mnt/files/uploader# chmod 644 cubie.img
chmod: changing permissions of `cubie.img': Read-only file system

#dmesg

[ 1627.380000] EXT4-fs error (device sda1): ext4_journal_start_sb:328: Detected aborted journal[ 1627.400000] EXT4-fs (sda1): Remounting filesystem read-only[ 1627.420000] EXT4-fs (sda1): previous I/O error to superblock detected[ 1627.430000] sd 0:0:0:0: [sda] Unhandled error code[ 1627.430000] sd 0:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00[ 1627.430000] sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 08 00 00 00 08 00[ 1627.430000] end_request: I/O error, dev sda, sector 2048[ 1627.440000] Buffer I/O error on device sda1, logical block 0[ 1627.450000] lost page write due to I/O error on sda1[ 1627.450000] EXT4-fs (sda1): ext4_da_writepages: jbd2_start: 2383 pages, ino 1048580; err -30[ 2148.010000] EXT4-fs (sda1): previous I/O error to superblock detected[ 2148.020000] sd 0:0:0:0: [sda] Unhandled error code[ 2148.020000] sd 0:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00[ 2148.020000] sd 0:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 00 08 00 00 00 08 00[ 2148.020000] end_request: I/O error, dev sda, sector 2048[ 2148.030000] Buffer I/O error on device sda1, logical block 0[ 2148.040000] lost page write due to I/O error on sda1[ 2148.040000] EXT4-fs error (device sda1): ext4_put_super:844: Couldn't clean up the journal[ 2152.130000] sd 0:0:0:0: [sda] Unhandled error code[ 2152.130000] sd 0:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00[ 2152.130000] sd 0:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 00 08 02 00 00 02 00[ 2152.130000] end_request: I/O error, dev sda, sector 2050[ 2152.140000] EXT4-fs (sda1): unable to read superblock

root@localhost:/mnt# fsck.ext4 /dev/sda1e2fsck 1.42.5 (29-Jul-2012)fsck.ext4: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda1Could this be a zero-length partition?


回复

使用道具 举报

发表于 2013-4-4 19:32:05 | 显示全部楼层
硬盘是怎么接的电?电流是多少A?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-5 01:05:40 | 显示全部楼层
从MiniUSB供电的,电流是2A的(iPad 2,2A电源)。跑gzip2 -d cubie.img.bz2 ,跑了10来分钟,
硬盘彻底挂掉了。fdisk  在分区保存的时候,直接写失败。主备superblock都读不出来。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-5 01:07:30 | 显示全部楼层
电源从MiniUSB接的,硬盘坏了后,换了一块硬盘,MiniUSB跟电源都接上电,目前硬盘都正常。

本帖子中包含更多资源

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

x
回复 支持 反对

使用道具 举报

发表于 2013-4-5 04:51:11 | 显示全部楼层
淘宝有卖5V 4A的电源 可以试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-5 04:54:32 | 显示全部楼层
估计不是电源的问题,而是MiniUSB阻抗导致降压。2A的电流绝对够了。
回复 支持 反对

使用道具 举报

发表于 2013-4-5 16:20:18 | 显示全部楼层
你确定不是内核的问题??

我以前遇到过那种不稳定的内核,导致文件系统崩溃,,还得我烧写了20+次,最后才找到一个好用的内核
回复 支持 反对

使用道具 举报

发表于 2013-4-6 00:34:59 | 显示全部楼层
系统是运行在什么上?用的是哪个系统?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-4-6 17:13:52 | 显示全部楼层
linaro ubuntu server 版,用berry boot 装的. 我估计还是电源问题。
kernel: Linux localhost.localdomain 3.4.24-a10-aufs+ #1 PREEMPT Sun Jan 27 00:28:21 CET 2013 armv7l armv7l armv7l GNU/Linux
回复 支持 反对

使用道具 举报

发表于 2013-4-9 14:02:37 | 显示全部楼层
不排除是电源线的问题。前面有批电源线存在少量铜芯过细的问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-3-29 18:03 , Processed in 0.026497 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部