免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1941 | 回复: 1
打印 上一主题 下一主题

[文件系统] [文件系统] 如何读取ext4 镜像文件的信息? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-07-22 10:53 |只看该作者 |倒序浏览
请问在linux下,或者Android编译完后的out/host/... 目录下有读取system.img, usrdata.img ext4 格式信息的工具吗?

论坛徽章:
0
2 [报告]
发表于 2014-07-22 14:25 |只看该作者
刚刚有问到大神,

dumpe2fs 这个工具可以show 出来。
不过手机上大多数ext4的img都是spase的,可能需要用 simg2img 转一下格式。

$ dumpe2fs system_raw.img
dumpe2fs 1.42 (29-Nov-2011)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          57f8f4bc-abf4-655f-bf67-946fc0f9f25b
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal resize_inode filetype extent sparse_super large_file
Default mount options:    (none)
Filesystem state:         clean
Errors behavior:          Remount read-only
Filesystem OS type:       Linux
Inode count:              19200
Block count:              76800
Reserved block count:     0
Free blocks:              25531
Free inodes:              18112
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      23
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         6400
Inode blocks per group:   400
Last mount time:          n/a
Last write time:          Thu Jan  1 08:00:00 1970
Mount count:              0
Maximum mount count:      -1
Last checked:             Thu Jan  1 08:00:00 1970
Check interval:           0 (<none>)
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:                  256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
Default directory hash:   tea
Journal backup:           inode blocks
Journal features:         (none)
Journal size:             4800k
Journal length:           1200
Journal sequence:         0x00000001
Journal start:            0


Group 0: (Blocks 0-32767)
  Primary superblock at 0, Group descriptors at 1-1
  Reserved GDT blocks at 2-24
  Block bitmap at 25 (+25), Inode bitmap at 26 (+26)
  Inode table at 27-426 (+27)
  1 free blocks, 5312 free inodes, 50 directories
  Free blocks: 32767
  Free inodes: 1089-6400
Group 1: (Blocks 32768-65535)
  Backup superblock at 32768, Group descriptors at 32769-32769
  Reserved GDT blocks at 32770-32792
  Block bitmap at 32793 (+25), Inode bitmap at 32794 (+26)
  Inode table at 32795-33194 (+27)
  14668 free blocks, 6400 free inodes, 0 directories
  Free blocks: 50868-65535
  Free inodes: 6401-12800
Group 2: (Blocks 65536-76799)
  Block bitmap at 65536 (+0), Inode bitmap at 65537 (+1)
  Inode table at 65538-65937 (+2)
  10862 free blocks, 6400 free inodes, 0 directories
  Free blocks: 65938-76799
  Free inodes: 12801-19200
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP