explor img file
2024-10-19 07:29:18
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/
最新文章
- spring boot(三):Spring Boot中Redis的使用
- ubuntu14.04上Virtualbox安装win7(使用Ghost镜像安装,启用USB设备支持,设置共享目录)
- Shader的学习方法总结
- WCF服务创建与使用(请求应答模式)
- AndroidManifest File Features
- ARC的内存管理
- Emacs显示行号
- Unity3D流行的游戏开发人员构建高速检查站系统
- ubuntu 如何卸载重装docker
- PyCharm汉化、破解教程
- 【zc】 PHP中json_encode(编码) 与 json_decode(解码) 【aa】
- Beyond Compare 3添加右键菜单
- electron 使用 node-ffi 调用 C++ 动态链接库(DLL)
- linux yum+wget详解
- Navicat相关应用及注意事项
- Centos 7 安装Zabbix
- B - Network---UVA 315(无向图求割点)
- FROM_UNIXTIME(unix_timestamp), FROM_UNIXTIME(unix_timestamp,format)
- js之广告弹出自动关闭
- C++中rapidxml用法及例子(源码)
热门文章
- HackerRank-Python攻城歷程-3.List( Find the Second Largest Number )
- react的this.setState没有触发render
- aop (权限控制之功能权限)
- 大数据Hadoop——初识Hadoop
- laravel基础知识学习总结(路由、中间件、控制器)
- c++中的回调
- K3WISE常用表
- SVN-Failed to run the WC DB work queue associated with
- spring boot2.0(一 ) 基础环境搭建
- .NetCore WebApi 添加 Log4Net