maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Limitation of max. number of /dev/mmcblk0 partitions? (https://talk.maemo.org/showthread.php?t=89434)

peterleinchen 2013-03-10 21:22

Limitation of max. number of /dev/mmcblk0 partitions?
 
Is there a limitation in Harmattan (possibly also Maemo) about the maximum number of possible/recognized devices/partitions of mmcblk0?

I have repartitioned my N9's mmcblk0 to hold
p1 MyDocs 39GB
p2 rootfs 4GB
p3 home 4GB
and
p4 extended 16GB
with
p5 empty 4GB (not yet decided)
p6 Linux 4GB
p7 Linux/ext4 4GB
p8 Linux 2GB
p9 Linux 2GB

sfdisk tells me everything is fine (as above).
But listing
ls /dev/mmcblk0*
only shows me 8 devices
mmcblk0
mmcbk0p1
...
mmcblk0p7

So there seems to be a limit of 8 devices?

I have formatted /dev/mmcblk0p7 as ext4 and can mount it (size: 4GB).
But it seems, I cannot access p8 and p9 this way ...

Someone to confirm? Or help me out?

elros34 2013-03-10 21:53

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
You have 7 partitions and 7 devices, so what is your problem?
p1 MyDocs - mmcbk0p1
p2 rootfs - mmcbk0p2
p3 home - mmcbk0p3
p6 ext4 - mmcbk0p4
p7 ext4 - mmcbk0p5
p8 ext4 - mmcbk0p6
p9 ext4 - mmcbk0p7

peterleinchen 2013-03-10 22:55

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
Thanks for answer.
But that is not the case.
Both p8 and p9 are size of 2GB.
But when I mount p7 (which is 4GB), then I would get a 2GB sized partition according to your algorithm, But indeed it is sized 4GB as expected. And formatted, whereas the others not yet.
And: even an extended and also an empty partition gets shown in /dev/, or? As it is show/confirmed from outpout of sfdisk (/dev/mmcblk0p9 2GB Linux partition)..

elros34 2013-03-12 15:18

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
The best way to see which is which, is to install cfdisk if exist in n9 repo.

peterleinchen 2013-03-24 19:26

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
Bumping and asking again.

thedead1440 2013-03-25 05:52

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
http://lkml.indiana.edu/hypermail/li...8.2/01021.html

Indeed there is a 8 partition limit for mmcblk devices...


Thank rainisto for pointing me in the right direction ;)

Hurrian 2013-03-25 06:25

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
Isn't that just a limitation for systems that simply bring up /dev without a /dev node helper like udev?

This problem would easily be solved by mknod.

mmcblk0 is just a block device after all.
You could rebuild Harmattan kernel with GPT support, and convert it to GPT, and have a field day.

peterleinchen 2013-03-25 12:44

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
Thanks thedead1440, rainisto and Hurrian for confirmation.
And maybe possible solution (yet beyond my skills, as I am limited to Win due to work life ;)).

amonk 2013-12-25 06:38

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
No, the limit is hard coded in the mmc block driver so mknoding more devices won't help without also patching the kernel mmc block driver for MMC_BLOCK_MINORS and setting it to a larger than default value (or running a newer kernel that doesn't need patching, of course, but you'd still need a custom compile with a larger than default MMC_BLOCK_MINORS value).

*And that fukn captcha is 90% illegible and inaudible every time!!!!111111 I will not keep posting here if it's that hard to do. gimme a fukn break! this is bullsh1t. takes too many tries to get it right. it's insane. fix it. WTF!?

fuk this sh1t! try number 7! this is definitely my last post till you make this functional, admins. I'm already logged in. Why do I need to be captchad to death too (especially with a really, really bad captcha)????

thedead1440 2013-12-25 07:21

Re: Limitation of max. number of /dev/mmcblk0 partitions?
 
amonk, the captcha runs only till you reach your fifth post. It's obviously designed to prevent spammers (and we did have a nasty attack ~2mths back) so just bear with it for an additional post instead of going Liam Neeson over it ;)


All times are GMT. The time now is 14:17.

vBulletin® Version 3.8.8