[Q] Apps can't see mounted ext4 partition. - Verizon HTC One (M8)

On my previous HTC phones, I was able to mount an ext4 partition simply by doing:
Code:
mount -o remount,rw /
mkdir /storage/sdcard3
mount -o remount,ro /
mount -t ext4 /dev/block/mmcblk1p2 /storage/sdcard3
Problem is, I can only see the files in terminal. None of the other apps can see anything, even with root access. Anyone been able to do this successfully on this phone?

Bump. From the terminal, I see no reason why this shouldn't work. I've mounted with the same options as other partitions, and even used chmod and chown to modify permissions to be identical to those in other mounts. I'm not sure if this is a KitKat issue, or something HTC has done to the ROM itself.
I've been able to do this on both my Incredible and Rezound, both with stock and AOSP ROMs. I'm really stumped why I can't get this working on my M8.

Related

[Q] Having trouble mounting \system in rw on BAMF 1.5

Hey guys,
Loaded BAMF 1.5 yesterday and have been enjoying the ROM thus far. However, I've been trying to push my custom widget.txt to the \system\customize\ folder so I can have my own power controls in the notifcation bar. I have tried the Mount rw/ro app from the Market, and have also tried mounting rw using adb (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Each time, when I use the command: adb push widget.txt /system/customize/ I get the error: failed to copy 'widget.txt' to '\system\customize\': Read-only file system
Where am I going wrong?
Seth
sethschmautz said:
Hey guys,
Loaded BAMF 1.5 yesterday and have been enjoying the ROM thus far. However, I've been trying to push my custom widget.txt to the \system\customize\ folder so I can have my own power controls in the notifcation bar. I have tried the Mount rw/ro app from the Market, and have also tried mounting rw using adb (mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system).
Each time, when I use the command: adb push widget.txt /system/customize/ I get the error: failed to copy 'widget.txt' to '\system\customize\': Read-only file system
Where am I going wrong?
Seth
Click to expand...
Click to collapse
I'm pretty sure the TB is using EXT3, not YAFFS2.
Try
Code:
mount -o remount,rw -t ext3 /dev/block/mtdblock3 /system
Even easier, assuming you have busybox. busybox mount isn't as lame as the standard mount which is provided, so you don't have to tell it as much, it can figure things out on its own:
busybox mount -o remount,rw /system
busybox mount -o remount,ro /system
Click to expand...
Click to collapse
even easier.
sysrw
sysro
Doesn't anyone ever read the first post of my rom?
I'm an idiot. Thanks for the ext3 vs yaffs2 reminder.
I'll try busybox at some point also to check
And to Adrynalyne, apparently I didn't read the first post...my bad. Thanks for reading mine, though. I'll pay closer attention in the future.
Seth

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.

Filesystem issues

Whelp, I screwed up my filesystem. So I was messing around with commands and tried to remount /data and /cache in rw mode.
I used this command
mount -o remount,rw /
Forgot to finish typing and pressed enter, and it mounted the rootfs into rw mode.
Tried to fix so I ran
mount -o remount,ro /
Probally shouldn't have done that now that I think about it.
It mounted all of the partitions in ro mode including the sdcard.
So I was like lets go to recovery and do a nandroid restore, well it somewhat worked. It fixed all the partitions, I think, except /sdcard
Now when I try to: mount -o remount,ro /sdcard I get an error saying there is no such object.
Same with mount -o remount,ro /storage/emulated/0
Is there a command to fix this or do I need to reflash firmware?

[ME176CX] Looking for an init.d-script mount sdext2

Hi,
I am looking for a working /etc/init.d/-script to mount /data/sdext2 on my ASUS ME176CX.
Googling I found several times this snippet mentioned:
mount -t ext4 -o rw /dev/block/vold/<ID_A>:<ID_B> /data/sdext2
mount -t ext4 -o rw /dev/block/mmcblk1p2 /data/sdext2
Depending on the source of information ID_A and ID_B are varying, but none has
matched the situation on my tablet.
Furthermore I dont know "vold"...what is it? What purpose have it?
Another question: Is it ok to simply mkdir /data/sdext2 or does this need
a similiar "magic" pre-command like that vold-thingy before the real mount above?
I know that LINK2SD creates similiar, but I dont want to use LINK2SD.
Any help is very appreciated -- thank you!
Cheers,
noriatell

Finally got root via adb. Now having trouble mounting /system

Back in 5.1.1, I was able to mount the system partition.
Now in 7.0, I couldn't mount it anymore without making my phone crash
I've tried different methods...
Code:
mount -o rw,remount -t ext4 /system
This crashes my phone
Code:
mount -o rw,remount,rw -t ext4 /system
This reports back "...Device or Resource busy"
So then I was thinking that something might be using that directory so I tried to make a system mount point in /mnt, thinking as processes depend on /system, I must make another mount point
So I did, this time, "mount" says system is mounted with "ro,seclabel,relatime,norecovery" as it's option. so when I changed it to "rw,seclabel,relatime,norecovery", it doesn't mount, with no errors
So I tried, with system mounted on /mnt/system,
Code:
# mount -o rw,remount -t ext4 /dev/block/sda18 /mnt/system
(don't worry I know you can do ".../platform/xxxxxxxx.ufs/by-name")
This ALSO crashes my phone
So I pretty much gave up, and looked online, and all I found was the same process, but nothing on "this crashes my phone" or any other.
Agreed
I had the same problem. Hard lock up of phone.
how did u get root via adb??
DDwhite said:
how did u get root via adb??
Click to expand...
Click to collapse
https://forum.xda-developers.com/verizon-galaxy-s6/general/unlock-bootloader-t3688594

Categories

Resources