Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
243 views
in Technique[技术] by (71.8m points)

linux kernel - Error while unmounting mmcblk1p1 on beaglebone black - during repartitioning and formatting

Hi I'm a newbie of embeded linux. I'm following this tutorial (https://e2e.ti.com/support/embedded/linux/f/354/t/398780?Script-to-Erase-Emmc-independently-Beagle-Bone-Black) for flashing my linux system to beaglebone eMMC. But I have an error: umount: can't umount /dev/mmcblk1p1: Invalid argument

This is my cmd :

Disk /dev/mmcblk1: 3825 MB, 3825205248 bytes
4 heads, 16 sectors/track, 116736 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk1p1   *        2048        2536       15648   e Win95 FAT16 (LBA)
/dev/mmcblk1p2               1        2047       65496  83 Linux

Partition table entries are not in disk order

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
[  235.274729]  mmcblk1: p1 p2

root@beaglebone:/# umount /dev/mmcblk1p1

umount: can't umount /dev/mmcblk1p1: Invalid argument

Sorry my English is not good. Does anybody have any idea of what did I do wrong or did I miss something?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This is an error in the script you are following. If you have created new partitions without a file system you would not expect them to be mounted.

Creating the 2nd partition in sectors 1 - 2047 is probably not what you want to do. You should use all the space after partition 1.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...