mount sdcard

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mount sdcard

1,000件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

952件の閲覧回数
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 件の賞賛
返信

949件の閲覧回数
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 件の賞賛
返信

979件の閲覧回数
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 件の賞賛
返信