Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

user partition is not mounted on Linux

107

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
107

user partition is not mounted on Linux

Posted at 1/20/2015 10:21:43      View:5425 | Replies:6        Print      Only Author   [Copy Link] 1#

I partitioned eMMC as follows. But Linux can't mount "user" partition and it mount the android "userdata" partition on Unbuntu. mmcblk0p15 device is android "userdata" partition. Please let me know what problem is.


1) uboot parameters

FIRMWARE_VER:4.4.2
MACHINE_MODEL:rk30sdk
MACHINE_ID:007
MANUFACTURER:RK30SDK
MAGIC: 0x5041524B
ATAG: 0x60000800
MACHINE: 3066
CHECK_MASK: 0x80
PWR_HLD: 0,0,A,0,1
#KERNEL_IMG: 0x62008000
#FDT_NAME: rk-kernel.dtb
#RECOVER_KEY: 1,1,0,20,0
CMDLINE:console=ttyFIQ0 androidboot.hardware=rk30board androidboot.console=ttyFIQ0 board.ap_has_alsa=0 root=/dev/block/mtd/by-name/linuxroot rw rootfstype=ext4 init=/sbin/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(misc),0x00008000@0x00006000(resource),0x00008000@0x0000e000(kernel),0x00010000@0x00016000(boot),0x00010000@0x00026000(recovery),0x0001a000@0x00036000(backup),0x00040000@0x00050000(cache),0x00002000@0x00090000(kpanic),0x00980000@0x00092000(system),0x00002000@0x00A12000(metadata),0x00400000@0x00A14000(userdata),0x00620000@0x00E14000(linuxroot),-@0x01434000(user)



2) Booting logs


[    2.193563]  execute tuning: candidates_degree = SDMMC_SHIFT_DEGREE_0 SDMMC_SHIFT_DEGREE_90 SDMMC_SHIFT_DEGREE_180 SDMMC_SHIFT_DEGREE_INVALID[mmc0]

[    2.193665] mmc0: new HS200 MMC card at address 0001
[    2.193930] mmcblk0: mmc0:0001 AWMB3R 14.5 GiB
[    2.194255]  parameter: 0x000000000 -- 0x000400000 (4 MB)
[    2.194268]      uboot: 0x000400000 -- 0x000800000 (4 MB)
[    2.194277]       misc: 0x000800000 -- 0x000c00000 (4 MB)
[    2.194287]   resource: 0x000c00000 -- 0x001c00000 (16 MB)
[    2.194296]     kernel: 0x001c00000 -- 0x002c00000 (16 MB)
[    2.194305]       boot: 0x002c00000 -- 0x004c00000 (32 MB)
[    2.194313]   recovery: 0x004c00000 -- 0x006c00000 (32 MB)
[    2.194322]     backup: 0x006c00000 -- 0x00a000000 (52 MB)
[    2.194331]      cache: 0x00a000000 -- 0x012000000 (128 MB)
[    2.194340]     kpanic: 0x012000000 -- 0x012400000 (4 MB)
[    2.194348]     system: 0x012400000 -- 0x142400000 (4864 MB)
[    2.194357]   metadata: 0x142400000 -- 0x142800000 (4 MB)
[    2.194366]   userdata: 0x142800000 -- 0x1c2800000 (2048 MB)
[    2.194375]  linuxroot: 0x1c2800000 -- 0x286800000 (3136 MB)
[    2.194383]       user: 0x286800000 -- 0x3a3a00000 (4562 MB)
[    2.194416]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p151357..dw_mci_set_ios:  no card. [mmc1]
[    2.201191] 1357..dw_mci_set_ios:  no card. [mmc2]
[    2.220875] 1357..dw_mci_set_ios:  no card. [mmc2]
[    2.221079] dwmmc_rockchip ff0d0000.rksdmmc: DW MMC controller at irq 65, 32 bit host data width, 256 deep fifo
[    2.221092] dwmmc_rockchip ff0d0000.rksdmmc: 1 slots initialized

[    2.221350] leds-gpio leds.31: pins are not configured from the driver


3) df results

Filesystem    1kblocks     Used    Avaulable    Use%    Mounted on

/dev.mmcblk0p14    3148232    1348096    1783752    44%    /

udev                      1022892              4     1022888     1%   /dev

tmpfs                     413412            352      413060      1%   /run

none                              4                0               0     0%  /sys/fs/cgroup

none                           5120            4             5116    1%   /run/lock

none                   1033524              72        1033452    1%   /run/shm

none                    102400              20          102380    1%  /run/user

/dev/mmcblk0p15  4662364     3264204     1398160     71%  /media/firefly/851C-D06E

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/20/2015 15:19:09        Only Author  2#

userdata partition is Android's data partition, which is not mounted under Linux by default.


You can edit "/lib/udev/rules.d/80-udisks2.rules", and remove the following line:

# automount only user partition of Android
KERNEL=="mmcblk0p[0-9]*", SUBSYSTEMS=="mmc", ENV{PARTNAME}!="user", ENV{UDISKS_IGNORE}="1"

Reply

Use props Report

107

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
107
Posted at 1/20/2015 16:42:52        Only Author  3#

I removed that you said. After removing line in 80-udisks2.rules, linux mount many partitions. I think initrd is something wrong.


firefly@firefly:/media/firefly$ df

Filesystem      1K-blocks    Used Available Use% Mounted on

/dev/mmcblk0p14   3148232 1348004   1783844  44% /

udev              1022892       4   1022888   1% /dev

tmpfs              413412     356    413056   1% /run

none                    4       0         4   0% /sys/fs/cgroup

none                 5120       0      5120   0% /run/lock

