Mounted as writable external HDD EXT4 formatted, not access able for apps for read or write! - General Questions and Answers

I have rooted NSTV device with Android11, when I connect my external HDD (ext4 formatted) to it, the device notify me the HHD not supported.
I can mount the HDD successfully:
Code:
mount -w -t ext4 UUID=89087942-e2b5-4f4a-99d7-9818559c6844 /mnt/media_rw
The root privileged file manager apps can read & write to HDD (Root-Explorer or Solid-Explorer)
But I can't open my movies through the VLC, MxPlayer... apps (logcat is: Access denied), also I tried to 'chown & chmod' but I'm not success.
Can you help me to solve my problem please?!

I think the mount cmd should look like shown next if dynamic mount of an external HDD is wanted
Code:
su -c "mount -o rw,remount -t ext4 UUID=89087942-e2b5-4f4a-99d7-9818559c6844 /media"

@xXx yYy
Thank you for reply...
The path /media does not exist ! So I create it and try again mounting but not success
Code:
mdarcy:/ # mount -o rw,remount -t ext4 UUID=89087942-e2b5-4f4a-99d7-9818559c6844 /media
mount: '/media' not in /proc/mounts

#up

I'm trying to investigate... So I connect fat32 formatted USB-Flash to device, the mount result is:
Code:
/dev/block/vold/public:8,1 on /mnt/media_rw/7132-BE26 type vfat (rw,dirsync,nosuid,nodev,noexec,noatime,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/mnt/media_rw/7132-BE26 on /mnt/runtime/default/7132-BE26 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6)
/mnt/media_rw/7132-BE26 on /mnt/runtime/read/7132-BE26 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/mnt/media_rw/7132-BE26 on /mnt/runtime/write/7132-BE26 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18)
/mnt/media_rw/7132-BE26 on /mnt/runtime/full/7132-BE26 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=7)
/dev/fuse on /mnt/user/0/7132-BE26 type fuse (rw,lazytime,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,allow_other)
/dev/fuse on /mnt/installer/0/7132-BE26 type fuse (rw,lazytime,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,allow_other)
/dev/fuse on /mnt/androidwritable/0/7132-BE26 type fuse (rw,lazytime,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,allow_other)
/dev/fuse on /storage/7132-BE26 type fuse (rw,lazytime,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,allow_other)
/mnt/media_rw/7132-BE26 on /mnt/pass_through/0/7132-BE26 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=7)
So it seems the /dev/block/vold/ is start point:
#ls -hal /dev/block/vold/ result is:
Code:
brw------- 1 root root 8, 0 2021-11-18 01:58 disk:8,0
brw------- 1 root root 8, 1 2021-11-18 01:58 public:8,1
So I connect my external HDD (ext4 formatted) and #ls -hal /dev/block/vold/ result is:
Code:
disk:8,16
Then I try to mount it:
Code:
mdarcy:/ # busybox mount -w -t ext4 /dev/block/vold/disk:8,16 /mnt/media_rw/ext_hdd
mount: mounting /dev/block/vold/disk:8,16 on /mnt/media_rw/ext_hdd failed: Invalid argument
HOW I CAN MOUNT /dev/block/vold/disk:8,16 ?

Related

[Q] Toshiba AC100, market, unable to push files with adb

Hi I have to following problem and can't find the answer with google.
I have routed my AC100.
Code:
sudo adb shell
$
su
#
so I believe the AC100 is rooted
next
Code:
#mount
/dev/block/mmcblk3p1 /system ext2 ro,relatime 0 0
therefore I did
Code:
mount -o remount,rw -t ext2 /dev/block/mmcblk3p1 /system
mount
/dev/block/mmcblk3p1 /system ext2 rw,relatime 0 0
so I think the disk has been successfully re-mounted in re-write mode.
however whenever I do something like
Code:
sudo ./adb pish com.google.android.maps.xml /system/etc/permissions
I get
Permission denied
I would be grateful if someone could point me in the right directions.
Many thanks
Frank

Can only see sdcard as root.

I have a HTC One M8. I have a sdcard with 2 partitions. /dev/block/mmcblk1p1 is vfat, /dev/block/mmcblk1p2 is ext4. I've used this to mount the sdcard:
Code:
mount -o remount,rw /
mkdir /storage/sdcard3
mount -o remount,ro /
mount -t ext4 /dev/block/mmcblk1p2 /storage/sdcard3
mkdir /storage/sdcard0/user-data
sdcard /storage/sdcard3 /storage/sdcard0/user-data 1023 1023 &
As root in a terminal, I can read and write to /storage/sdcard0/user-data no problem, however none of the apps can see it, not even file managers with root access. Maybe there is an extra step involved for KitKat? I'm also using the HandleExternalStorage Xposed module, which at least helps with the vfat partition.
Bump.

mount command problem

I want to mount a file as file system in android.
so far I've done
create 1 MB file:
Code:
dd if=/dev/zero of=/sdcard/my_fs bs=1024 count=1024
format the file as vfat
Code:
losetup /dev/block/loop0 /sdcard/my_fs
mkfs.vfat -v /dev/block/loop0
mount it:
Code:
mount -rw -t vfat /dev/block/loop0 /sdcard/mountpt
but the filesystem is mounted as read only not rw.
when I excute the above commands from adb shell instead of android terminal emulator, it works fine and is mounted as rw.
whats wrong with the mount command? how to mount it as rw?
please help me!
ls -l output is
Code:
drwxr-xr-x root root 1970-01-01 05:30 mountpt

cw11 failing to swap internal / external memory

Guys, I'm completely lost in tutorials so pls help me I'm freaking out!
I'm trying to bring to life my mother's HTC Explorer so I installed CM11 (cm-11-20140316-UNOFFICIAL-pico.zip) using some yt tutorial .
It works fine and now I'm trying to increase the phone internal memory. But in vain :'(
I tried:
1) editing build.prop
Code:
persist.sys.vold.switchexternal=1
ro.vold.switchablepair=/storage/sdcard0,/storage/sdcard1
-> no change
2) Trying to execute the StorageSwap.sh
Code:
#!/system/bin/sh
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:97 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:8 /mnt/media_rw/sdcard1
-> not working! permission denied
Can someone pls share a proved and easy way to make this work??

Mount Btrfs from shell (kernel module compiled)

hi to all, I have a problem installing a USB stick with a btrfs system file. I recompiled the kernel with the brtfs module. however I can not mount the device:
angler:/ # mount -t btrfs /dev/block/mmcblk0p1 /mnt/media_rw
angler:/ # mount /dev/block/vold/disk:8,0 /mnt/media_rw
Device or resource busy
Any tips?

Categories

Resources