can't access mmcblk0p8 on imx53 after using lava-partition-disk on board

Bug #1014498 reported by Spring Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA master image scripts
Won't Fix
Undecided
Unassigned

Bug Description

Detail see: http://paste.ubuntu.com/1046762/

Error: Error informing the kernel about modifications to partition /dev/mmcblk0p8 -- Invalid argument. This means Linux won't know about any changes you made to /dev/mmcblk0p8 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Error: Failed to add partition 8 (Invalid argument)

On Linux PC, all partition can be recognised. Doubt it's related with master image kernel.
Also if using fsidk on board, mmcblk0p8 exists:

root@linaro-ubuntu-desktop:~# fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 3973 MB, 3973054464 bytes
4 heads, 16 sectors/track, 121248 cylinders, total 7759872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

        Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 8191 4095+ da Non-FS data
/dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)
/dev/mmcblk0p3 114688 4194303 2039808 83 Linux
/dev/mmcblk0p4 4194304 7759871 1782784 5 Extended
/dev/mmcblk0p5 4196352 4327423 65536 c W95 FAT32 (LBA)
/dev/mmcblk0p6 4329472 6426623 1048576 83 Linux
/dev/mmcblk0p7 6428672 7452671 512000 83 Linux
/dev/mmcblk0p8 7454720 7759871 152576 c W95 FAT32 (LBA)

Revision history for this message
Yongqin Liu (liuyq0307) wrote :

This problem is related to the branch below:
https://code.launchpad.net/~liuyq0307/lava-master-image-scripts/add-sdcard

The original branch does not have the /dev/mmcblk0p8 partition

Revision history for this message
Yongqin Liu (liuyq0307) wrote :
Download full text (4.7 KiB)

origen seems also has the same problem:
(this is help by <davepigott>)

Partitioning disk to LAVA format

Command (m for help): Command action
   e extended
   p primary partition (1-4)
Selected partition 4
First sector (2097152-31260671, default 2097152): Last sector, +sectors or +size{K,M,G} (2097152-31260671, default 31260671): Using default value 31260671

Command (m for help): First sector (2099200-31260671, default 2099200): Using default value 2099200
Last sector, +sectors or +size{K,M,G} (2099200-31260671, default 31260671):
Command (m for help): Partition number (1-5): Hex code (type L to list codes): Changed system type of partition 5 to c (W95 FAT32 (LBA))

Command (m for help): First sector (2232320-31260671, default 2232320): Using default value 2232320
Last sector, +sectors or +size{K,M,G} (2232320-31260671, default 31260671):
Command (m for help): First sector (19011584-31260671, default 19011584): Using default value 19011584
Last sector, +sectors or +size{K,M,G} (19011584-31260671, default 31260671):
Command (m for help): First sector (23207936-31260671, default 23207936): Using default value 23207936
Last sector, +sectors or +size{K,M,G} (23207936-31260671, default 31260671): Using default value 31260671

Command (m for help): Partition number (1-8): Hex code (type L to list codes): Changed system type of partition 8 to c (W95 FAT32 (LBA))

Command (m for help):
Disk /dev/mmcblk0: 16.0 GB, 16005464064 bytes
255 heads, 63 sectors/track, 1945 cylinders, total 31260672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

        Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 8191 4095+ da Non-FS data
/dev/mmcblk0p2 * 8192 114687 53248 c W95 FAT32 (LBA)
/dev/mmcblk0p3 114688 2097151 991232 83 Linux
/dev/mmcblk0p4 2097152 31260671 14581760 5 Extended
/dev/mmcblk0p5 2099200 2230271 65536 c W95 FAT32 (LBA)
/dev/mmcblk0p6 2232320 19009535 8388608 83 Linux
/dev/mmcblk0p7 19011584 23205887 2097152 83 Linux
/dev/mmcblk0p8 23207936 31260671 4026368 c W95 FAT32 (LBA)

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Error: Error informing the kernel about modifications to partition /dev/mmcblk0p8 -- Invalid argument. This means Linux won't know about any changes you made to /dev/mmcblk0p8 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Error: Failed to add partition 8 (Invalid argument)
mkfs.vfat 3.0.9 (31 Jan 2010)
/dev/mmcblk0p8: No such file or directory
mkfs.vfat 3...

Read more...

Alan Bennett (akbennett)
Changed in lava-master-image-scripts:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.