Reply
Thread Tools
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#1
I have repartitioned my eMMC and now I have 10 partitions on it.

Partition managers like sfdisk and parted correctly see all partitions but unfortunately Maemo recognizes only first seven partitions (no /dev/mmcblk0p8, /dev/mmcblk0p9, /dev/mmcblk0p10).

I think it is something related to udev's configuration, but where is the value to change ?
 
ammyt's Avatar
Posts: 1,918 | Thanked: 3,118 times | Joined on Oct 2010 @ My pants
#2
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#3
Originally Posted by Fabry View Post
I have repartitioned my eMMC and now I have 10 partitions on it.

Partition managers like sfdisk and parted correctly see all partitions but unfortunately Maemo recognizes only first seven partitions (no /dev/mmcblk0p8, /dev/mmcblk0p9, /dev/mmcblk0p10).

I think it is something related to udev's configuration, but where is the value to change ?
The mmc kernel driver only supports 7 partitions per device. You need to modify this driver in order to use more partitions. This might have compatibility issues, since the block minor number of your /dev/mmcblk0p9 will likely be the same as standard /dev/mmcblk1p1.

Another option is to use dm (device mapper) which can move all partitioning to user space. See kpartx.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following 2 Users Say Thank You to Matan For This Useful Post:
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#4
Originally Posted by ammyt View Post
10 partitiions! Whoosh why?
In physical order they are:
  • /dev/mmcblk0p1 is MyDocs and it is now 10GB
  • /dev/mmcblk0p4 is an extend partition (32KB only)
  • /dev/mmcblk0p5 is a 2GB logical partition (which now contains Nitdroid 0.0.9 manually installed)
  • /dev/mmcblk0p6 is a 2GB logical partition for testing purpose (i.e. reserved for Gingerbread)
  • /dev/mmcblk0p7 is a 4GB logical partition for testing purpose (i.e kubuntu, fedora, ...etc)
  • /dev/mmcblk0p8 is a 4GB logical partition for testing purpose (i.e kubuntu, fedora, ...etc)
  • /dev/mmcblk0p9 is a near 256MB logical partition for u-boot files (kernels, scripts, emergency rescue system, ...etc)
  • /dev/mmcblk0p10 is a 2GB logical partition for testing purpose (i.e. reserved for MeeGo 1.2).
    This partition is here also because in the future I will always be able to delete it and then extend OptFS from 4GB to 6GB
  • /dev/mmcblk0p2 is OptFS and now it is 4GB
  • /dev/mmcblk0p3 is swap area and now it is 1.5GB
 

The Following User Says Thank You to Fabry For This Useful Post:
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#5
Originally Posted by Matan View Post
The mmc kernel driver only supports 7 partitions per device. You need to modify this driver in order to use more partitions. This might have compatibility issues, since the block minor number of your /dev/mmcblk0p9 will likely be the same as standard /dev/mmcblk1p1.

Another option is to use dm (device mapper) which can move all partitioning to user space. See kpartx.
I have seen that the problem is still present under MeeGo's kernel.

So since one partition slot is lost by extended partition the max number under N900 is six partitions.

This is a big problem for my plans
 
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#6
I have changed my partition table to this layout (but I am unhappy for this):
  • /dev/mmcblk0p1 is MyDocs and it is now 10GB
  • /dev/mmcblk0p4 is an extend partition (32KB only)
  • /dev/mmcblk0p5 is a 4GB logical partition (which now contains Nitdroid 0.0.9 manually installed)
  • /dev/mmcblk0p6 is a 8GB logical partition for testing purpose (i.e. kubuntu, fedora, GingerBread...etc)
  • /dev/mmcblk0p7 is a near 2.25GB logical partition for testing purpose (i.e. reserved for MeeGo 1.2)
  • /dev/mmcblk0p2 is OptFS and now it is 4GB
  • /dev/mmcblk0p3 is swap area and now it is 1.5GB
 
humble's Avatar
Posts: 355 | Thanked: 395 times | Joined on Dec 2009 @ USA
#7
Originally Posted by Matan View Post
Another option is to use dm (device mapper) which can move all partitioning to user space. See kpartx.
or gnu parted (that comes with libdevmapper.so.1.02 too)

look in my sig
__________________
Would you like to Donate?

My"Current Project(s)":
[Resurrecting] DON
 
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#8
Originally Posted by humble View Post
or gnu parted (that comes with libdevmapper.so.1.02 too)

look in my sig
Yes Parted sees all partitions (I have used it to make them) but then is the kernel that doesn't load a dev node for all partitions with number beyond of 7 so you can't mount them

Last edited by Fabry; 2010-12-27 at 19:20.
 
humble's Avatar
Posts: 355 | Thanked: 395 times | Joined on Dec 2009 @ USA
#9
Originally Posted by Fabry View Post
Yes Parted sees all partitions (I have used it to make them) but then is the kernel that doesn't load a dev node for all partitions with number beyond of 7 so you can't mount them
its good to see we are on the same page. look at what i quoted i've have to had read that post
__________________
Would you like to Donate?

My"Current Project(s)":
[Resurrecting] DON
 
Posts: 1,224 | Thanked: 1,763 times | Joined on Jul 2007
#10
I am afraid you don't understand.

Device mapper is a kernel subsystem that allows creating virtual block devices and mapping them to real devices.

You can for example create a device called /dev/dm9 which is a device of size 4GB starting at 24GB of /dev/mmcblk0. This way, even if you don't have an mmc block device for this partition, you can still use it.

kpartx is a tool that automates this. You point it to a block device, and it creates a dm device for each partition on the device, regardless of partition number limitations of the underlying block device driver.
__________________
My repository

"N900 community support for the MeeGo-Harmattan" Is the new "Mer is Fremantle for N810".

No more Nokia devices for me.
 

The Following 2 Users Say Thank You to Matan For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:36.