mount sdcard

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mount sdcard

1,020 Views
yoonseok
Contributor III

cpu : imx8m mini

android:13

 

I'm trying to use sdcard by mounting it in user mode

If you look at Gaga's stuff after booting up, it's as follows
brw------- 1 root root 179, 25 1970-01-01 00:00 /dev/block/mmcblk1p1
drwxrwxrwx 2 root system 3452 1970-01-01 00:00 sdcard


in this state
su root mount /dev/block/mmcblk1p1 /data/sdcard
After the actual release, the following results are obtained.
drwx------ 4 root root 131072 2024-12-19 20:13 sdcard

It is not available to all users in this state.

Is there any way I can use it in user mode?

0 Kudos
Reply
3 Replies

972 Views
yoonseok
Contributor III

Run as follows

su root chown root system /dev/block/mmcblk1p1
su root chmod 777 /dev/block/mmcblk1p1
ls -l /dev/block/mmcblk1p1
==> brwxrwxrwx 1 root root 179, 25 1970-01-01 00:00 /dev/block/mmcblk1p1

su root chmod 777 /data/sdcard
su root chown root system /data/sdcard
==> chown: 'system' to 'root:': Read-only file system


su root ls -l /data
==> drwxrwxrwx 2 root system 3452 1970-01-01 00:00 sdcard


su root mount /dev/block/mmcblk1p1 /data/sdcard
su root ls -l /data
==> drwx------ 4 root root 131072 2024-12-19 20:14 sdcard




What's wrong?

0 Kudos
Reply

969 Views
yoonseok
Contributor III

 

I tried to change it

The results are as follows

 

 

su root chown root system /data/sdcard

su root chmod 777 /data/sdcard

su root ls -l /data

  ==> drwx------ 4 root root 131072 2024-12-19 20:21 sdcard

 

 

   

 

 

 

 

0 Kudos
Reply

999 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @yoonseok!

The issue arises because the default permissions after mounting the SD card are restrictive (drwx------), allowing access only to the root user. To make the SD card accessible to all users, you need to adjust the permissions and ownership after mounting.

 

Try changing the ownership of the mounted directory to a specific user or group (e.g., system or media_rw) and modify the permissions to make it accessible to other users

 

Best Regards!

Chavira

 

 

0 Kudos
Reply