嵌入式爱好者

查看: 13063|回复: 7

[Linux] 使用SD卡制作启动盘时,SD Card is not correctly partitioned。。

[复制链接]

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

扫一扫,手机访问本帖
发表于 2016-3-9 13:43:16 | 显示全部楼层 |阅读模式
第一步就这样了,,,请教各位大神帮忙解答一下:
#  major   minor    size   name
1:   8       16    3872256 sdb

Enter Device Number: 1


sdb was selected

Checking the device is unmounted
df: ‘/mnt/hgfs’: Protocol error
df: ‘/mnt/hgfs’: Protocol error
df: ‘/mnt/hgfs’: Protocol error

sdb1  sdb2   sdb3


SD Card is not correctly partitioned

################################################################################

        Select 2 partitions if only need boot and rootfs (most users)
        Select 3 partitions if need SDK & CCS on SD card.  This is usually used
        by device manufacturers with access to partition tarballs.

        ****WARNING**** continuing will erase all data on sdb

################################################################################

Number of partitions needed [2/3] :

回复

使用道具 举报

153

主题

3910

帖子

4207

积分

AM5718通行证AM335x通行证i.MX6UL通行证i.MX RT通行证i.MX6Q通行证XX18通行证TCU通行证FCU1401通行证FCU1301通行证FCU11xx通行证

发表于 2016-3-9 14:45:38 | 显示全部楼层
本帖最后由 飞凌-unix 于 2016-3-9 15:10 编辑

输入选项2接着执行试试,不行的话,您的sd卡里边是不是有分区,可以先用windows工具格式化成一个分区试试;或者您再看看您的虚拟机里边是不是缺少什么工具。
技术支持电话:0312-3119192
技术支持邮箱:Linux@forlinx.com
点评回复 支持 反对

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2016-3-11 16:05:11 | 显示全部楼层
我是先用windows格式成FAT32了,空的,什么都没放,然后进去执行的create-sdcard.sh,每次都能认出为sdb1,但是提示:SD Card is not correctly partitioned。继续往 下执行的结果如下:
Availible Drives to write images to:

#  major   minor    size   name
1:   8       16    3872256 sdb

Enter Device Number: 1


sdb was selected

Checking the device is unmounted

sdb1  sdb2   sdb3


SD Card is not correctly partitioned

################################################################################

        Select 2 partitions if only need boot and rootfs (most users)
        Select 3 partitions if need SDK & CCS on SD card.  This is usually used
        by device manufacturers with access to partition tarballs.

        ****WARNING**** continuing will erase all data on sdb

################################################################################

Number of partitions needed [2/3] : 2


Now partitioning sdb with 2 partitions...


################################################################################

                Now ** 2 partitions

################################################################################

记录了1024+0 的读入
记录了1024+0 的写出
1048576字节(1.0 MB)已复制,0.264477 秒,4.0 MB/秒
DISK SIZE - 3965190144 bytes
sfdisk:无效选项 -- D

Usage:
sfdisk [options] <dev> [[-N] <part>]
sfdisk [options] <command>

Display or manipulate a disk partition table.

Commands:
-A, --activate <dev> [<part> ...] list or set bootable MBR partitions
-d, --dump <dev>                  dump partition table (usable for later input)
-g, --show-geometry [<dev> ...]   list geometry of all or specified devices
-l, --list [<dev> ...]            list partitions of each device
-s, --show-size [<dev> ...]       list sizes of all or specified devices
-T, --list-types                  print the recognized types (see -X)
-V, --verify                      test whether partitions seem correct

--part-label <dev> <part> [<str>] print or change partition label
--part-type <dev> <part> [<type>] print or change partition type
--part-uuid <dev> <part> [<uuid>] print or change partition uuid
--part-attrs <dev> <part> [<str>] print or change partition attributes

<dev>                     device (usually disk) path
<part>                    partition number
<type>                    partition type, GUID for GPT, hex for MBR

选项:
-a, --append              append partitions to existing partition table
-b, --backup              backup partition table sectors (see -O)
     --bytes               print SIZE in bytes rather than in human readable format
-f, --force               disable all consistency checking
     --color[=<when>]      colorize output (auto, always or never)
                             colors disabled by default
-N, --partno <num>        specify partition number
-n, --no-act              do everything except write to device
     --no-reread           do not check whether the device is in use
-O, --backup-file <path>  override default backup file name
-o, --output <list>       output columns
-q, --quiet               suppress extra info messages
-X, --label <name>        specify label type (dos, gpt, ...)
-Y, --label-nested <name> specify nested label type (dos, bsd)

-L, --Linux               deprecated, only for backward compatibility
-u, --unit S              deprecated, only sector unit is supported

-h, --help     display this help and exit
-v, --version  output version information and exit

Available columns (for -o):
gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S
      Start-C/H/S
bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
sgi: Device Start End Sectors Cylinders Size Type Id Attrs
sun: Device Start End Sectors Cylinders Size Type Id Flags

For more details see sfdisk(8).

################################################################################

                Partitioning Boot

################################################################################
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows
/dev/sdb1: No such file or directory

################################################################################

                Partitioning rootfs

################################################################################
mke2fs 1.42.12 (29-Aug-2014)
The file /dev/sdb2 does not exist and no size was specified.


################################################################################

   Partitioning is now done
   Continue to install filesystem or select 'n' to safe exit

   **Warning** Continuing will erase files any files in the partitions

################################################################################


Would you like to continue? [y/n] : n


mount: special device /dev/sdb1 does not exist
mount: special device /dev/sdb2 does not exist

每次都是提示 不存在。。。。
点评回复 支持 反对

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2016-3-11 16:06:21 | 显示全部楼层
一般这种情况,会是缺少什么工具呢?
点评回复 支持 反对

使用道具 举报

3

主题

7

帖子

22

积分

AM335x通行证i.MX6UL通行证

发表于 2017-8-5 01:30:03 | 显示全部楼层
请问楼主解决了吗?
点评回复 支持 反对

使用道具 举报

3

主题

7

帖子

22

积分

AM335x通行证i.MX6UL通行证

发表于 2017-8-5 01:31:43 | 显示全部楼层
我也碰到了这样的问题
点评回复 支持 反对

使用道具 举报

1

主题

3669

帖子

3917

积分

发表于 2017-8-7 11:51:04 | 显示全部楼层
kavieen 发表于 2016-3-11 16:06
一般这种情况,会是缺少什么工具呢?

您好:
    您的问题是否解决了,查到具体是什么原因了吗
技术支持电话:0312-3119192
技术支持邮箱:Android@forlinx.com
点评回复 支持 反对

使用道具 举报

0

主题

1

帖子

12

积分

AM335x通行证

发表于 2017-8-29 11:12:36 | 显示全部楼层
同样的问题{:2_36:}{:2_34:}
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-4-19 13:05

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表