How to SD card and eMMC together [ANDROID 6.0.1]

Post Reply
matec.89
Posts: 14
Joined: Tue Jul 11, 2017 4:12 am
languages_spoken: english
ODROIDs: ODROID C2
Has thanked: 0
Been thanked: 0
Contact:

How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by matec.89 » Tue Oct 02, 2018 10:28 pm

Does anyone know how to know the mount point of SD memory?
I am in an application where I need information, but I can not distinguish the microSD from a pendrive.
In the image, the SD is shown as "6365-6462". What I do not find anywhere the mount point.



Inside / mnt It appears in the same way, and not as (eg) "ext_sdcard".

Thank you!
Attachments
2018-10-02_10-20-09.jpg
2018-10-02_10-20-09.jpg (40.32 KiB) Viewed 1171 times

User avatar
tobetter
Posts: 3881
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 37 times
Been thanked: 152 times
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by tobetter » Wed Oct 03, 2018 2:32 am

matec.89 wrote:Does anyone know how to know the mount point of SD memory?
I am in an application where I need information, but I can not distinguish the microSD from a pendrive.
In the image, the SD is shown as "6365-6462". What I do not find anywhere the mount point.



Inside / mnt It appears in the same way, and not as (eg) "ext_sdcard".

Thank you!
What does mount command give you? Is there a device like /dev/block/dm-0?

matec.89
Posts: 14
Joined: Tue Jul 11, 2017 4:12 am
languages_spoken: english
ODROIDs: ODROID C2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by matec.89 » Wed Oct 03, 2018 2:44 am

These are the devices that I have in / dev / block:

root@odroidc2:/dev/block # ls -l
brw------- root root 7, 0 1970-01-01 00:00 loop0
brw------- root root 7, 1 1970-01-01 00:00 loop1
brw------- root root 7, 2 1970-01-01 00:00 loop2
brw------- root root 7, 3 1970-01-01 00:00 loop3
brw------- root root 7, 4 1970-01-01 00:00 loop4
brw------- root root 7, 5 1970-01-01 00:00 loop5
brw------- root root 7, 6 1970-01-01 00:00 loop6
brw------- root root 7, 7 1970-01-01 00:00 loop7
brw------- root root 179, 0 1970-01-01 00:00 mmcblk0
brw------- root root 179, 1 1970-01-01 00:00 mmcblk0p1
brw------- root root 179, 2 1970-01-01 00:00 mmcblk0p2
brw------- root root 179, 3 1970-01-01 00:00 mmcblk0p3
brw------- root root 179, 4 1970-01-01 00:00 mmcblk0p4
brw------- root root 179, 16 1970-01-01 00:00 mmcblk1
brw------- root root 179, 17 1970-01-01 00:00 mmcblk1p1
drwxr-xr-x root root 1970-01-01 00:00 platform
drwx------ root root 1970-01-01 00:00 vold
brw------- root root 253, 0 1970-01-01 00:00 zram0

User avatar
tobetter
Posts: 3881
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 37 times
Been thanked: 152 times
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by tobetter » Wed Oct 03, 2018 3:06 am

matec.89 wrote:These are the devices that I have in / dev / block:

root@odroidc2:/dev/block # ls -l
brw------- root root 7, 0 1970-01-01 00:00 loop0
brw------- root root 7, 1 1970-01-01 00:00 loop1
brw------- root root 7, 2 1970-01-01 00:00 loop2
brw------- root root 7, 3 1970-01-01 00:00 loop3
brw------- root root 7, 4 1970-01-01 00:00 loop4
brw------- root root 7, 5 1970-01-01 00:00 loop5
brw------- root root 7, 6 1970-01-01 00:00 loop6
brw------- root root 7, 7 1970-01-01 00:00 loop7
brw------- root root 179, 0 1970-01-01 00:00 mmcblk0
brw------- root root 179, 1 1970-01-01 00:00 mmcblk0p1
brw------- root root 179, 2 1970-01-01 00:00 mmcblk0p2
brw------- root root 179, 3 1970-01-01 00:00 mmcblk0p3
brw------- root root 179, 4 1970-01-01 00:00 mmcblk0p4
brw------- root root 179, 16 1970-01-01 00:00 mmcblk1
brw------- root root 179, 17 1970-01-01 00:00 mmcblk1p1
drwxr-xr-x root root 1970-01-01 00:00 platform
drwx------ root root 1970-01-01 00:00 vold
brw------- root root 253, 0 1970-01-01 00:00 zram0
hmmm...actually your SD card is /dev/block/mmcblk1 and it would be mounted somewhere in the root file system and it could be found with mount command.

Mine shows like this.

/dev/fuse /mnt/runtime/default/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/emulated fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/block/vold/public:179,17 /mnt/media_rw/01B4-19E5 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/fuse /mnt/runtime/default/01B4-19E5 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/01B4-19E5 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/read/01B4-19E5 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /mnt/runtime/write/01B4-19E5 fuse rw,nosuid,nodev,noexec,noatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
root@odroidc2:/ # blkid
/dev/block/mmcblk0p1: LABEL="VFAT" UUID="0000-0026" TYPE="vfat"
/dev/block/mmcblk0p2: LABEL="rootsystem" UUID="52e8a97f-ef56-815f-9f5a-ee15c8104ad9" TYPE="ext4"
/dev/block/mmcblk0p3: LABEL="cache" UUID="f73de97f-7017-ca5e-9b47-ca9c8f633e83" TYPE="ext4"
/dev/block/mmcblk0p4: UUID="cfe245cb-d01b-426a-af69-44916e43e11c" TYPE="ext4"
/dev/block/mmcblk1p1: UUID="01B4-19E5" TYPE="vfat"

matec.89
Posts: 14
Joined: Tue Jul 11, 2017 4:12 am
languages_spoken: english
ODROIDs: ODROID C2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by matec.89 » Wed Oct 03, 2018 9:23 pm

The SD card is mounted. I can see the files and directories contained in the car.
What I need is to know how a USB is distinguished because it has the same format to distinguish them (photo)
Attachments
2018-10-03_09-20-08.jpg
2018-10-03_09-20-08.jpg (55.63 KiB) Viewed 1110 times

User avatar
tobetter
Posts: 3881
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 37 times
Been thanked: 152 times
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by tobetter » Thu Oct 04, 2018 2:02 am

matec.89 wrote:The SD card is mounted. I can see the files and directories contained in the car.
What I need is to know how a USB is distinguished because it has the same format to distinguish them (photo)
After USB stick is attached and a file system on it is mounted, you can check UUID of the partition mounted. Then you can find a directory based on its UUID. In order to find a UUID for USB stick, you can grep the devices start with /dev/block/sd other than /dev/block/mmcblk which present SD card or eMMC on ODROID-C2. All USB stick or USB CDROM will be discovered with /dev/block/sd* or /dev/block/sr* after mounting. Since Android uses FUSE, mount will not show you corresponding device entry for a mounted partition.

matec.89
Posts: 14
Joined: Tue Jul 11, 2017 4:12 am
languages_spoken: english
ODROIDs: ODROID C2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by matec.89 » Thu Oct 04, 2018 10:44 pm

How can I mount the sd (mmcblk1) from adb ??

matec.89
Posts: 14
Joined: Tue Jul 11, 2017 4:12 am
languages_spoken: english
ODROIDs: ODROID C2
Has thanked: 0
Been thanked: 0
Contact:

Re: How to SD card and eMMC together [ANDROID 6.0.1]

Unread post by matec.89 » Thu Oct 04, 2018 11:26 pm

How can I make a symbolic link from a directory to the port? I need to pass files and each time the change of sd the UUID is different.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests