1, get offset

# parted bone-debian-8.7-lxqt-4gb-armhf----4gb.img
GNU Parted 3.1
Using /workspace/bone-debian-8.7-lxqt-4gb-armhf----4gb.img
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: (file)
Disk /workspace/bone-debian-8.7-lxqt-4gb-armhf----4gb.img: 3565MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: Number Start End Size Type File system Flags
4194kB 3565MB 3561MB primary ext4 boot (parted) unit B
(parted) p
Model: (file)
Disk /workspace/bone-debian-8.7-lxqt-4gb-armhf----4gb.img: 3565158400B
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: Number Start End Size Type File system Flags
4194304B 3565158399B 3560964096B primary ext4 boot (parted)

get the ext4 partation offset 4194304

or u can use fdisk:

fdisk -l /workspace/bone-debian-8.7-lxqt-4gb-armhf----4gb.img

Disk /workspace/bone-debian-8.7-lxqt-4gb-armhf----4gb.img:  MB,  bytes,  sectors
Units = sectors of * = bytes
Sector size (logical/physical): bytes / bytes
I/O size (minimum/optimal): bytes / bytes
Disk label type: dos
Disk identifier: 0xca52207f Device Boot Start End Blocks Id System
/workspace/bone-debian-8.7-lxqt-4gb-armhf----4gb.img1 * Linux

the offset is 8192(sectors) * 512 = 4194304 Byte

2,mount

mount -o loop,ro,offset= bone-debian-8.7-lxqt-4gb-armhf----4gb.img  /mnt/

最新文章

  1. spring boot(三):Spring Boot中Redis的使用
  2. ubuntu14.04上Virtualbox安装win7(使用Ghost镜像安装,启用USB设备支持,设置共享目录)
  3. Shader的学习方法总结
  4. WCF服务创建与使用(请求应答模式)
  5. AndroidManifest File Features
  6. ARC的内存管理
  7. Emacs显示行号
  8. Unity3D流行的游戏开发人员构建高速检查站系统
  9. ubuntu 如何卸载重装docker
  10. PyCharm汉化、破解教程
  11. 【zc】 PHP中json_encode(编码) 与 json_decode(解码) 【aa】
  12. Beyond Compare 3添加右键菜单
  13. electron 使用 node-ffi 调用 C++ 动态链接库(DLL)
  14. linux yum+wget详解
  15. Navicat相关应用及注意事项
  16. Centos 7 安装Zabbix
  17. B - Network---UVA 315(无向图求割点)
  18. FROM_UNIXTIME(unix_timestamp), FROM_UNIXTIME(unix_timestamp,format)
  19. js之广告弹出自动关闭
  20. C++中rapidxml用法及例子(源码)

热门文章

  1. HackerRank-Python攻城歷程-3.List( Find the Second Largest Number )
  2. react的this.setState没有触发render
  3. aop (权限控制之功能权限)
  4. 大数据Hadoop——初识Hadoop
  5. laravel基础知识学习总结(路由、中间件、控制器)
  6. c++中的回调
  7. K3WISE常用表
  8. SVN-Failed to run the WC DB work queue associated with
  9. spring boot2.0(一 ) 基础环境搭建
  10. .NetCore WebApi 添加 Log4Net