Storage partitions

cancel
Showing results for 
Search instead for 
Did you mean: 

Storage partitions

710 Views
patcharasirigul
Contributor II

Hello everyone,

     I have a question about creating storage partitions without MFGTool. I have used mksdcard-android.sh to create partitions but It does't works. It shows :

patchara@ubuntu:~/myandroid$ sudo ./mksdcard-android.sh /dev/sdb

1+0 records in

1+0 records out

1024 bytes (1.0 kB) copied, 0.0188542 s, 54.3 kB/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/sdb: 1016 cylinders, 121 heads, 62 sectors/track

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

/dev/sdb: unrecognized partition table type

Old situation:

No partitions found

Warning: given size (2664) exceeds max allowable size (2611)

New situation:

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

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/sdb1         0+    18-    19-     18754+  83  Linux

/dev/sdb2        18+    29-    11-     11253   83  Linux

/dev/sdb3        29+  1109-  1081-   1106545    5  Extended

/dev/sdb4      1109+  3772-  2664-   2726977   83  Linux

/dev/sdb5        29+   542-   513-    525139+  83  Linux

/dev/sdb6       542+  1054-   513-    525139+  83  Linux

/dev/sdb7      1054+  1065-    11-     11252+  83  Linux

/dev/sdb8      1065+  1076-    11-     11252+  83  Linux

Warning: partition 4 extends past end of disk

Successfully wrote the new partition table

Re-reading the partition table ...

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 ...

OK

Disk /dev/sdb: 1016 cylinders, 121 heads, 62 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/sdb1         0+    18-    19-     18754+  83  Linux

/dev/sdb2        18+    29-    11-     11253   83  Linux

/dev/sdb3        29+  1109-  1081-   1106545    5  Extended

/dev/sdb4      1109+  3772-  2664-   2726977   83  Linux

/dev/sdb5        29+   542-   513-    525139+  83  Linux

/dev/sdb6       542+  1054-   513-    525139+  83  Linux

/dev/sdb7      1054+  1065-    11-     11252+  83  Linux

/dev/sdb8      1065+  1076-    11-     11252+  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/sdb1         7+    18-    11-     11253   83  Linux

/dev/sdb2        18+    29-    11-     11253   83  Linux

/dev/sdb3        29+  1109-  1081-   1106545    5  Extended

/dev/sdb4      1109+  3772-  2664-   2726977   83  Linux

/dev/sdb5        29+   542-   513-    525139+  83  Linux

/dev/sdb6       542+  1054-   513-    525139+  83  Linux

/dev/sdb7      1054+  1065-    11-     11252+  83  Linux

/dev/sdb8      1065+  1076-    11-     11252+  83  Linux

Warning: partition 4 extends past end of disk

Successfully wrote the new partition table

Re-reading the partition table ...

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).)

patchara@ubuntu:~/myandroid$

When I used the gparted for checking partitions, It's not show partitions like a table partitions of Android_User's_Guide.pdf in page 13.

Could you help me check my solution ?

Why is not it work ?

Thank you so much.

Labels (3)
2 Replies

107 Views
gusarambula
NXP TechSupport
NXP TechSupport

Would you please try with the attached script?

Please let us know if this helps or if you continue having trouble and please also mention the Android version you’re using.

107 Views
vipulkumar
Contributor III

Hi,

I am using Android Marshmallow and when I am trying to create partitions on SD card; I am getting this warning:

Warning: partition 4 extends past end of disk

When I am trying to boot board from this card, I am getting this message :

mmcblk2: p4 size 12254486 extends beyond EOD, truncated
random: nonblocking pool is initialized

My kernel is getting stuck at this point.

0 Kudos