none              1033524      72   1033452   1% /run/shm

none               102400      20    102380   1% /run/user

/dev/mmcblk0p9     122835    1599    112062   2% /media/firefly/1fe6fd53-7380-4cc7-9e55-30b08c2ec58a

/dev/mmcblk0p15   4662364 3264204   1398160  71% /media/firefly/851C-D06E

/dev/mmcblk0p13   1998672  802996   1074436  43% /media/firefly/2a856443-354f-447d-bc91-118b44e69dfe

/dev/mmcblk0p12      2939      29      2625   2% /media/firefly/e7107927-e2df-473a-bb70-a9b97fd96508

/dev/mmcblk0p11   4909164  517764   4375016  11% /media/firefly/system

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/20/2015 17:18:50        Only Author  4#

It is not wrong. It is the expected behaviour, mounting all the recongizable partition automactically.


Use something like this:


# automount only user/data partition of Android

KERNEL=="mmcblk0p[0-9]*", SUBSYSTEMS=="mmc", ENV{PARTNAME}=="cache|metadata|system", ENV{UDISKS_IGNORE}="1"

Reply

Use props Report

107

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
107
Posted at 1/20/2015 18:02:33        Only Author  5#

It still doesn't mount user partition, mmcblk0p15 and mmcblk0p13 are android partition.




Filesystem      1K-blocks    Used Available Use% Mounted on

/dev/mmcblk0p14   3148232 1348704   1783144  44% /

udev              1022892       4   1022888   1% /dev

tmpfs              413412     356    413056   1% /run

none                    4       0         4   0% /sys/fs/cgroup

none                 5120       0      5120   0% /run/lock

none              1033524      72   1033452   1% /run/shm

none               102400      20    102380   1% /run/user

/dev/mmcblk0p15   4662364 3264204   1398160  71% /media/firefly/851C-D06E

/dev/mmcblk0p13   1998672  802996   1074436  43% /media/firefly/2a856443-354f-447d-bc91-118b44e69dfe

fi

Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 1/20/2015 18:23:44        Only Author  6#

I'm frustrated. From your kernel log, this is your partition now:


[    2.193665] mmc0: new HS200 MMC card at address 0001
[    2.193930] mmcblk0: mmc0:0001 AWMB3R 14.5 GiB
[    2.194255]  parameter: 0x000000000 -- 0x000400000 (4 MB)
[    2.194268]      uboot: 0x000400000 -- 0x000800000 (4 MB)
[    2.194277]       misc: 0x000800000 -- 0x000c00000 (4 MB)
[    2.194287]   resource: 0x000c00000 -- 0x001c00000 (16 MB)
[    2.194296]     kernel: 0x001c00000 -- 0x002c00000 (16 MB)
[    2.194305]       boot: 0x002c00000 -- 0x004c00000 (32 MB)
[    2.194313]   recovery: 0x004c00000 -- 0x006c00000 (32 MB)
[    2.194322]     backup: 0x006c00000 -- 0x00a000000 (52 MB)
[    2.194331]      cache: 0x00a000000 -- 0x012000000 (128 MB)
[    2.194340]     kpanic: 0x012000000 -- 0x012400000 (4 MB)
[    2.194348]     system: 0x012400000 -- 0x142400000 (4864 MB)
[    2.194357]   metadata: 0x142400000 -- 0x142800000 (4 MB)
[    2.194366]   userdata: 0x142800000 -- 0x1c2800000 (2048 MB)
[    2.194375]  linuxroot: 0x1c2800000 -- 0x286800000 (3136 MB)
[    2.194383]       user: 0x286800000 -- 0x3a3a00000 (4562 MB)


userdata and user partitiions are both used by Android. userdata is mounted on /data,

and user partition is mounted as internal storage.


Now that both userdata (/dev/mmcblk0p13) and user (/dev/mmcblk0p15) parittions are mounted.

What would you like to archieve?

Reply

Use props Report

107

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
107
Posted at 1/21/2015 15:39:47        Only Author  7#

I thought the user partition is used for linux, but you said user and userdata partitions are used for Andorid. I'd like to know user partition purpose.



firefly@firefly:~$ df

Filesystem      1K-blocks    Used Available Use% Mounted on

/dev/mmcblk0p14   3148232 1350380   1781468  44% /

udev              1022892       4   1022888   1% /dev

tmpfs              413412     352    413060   1% /run

none                    4       0         4   0% /sys/fs/cgroup

none                 5120       4      5116   1% /run/lock

none              1033524      72   1033452   1% /run/shm

none               102400      20    102380   1% /run/user

/dev/mmcblk0p15   4662364 3264204   1398160  71% /media/firefly/851C-D06E

/dev/mmcblk0p13   1998672  802996   1074436  43% /media/firefly/2a856443-354f-447d-bc91-118b44e69dfe

firefly@firefly:~$ cd /media/firefly

firefly@firefly:/media/firefly$ ls 851C-D06E/

Alarms    LOST.DIR  Notifications  backups           ??? ????????? ??????

Android   Linux     Pictures       dmesg.txt

DCIM      Movies    Podcasts       eHomeMediaCenter

Download  Music     Ringtones      gameloft

firefly@firefly:/media/firefly$


firefly@firefly:/media/firefly$ ls 2a856443-354f-447d-bc91-118b44e69dfe/

app          bugreports    es8323_mic_state  misc            tombstones

app-asec     dalvik-cache  gps               property        user

app-lib      data          local             resource-cache  vpumem_observer

app-private  dontpanic     lost+found        security

backup       drm           media             ssh

bluetooth    dtv           mediadrm          system

firefly@firefly:/media/firefly$

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list