本文主要适用于飞凌OKMX6X-C平台Linux3.0.35操作系统,本文主要讲解eMMC增加分区两种方式,其他imx6Q平台也可以参考,但是不同厂家iMX6平台之间会存在差异,需自行修改以适应自己的使用。增加分区方法一(帮助理解分区)fdisk -l 查看系统上的硬盘,找到需要分区的硬盘:/dev/mmcblk0. 进入该设备:fdisk /dev/ mmcblk0此时出现: Command (m for help): 查看帮助信息:输入 m:看到如下信息 Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition 注:这是删除一个分区的动作; l list known partition types 注: l 是列出分区类型,以供我们设置相应分区的类型; m print this menu 注: m 是列出帮助信息; n add a new partition 注:添加一个分区; o create a new empty DOS partition table p print the partition table 注: p 列出分区表; q quit without saving changes 注:不保存退出; s create a new empty Sun disklabel t change a partition's system id 注: t 改变分区类型; u change display/entry units v verify the partition table w write table to disk and exit 注:把分区表写入硬盘并退出; x extra functionality (experts only) 注:扩展应用,专家功能; 具体每个参数的含义,请仔细阅读。常用的就是:d l m p q t w 列出当前操作硬盘的分区情况:用 p Command (m for help): nCommand action e extended p primary partition (1-4)添加主分区: 输入p Partition number (1-4): 2注:前面已经有一个主分区了,这个也算主分区从2 开始; First cylinder (1-238592, default 1):直接回车 Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-1600, default 1600):800(按照需求添加大小) Command (m for help): p Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes 4 heads, 16 sectors/track, 238592 cylinders Units = cylinders of 64 * 512 = 32768 bytes Command (m for help): nCommand action e extended p primary partition (1-4)添加主分区: 输入p Partition number (1-4): 3First cylinder (801-238592, default 801): 801Last cylinder or +size or +sizeM or +sizeK (801-1600, default 1600):回车 Using default value 1600输入w 保存并退出 Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table fdisk -l 即可看到增加的分区 |
共1条
1/1 1 跳转至页
iMX6Q应用笔记-eMMC增加分区

关键词: 飞凌嵌入式 iMX6Q
共1条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 |