Having trouble partitioning SD card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Having trouble partitioning SD card

2,014 Views
jsherman10
Contributor I

Hello, I currently just purchased an imx6q board and I'm trying to put Android 5.0.0 on it.  I'm running into some difficulties trying to partition the SD card.  When I run the mksdcard-android.sh on my SD card, I get the following errors ( I've made sure the card is unmounted (umount /dev/sdc) before I run the script):

1+0 records in

1+0 records out

1024 bytes (1.0 kB) copied, 0.000188717 s, 5.4 MB/s

Checking that no-one is using this disk right now ...

BLKRRPART: Device or resource busy

This disk is currently in use - repartitioning is probably a bad idea.

Umount all file systems, and swapoff all swap partitions on this disk.

Use the --no-reread flag to suppress this check.

Disk /dev/sdc: 29476 cylinders, 64 heads, 32 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature

/dev/sdc: unrecognized partition table type

Old situation:

No partitions found

Warning: given size (28412) exceeds max allowable size (28372)

New situation:

Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/sdc1         0+    15     16-     16383+  83  Linux

/dev/sdc2        16     23      8       8192   83  Linux

/dev/sdc3        24   1103   1080    1105920    5  Extended

/dev/sdc4      1104  29515  28412   29093888   83  Linux

/dev/sdc5        24+   535    512-    524287+  83  Linux

/dev/sdc6       536+  1047    512-    524287+  83  Linux

/dev/sdc7      1048+  1055      8-      8191+  83  Linux

/dev/sdc8      1056+  1061      6-      6143+  83  Linux

/dev/sdc9      1062+  1063      2-      2047+  83  Linux

Warning: partition 4 extends past end of disk

Successfully wrote the new partition table

Re-reading the partition table ...

BLKRRPART: Device or resource busy

The command to re-read the partition table failed.

Run partprobe(8), kpartx(8) or reboot your system now,

before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

Checking that no-one is using this disk right now ...

BLKRRPART: Device or resource busy

This disk is currently in use - repartitioning is probably a bad idea.

Umount all file systems, and swapoff all swap partitions on this disk.

Use the --no-reread flag to suppress this check.

Disk /dev/sdc: 29476 cylinders, 64 heads, 32 sectors/track

Old situation:

Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/sdc1         0+    15     16-     16383+  83  Linux

/dev/sdc2        16     23      8       8192   83  Linux

/dev/sdc3        24   1103   1080    1105920    5  Extended

/dev/sdc4      1104  29515  28412   29093888   83  Linux

/dev/sdc5        24+   535    512-    524287+  83  Linux

/dev/sdc6       536+  1047    512-    524287+  83  Linux

/dev/sdc7      1048+  1055      8-      8191+  83  Linux

/dev/sdc8      1056+  1061      6-      6143+  83  Linux

/dev/sdc9      1062+  1063      2-      2047+  83  Linux

New situation:

Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/sdc1         8     15      8       8192   83  Linux

/dev/sdc2        16     23      8       8192   83  Linux

/dev/sdc3        24   1103   1080    1105920    5  Extended

/dev/sdc4      1104  29515  28412   29093888   83  Linux

/dev/sdc5        24+   535    512-    524287+  83  Linux

/dev/sdc6       536+  1047    512-    524287+  83  Linux

/dev/sdc7      1048+  1055      8-      8191+  83  Linux

/dev/sdc8      1056+  1061      6-      6143+  83  Linux

/dev/sdc9      1062+  1063      2-      2047+  83  Linux

Warning: partition 4 extends past end of disk

Successfully wrote the new partition table

Re-reading the partition table ...

BLKRRPART: Device or resource busy

The command to re-read the partition table failed.

Run partprobe(8), kpartx(8) or reboot your system now,

before using mkfs

If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)

to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

Any thoughts?

Labels (3)
0 Kudos
1 Reply

1,183 Views
b36401
NXP Employee
NXP Employee

Please make sure that SD card was not automounted.   

I mean that possibly when the script created fresh partition on SD card this partition was automounted with the system.

Please try to disable automount option on your PC.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos