Related
Can someone post the script that mount sdcard at boot?
I created a kernel but it doesn't mount sdcard at boot, it's possibile to create the script in system/etc/init.d that mount sdcard at boot?
Try busybox mount while booted to see if it's possible to mount SD Card with a script. SD card mounts automatically if it's FAT32 and it takes a little vold.fstab configuration for other file systems. You should check franco's or LG's kernel to see how to automount sd card from kernel.
This is taken from CM7, put it in init.d and see.
Turducken said:
This is taken from CM7, put it in init.d and see.
Click to expand...
Click to collapse
Thank you very much but what's that?
# set property with exit code in case an error occurs
setprop cm.e2fsck.errors $e2fsk_exitcode;
if [ "$e2fsk_exitcode" -lt 2 ];
then
# mount and set perms
$BB mount -o noatime,nodiratime,barrier=1 -t ext3 $SD_EXT_PART $SD_EXT_DIRECTORY;
if [ "$?" = 0 ];
then
$BB chown 1000:1000 $SD_EXT_DIRECTORY;
$BB chmod 771 $SD_EXT_DIRECTORY;
log -p i -t mountsd "$SD_EXT_DIRECTORY successfully mounted";
else
log -p e -t mountsd "Unable to mount filesystem for $SD_EXT_DIRECTORY!";
fi
else
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi
Click to expand...
Click to collapse
EDIT: Mount This script sdcard?
#!/system/bin/sh
mount -o remount,ro -t yaffs2 /dev/block/mmcblk0
Click to expand...
Click to collapse
RE-EDIT: The CM7 script doesn't works, in the second reboot the sd wasn't mount
The CM7 script mounts a2sd apps (apps2sd script). The second one should be like
Code:
mount -o remount,r[b]w[/b] -t [b]fat32[/b] /dev/block/mmcblk0
. As I already said, it's probably a kernel problem, vold mounts sdcards automatically.
Cricco said:
Thank you very much but what's that?
Click to expand...
Click to collapse
That part of the script mounts an ext partition if one exists.
RE-EDIT: The CM7 script doesn't works, in the second reboot the sd wasn't mount
Click to expand...
Click to collapse
As Ianis G. Vasilev said there are various ways to mount the SD card but I suspect the issue is with the kernel you've compiled. Flash francos, if it mounts then your kernel is bad. Run logcat to see what's going on.
**EDIT**
I didn't see Ianis post before I began mine...
so with
mount -o remount,rw -t fat32 /dev/block/mmcblk0
Click to expand...
Click to collapse
the sd will be mount?
EDIT: I need a script that mount sd without write or read permission, infact if i use root explorer and I go to sdcard sometimes the sdcard folder is blank, so the sd didn't mount
Read permissions are needed to see what's on the sd card. For a read-only mount replace rw with ro:
Code:
mount -o remount,r[b]o[/b] -t fat32 /dev/block/mmcblk0
I would advice you to use dmesg(should be enabled in kernel) to see if your phone detects the card and logcat to see if any errors are preventing your card from mounting.
Now i create script
#!/system/bin/sh
mount -o remount,rw -t fat32 /dev/block/mmcblk0
mount -t vfat -o /dev/block/mmcblk0
Click to expand...
Click to collapse
is it correct?
Ok so the Rezound has the bootloader unlocked and rooted with 1click method.
Root Explorer, and Root Checker verify.
Going into adb I am trying to adb rm /system/app/".apk"
It doesnt work.
I tried adb remount and it is not letting me and says operation not permitted.
If I type in adb shell I get the $, then type in su and get #
Titanium Backup. More than worth the money. You can freeze, remove, and backup anything/everything.
Sent from my ADR6425LVW using xda premium
Code:
adb shell
su
busybox mount -o rw,remount -t / rootfs
rm /system/app/NameOfApp.apk
busybox mount -o ro,remount -t / rootfs
adb shell
$ su
su
# busybox mount -o rw,remount -t yaffs2 /rootfs
busybox mount -o rw,remount -t yaffs2 /rootfs
mount: can't find /rootfs in /proc/mounts
# rm /system/app/com.mobitv.client.nfl2010.apk
rm /system/app/com.mobitv.client.nfl2010.apk
rm failed for /system/app/com.mobitv.client.nfl2010.apk, Read-only file system
Try ROM Toolbox. You can find it free in Market.
Code:
busybox mount -o rw,remount -t yaffs2 /dev/block/mmcblk029p /system
This Will Mount The System As "read/write" And Switch It To "ro" To Go Back To "read-only"
Xtreme Outcast said:
Code:
busybox mount -o rw,remount -t yaffs2 /dev/block/mmcblk029p /system
This Will Mount The System As "read/write" And Switch It To "ro" To Go Back To "read-only"
Click to expand...
Click to collapse
I would suggest to drop the extra bits that someone could mis-type and shorten this to
"busybox mount -o remount,rw /system"
It's worked for me and takes a little chance out of the equation. Just my opinion take it for what it's worth.
I Was In A Rush Yesterday That I Typed In The Wrong Code And Just Realized It Now When He Said It Didn't Work. It's All Fixed Thanks For The Suggestions Always Appreciated On My Posts Or Threads.
This is cwm for your xperia u with locked bootloader, but this is beta version
FILES FOR XPERIA U
recovery.fstab
Code:
# mount point fstype device [device2] fstype2
/cache ext4 /dev/block/mmcblk0p12
/data ext4 /dev/block/mmcblk0p11
/system ext4 /dev/block/mmcblk0p10
/sdcard vfat /dev/block/mmcblk0p14
/boot emmc /dev/block/mmcblk0p9
fstab
Code:
/cache ext4 /dev/block/mmcblk0p12
/data ext4 /dev/block/mmcblk0p11
/system ext4 /dev/block/mmcblk0p10
/sdcard vfat /dev/block/mmcblk0p14
/boot emmc /dev/block/mmcblk0p9
bootrec
Code:
#!/sbin/sh
# trigger button-backlight
echo '255' > /sys/class/leds/r-key-blue/brightness
echo '255' > /sys/class/leds/m-key-red/brightness
echo '255' > /sys/class/leds/l-key-green/brightness
cat /dev/input/event2 > /dev/keycheck&
sleep 3
# trigger button-backlight
echo '0' > /sys/class/leds/r-key-red/brightness
echo '0' > /sys/class/leds/l-key-red/brightness
echo '0' > /sys/class/leds/m-key-red/brightness
kill -9 $!
fi
if [ -s /dev/keycheck -o -e /cache/recovery/enterrecovery ]
then
rm /cache/recovery/enterrecovery
mount -o remount,rw rootfs /
# shifting to "umount -l /partition" to avoid mounting issues in recovery
stop cspsa
stop tad
killall -9 cspsa-server
killall -9 logwrapper
killall -9 chargemon
killall -9 tad
umount -l /system
umount -l /data
umount -l /cache
umount -l /sdcard
umount -l /mnt/sdcard
rm -r /sdcard
rm -r /not/sdcard
mkdir /sdcard
mkdir /tmp
rm /etc
mkdir /etc
cp /recovery.fstab /etc/recovery.fstab
mount /dev/block/mmcblk0p14 /sdcard
/sbin/recovery &
/sbin/ps >/sdcard/ps.log
# DooMLoRD - enable USB Mass Storage mode - thanks to Napstar
echo 1 > /sys/devices/virtual/usb_composite/usb_mass_storage/enable
/sbin/recovery &
/sbin/adbd_rec recovery
fi
IM INTEGRATE THIS IN MY AOKP
works
everythings
mount /data
mount /cache
mount /sdcard
mount /usb
CHANGELOG:
BETA 1
FIXED MOUNT DATA AND USB
BETA 2
THE BAR LIGHTS IS ON IN RECOVERY MOD NICE!!!
FOR NOW THIS HAVE SOME BUGS
BETA 3
FIXED SOME ISSEUES
BUGS: ONLY MOUNT SYSTEM
BETA 4
NEW AOKP LOGO
NOW YOU CAN FORMAT /SYSTEM....BUT NOT FLASH ROMS
BETA 5
FIXED MOUNT /SYSTEM (From bootrec from Atis112)
FIXED Bootrec
Fixed Bootrec-Device
Fixed Bootrec-devce-fs
ITS MY CWM... NOT CWM MODIFY FROM ATIS112
IM ADD SOME FEATURES TO THISS CWM
INSTALLATION
RENAME TO recovery.tar AND PUT IN SYSTEM/BIN AND CHANGE PERMISSIONS
DOWNLOAD: HERE
maybe you need to check if the recovery is gaining access to root, check the mountpoint, etc...
xperiafan13 said:
This is cwm for your xperia u with locked bootloader, but this is beta version
bugs:
Cant mount system
I NEED TO FIX MOUNT SYSTEM... PLEASE HEELP ME!!!!
IM INTEGRATE THIS IN MY AOKP
works
everythings
mount /data
mount /cache
mount /sdcard
mount /usb
Click to expand...
Click to collapse
Wait my next rom.
Sent from my Xperia U using xda premium
THANKS
atis112 said:
Wait my next rom.
Sent from my Xperia U using xda premium
Click to expand...
Click to collapse
BUT IM MAKE MI CUSTOM RAMDIZK AND RECOVERYS FOR MY ROM,I'm about going on holiday, and now if I can give more time to ANDROID
New beta aviable
This is in progress, not flly working, is oly for development.....
The light bar is on in recovery
Delete.
HELLO
This is my personnel recovery, this is not a copy of CWM of Atis112, eh I repaired the system assembly from its bootrec, keeping the light bar is always turned on, I will initiate my own projects, this is different from CWM of Atis112, thank him for the fix, likewise warn my AOKP version will have a new morning, I no longer have tested and reboots ...
some new things will
Enabled 2D acceleration
LED repaired
Greater stability guaranteed
No more delays on lockscreen
Posted AndyX modules, activatable Romcontrol
All applications updated
Based on FXP 148
AND MORE
What are the main diferences between your cwm and attis ?
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.
This is the CODE script to make Internal memory changed to SD Card.
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.
This another solution for swap memory.
Please Check this page
http://goo.gl/EwKH1x
Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton :good:
Credit:
@nunu_Nugraha
Should it work on another device?
Sent from my LG-P990
I hope so...
ivaneris said:
Should it work on another device?
Sent from my LG-P990
Click to expand...
Click to collapse
I think, it should be work to with another device.
but I'm not sure. Backup before you start.
Do with your own risk.
Thnx..it works with some modification ....use it now..:thumbup:
Sent from my LG-P990
ivaneris said:
Thnx..it works with some modification ....use it now..:thumbup:
Sent from my LG-P990
Click to expand...
Click to collapse
Did you change with another permission?
anyway, glad to hear it worked on your device to.
Elixia said:
Did you change with another permission?
anyway, glad to hear it worked on your device to.
Click to expand...
Click to collapse
No just edit the mount point...
Sent from my LG-P990
Request
ivaneris said:
No just edit the mount point...
Sent from my LG-P990
Click to expand...
Click to collapse
If you don't mine.
can you please, show me and other friends.
The code work on your device?
Elixia said:
If you don't mine.
can you please, show me and other friends.
The code work on your device?
Click to expand...
Click to collapse
Sure..here it is
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/secure/asec 1>>$LOG 2>>$LOG
Well..if there any other way to swap please tell me my friend..as this work said not as 4.4 standard actually
We just got cm11 almost fully working recently on lg p990...
Sent from my LG-P990
ivaneris said:
Sure..here it is
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:11 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:49 /mnt/secure/asec 1>>$LOG 2>>$LOG
Well..if there any other way to swap please tell me my friend..as this work said not as 4.4 standard actually
We just got cm11 almost fully working recently on lg p990...
Sent from my LG-P990
Click to expand...
Click to collapse
Of course mate. I will let you know if i find another way to swap metode.
since my little brother have similar device like you have.
so it's easy to test new swap metode if any.
and thanks for share your swap code. Hope it help anybody in xda.
Tips
Dritza said:
i tried but no effect on Xperia Sola
Click to expand...
Click to collapse
Sorry mate, did you follow it with correct permission?
If it yes and keeped not work on your device. I sugest you to try this.
Change the red and purple text code with "memory read on your own device".
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/secure/asec 1>>$LOG 2>>$LOG
How to get your own code number?
Just, run terminals app
tap this text
mount | grep sdcard0
mount | grep sdcard1
Description:
179:97 = Number code for sdcard0 ,and
179:14 = Number code for sdcard1
Hope that work.
Can this work with Xperia P or just with the phones who have SD card?
dinoCRO said:
Can this work with Xperia P or just with the phones who have SD card?
Click to expand...
Click to collapse
It's complicated to apply this metode to device have no sd card.
But I didn't say it's Imposible.
If I find about it, I will share it with you.
for now, you have to be patient. Advantage of the existing first.
Sori typo
need your assist
Elixia said:
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.
This is the CODE script to make Internal memory changed to SD Card.
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.
Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton :good:
Credit:
@nunu_Nugraha
Click to expand...
Click to collapse
hi fren, your script compitable for samsung or not because i have try but its not working. i really2 need your help
qaliff said:
hi fren, your script compitable for samsung or not because i have try but its not working. i really2 need your help
Click to expand...
Click to collapse
Sorry mate, this swap script only for xperia go and similar.
if you running on samsung. than you may try this http://forum.xda-developers.com/showthread.php?t=2584862
hope it help and solve your problem.
Elixia said:
Sorry mate, did you follow it with correct permission?
If it yes and keeped not work on your device. I sugest you to try this.
Change the red and purple text code with "memory read on your own device".
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Purple"]179:14[/COLOR] /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/[COLOR="Red"]179:97[/COLOR] /mnt/secure/asec 1>>$LOG 2>>$LOG
How to get your own code number?
Just, run terminals app
tap this text
mount | grep sdcard0
mount | grep sdcard1
Description:
179:97 = Number code for sdcard0 ,and
179:14 = Number code for sdcard1
Hope that work.
Click to expand...
Click to collapse
Didn't work
Elixia said:
Dear All,
Last night. I try to swap memory internal to SD Card.
First, I try to make same file like basic swap memory and paste to system/etc.
and It Doesn't work.
So I make another ways.
After try and error. The mods i have installed work perfectly.
This is the CODE script to make Internal memory changed to SD Card.
Code:
#!/system/bin/sh
LOG=/data/extsd2.log
echo 'mark 1' > $LOG
umount /storage/sdcard0
umount /storage/sdcard1
umount /mnt/secure/asec
umount /mnt/media_rw/sdcard0
umount /mnt/media_rw/sdcard1
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/media_rw/sdcard0 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /storage/sdcard0 1>>$LOG 2>>$LOG
echo 'mark 2' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /mnt/media_rw/sdcard1 1>>$LOG 2>>$LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:14 /storage/sdcard1 1>>$LOG 2>>$LOG
echo 'mark 3' >> $LOG
mount -t vfat -o umask=0000,uid=1000,gid=1015 /dev/block/vold/179:97 /mnt/secure/asec 1>>$LOG 2>>$LOG
What to do with it?
Hire the step make it work on your Device.
1. Make 1 file *.fstab or Copy from Other device with same extension.
2. Give the file a name vold.fstab
3. Copy and paste the above code to file. and save it.
4. Copy it (vold.fstab) to SD Card.
5. Use your Androind File Manager, Copy file vold.fstab to Directory system/etc/init.d and paste.
6a. Set Permission to rw-r--r-- (0644). or
6b. Set Permission to rwxr-xr-x
7. Reboot your Device.
Now after reboot finish. Your memory device is already swap.
If it helps you. Please click the thanks Botton :good:
Credit:
@nunu_Nugraha
Click to expand...
Click to collapse
on xperia sola not work
Doesn't work..
Hi dude,
Followed everything to the dot, but it doesn't work.. I'm using the CM11 rom by RodgerRules on my Xperia Go.. Please help
Doesn't work on my xperia go running CM11..
Change with this
Hukanawa said:
Hi dude,
Followed everything to the dot, but it doesn't work.. I'm using the CM11 rom by RodgerRules on my Xperia Go.. Please help
Click to expand...
Click to collapse
Einstein69 said:
Doesn't work on my xperia go running CM11..
Click to expand...
Click to collapse
Sorry bro for almost forget it
On attach file below. Put it in to folder system/etc/init.d dan give it permissions rwxr-xr-x
I already test both of them on my xperia go running CM11.
Link : https://docs.google.com/file/d/0B-yslefpNn1hSVNPUmdfQ1RRQkU/edit?pli=1
Hi all,
Just upgraded my Mi8 with the new Miui 10 based on Android P.
I've TWRP-3.2.3-0918 as recovery and rooted with Magisk-v17.1
As root, in the same condition until the previous version (Android Oreo) i was able to remount the /system with
# mount -o rw,remount /system
but in this version i get an error
'/dev/block/platform/soc/1d84000.ufshc/by-name/system' is read-only
i've tried many ways but nothing ... i'm unable to remount the /system for writing ... see below my failed attempts
# l /dev/block/platform/soc/1d84000.ufshc/by-name/system
lrwxrwxrwx 1 root root 16 Jun 4 1970 /dev/block/platform/soc/1d84000.ufshc/by-name/system -> /dev/block/sde48
# l /dev/block/sde48
brw------- 1 root root 259, 38 Jun 4 1970 /dev/block/sde48
# mount -o rw,remount /dev/block/sde48 /system
mount: '/system' not in /proc/mounts
# mount -o rw,remount /dev/block/platform/soc/1d84000.ufshc/by-name/system /system
'/dev/block/platform/soc/1d84000.ufshc/by-name/system' is read-only
home # mkdir mio
home # mount -t ext4 /dev/block/platform/soc/1d84000.ufshc/by-name/system mio
mount: '/dev/block/platform/soc/1d84000.ufshc/by-name/system'->'mio': Device or resource busy
# mount -o remount,rw,bind /system /data/data/berserker.android.apps.sshdroid/home/mio <
mount: '/data/data/berserker.android.apps.sshdroid/home/mio' not in /proc/mounts
home # cat /proc/mounts | grep system
/dev/block/platform/soc/1d84000.ufshc/by-name/system /system ext4 ro,seclabel,relatime,discard,data=ordered 0 0
/dev/block/platform/soc/1d84000.ufshc/by-name/system /sbin/.core/mirror/system ext4 ro,seclabel,relatime,discard,data=ordered 0 0
home # mount -o remount,rw,bind /dev/block/platform/soc/1d84000.ufshc/by-name/system /data/data/berserker.android.apps.sshdroid/home/mio
mount: '/data/data/berserker.android.apps.sshdroid/home/mio' not in /proc/mounts
home # mount -o remount,rw,bind /dev/block/platform/soc/1d84000.ufshc/by-name/system /system
'/dev/block/platform/soc/1d84000.ufshc/by-name/system' is read-only
home # mount -o remount,rw /dev/block/platform/soc/1d84000.ufshc/by-name/system /system
'/dev/block/platform/soc/1d84000.ufshc/by-name/system' is read-only
home # getenforce
Enforcing
home # setenforce 0
home # getenforce
Permissive
home # mount -o remount,rw /dev/block/platform/soc/1d84000.ufshc/by-name/system /system <
'/dev/block/platform/soc/1d84000.ufshc/by-name/system' is read-only
i'm out of idea
Someone have some try to suggest ?
Thank you
*Bump*
i'm the only one that is trying to mount RW the /system on Pie ?
adb root
adb disable-verity
adb reboot
adb root
adb remount
doesn't work for me , disable-verity not found
poloolop said:
adb root
adb disable-verity
adb reboot
adb root
adb remount
Click to expand...
Click to collapse
Hi poloolop,
i thank you for the try but ...
1) i have already the dm-verity disabled
2) i need to remount the /system from the shell command line inside the smartphone and not from the adb connected from a pc
hope that someone can solve this question ...
Thorezz said:
Hi poloolop,
i thank you for the try but ...
1) i have already the dm-verity disabled
2) i need to remount the /system from the shell command line inside the smartphone and not from the adb connected from a pc
hope that someone can solve this question ...
Click to expand...
Click to collapse
Hi Thorezz,
I had the same problem with my Mi8 on Android Pie. Flashing recovery twrp-3.2.3-0908.img sloved this problem. Warn you, i had the first start of recovery in Chinese.
Hi Rallbomban,
rallbomban said:
Hi Thorezz,
I had the same problem with my Mi8 on Android Pie. Flashing recovery twrp-3.2.3-0908.img sloved this problem. Warn you, i had the first start of recovery in Chinese.
Click to expand...
Click to collapse
thanks for trying but ... i've the problem with the twrp-3.2.3-0918 so it's a twrp newer than yours ... i also I noticed that the adway apk is able to mount and change the hosts file using some function of magisk (that i already have in my rooted system) so it's possibile to do but i'm unable to find how to do !
waiting for someone that have this knowledge
I had problem with newer recovery and only flashing older recovery solve it. But in my situation even Adaway couldn't change hosts file.
mount -o rw,remount /
mount -o rw,remount /dev/root
all geany is simply
No sry that doesn't work.. You have to flash the dm-verity-zip
Hi A.S._id
A.S._id said:
mount -o rw,remount /
mount -o rw,remount /dev/root
Click to expand...
Click to collapse
for sure you haven't read my question ...
1) the /etc it's in the system partiontion
2) on the n failed try that i've done (and that you can read on top of the thread) there is also "mount -o rw,remount /system" exactly as your answer ... and this don't work
anyway thank you for the try
Hi LUKI508,
LUKI508 said:
No sry that doesn't work.. You have to flash the dm-verity-zip
Click to expand...
Click to collapse
in my magisk manager the flag "keep AVB 2.0/dm-verity" is unchecked ... it'snt the same ?
Thank you
Thorezz said:
Hi A.S._id
for sure you haven't read my question ...
1) the /etc it's in the system partiontion
2) on the n failed try that i've done (and that you can read on top of the thread) there is also "mount -o rw,remount /system" exactly as your answer ... and this don't work
anyway thank you for the try
Click to expand...
Click to collapse
for sure you haven't read my answer
mount point of system in android 9 Pie now in root, so mount must have isn't /system, but root "/"...
And I'm tried it in my tv box x96 max android 9 Pie...
Hi A.S._id,
A.S._id said:
for sure you haven't read my answer
mount point of system in android 9 Pie now in root, so mount must have isn't /system, but root "/"...
And I'm tried it in my tv box x96 max android 9 Pie...
Click to expand...
Click to collapse
Doh ...
At first i thinking that you was joking ... i have done an ssh connection to my MI8 and i checked if the things are as you write and ... not ... i can confirm that the /etc is a symlink to /system/etc and /system is an autonomous mount point as you can see below
Code:
:/ # l -d /etc
lrwxrwxrwx 1 root root 11 Jan 1 1970 /etc -> /system/etc
1|:/ # mount | grep system
/dev/block/sde48 on /system type ext4 (ro,seclabel,relatime,discard,data=ordered)
so this confirm what i told you (and you can see that this is mounted RO) but ... i've done a try and ....
Code:
:/ # mount -o rw,remount /
no errors !
but if i try to create a file in /etc
HTML:
:/etc # touch thorezz
touch: thorezz: Read-only file system
1|:/etc # >thorezz
/system/bin/sh: can't create thorezz: Read-only file system
so the remount of / work but the /etc that it's in the /system don't become RW
and i can confirm that your suggestion don't work ...
thank you
P.S: all this with user root and /etc in writable by root ... just in case you think about this
Code:
:/etc # l -d .
drwxr-xr-x 27 root root 4096 Mar 21 14:38 .
@Thorezz
console:/ # mount -o rw,remount /
[ [email protected]] EXT4-fs (mmcblk0p18): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
console:/ # mount -o rw,remount /dev/root
[ [email protected]] EXT4-fs (mmcblk0p18): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
ps. your fstab
that has into /system/vendor/etc/fstab.qcom and etc has into /system/vendor/ too :yes:
and i think for you mount must have
Code:
[B]mount -o rw,remount /vendor[/B]
A.S._id said:
@Thorezz
console:/ # mount -o rw,remount /
[ [email protected]] EXT4-fs (mmcblk0p18): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
Click to expand...
Click to collapse
this work but don't solve the problem
console:/ # mount -o rw,remount /dev/root
[ [email protected]] EXT4-fs (mmcblk0p18): re-mounted. Opts: block_validity,delalloc,barrier,user_xattr,acl
Click to expand...
Click to collapse
this don't work because in my phone does not exist /dev/root
ps. your fstab
that has into /system/vendor/etc/fstab.qcom and etc has into /system/vendor/ too :yes:
and i think for you mount must have
Code:
[B]mount -o rw,remount /vendor[/B]
Click to expand...
Click to collapse
my /system/vendor/etc/fstab.qcom is like your with a little difference only in this line
yours
Code:
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,reservedsize=128M,fileencryption=ice,quota
mine
Code:
/dev/block/bootdevice/by-name/userdata /data ext4 noatime,nosuid,nodev,barrier=1,noauto_da_alloc latemount,wait,check,reservedsize=128M,encryptable=ice,quota
i think that the parameter "fileencryption" and "encryptable" are synonyms
Code:
:/ # mount -o rw,remount /vendor
:/ # cd /etc
:/etc # >testfile
/system/bin/sh: can't create testfile: Read-only file system
nothing to do ... thank you for trying to help
any updates ?
---------- Post added at 09:41 PM ---------- Previous post was at 09:31 PM ----------
Try
mount -o rw,remount -t ext4 /full/path/to/modify
lapwat said:
any updates ?
Click to expand...
Click to collapse
nothing ... someone know the answer but take for self the correct procedure...
mount -o rw,remount -t ext4 /full/path/to/modify
Click to expand...
Click to collapse
[/QUOTE]
adding the filesystem type don't change the result ... the filesystem is autorecognized and re-mounted but without the write permission
thank you for the try
Thorezz said:
nothing ... someone know the answer but take for self the correct procedure...
adding the filesystem type don't change the result ... the filesystem is autorecognized and re-mounted but without the write permission
thank you for the try
Click to expand...
Click to collapse
I did
mount -o rw,remount /system/app/NQNfcNci
And it worked. Specify full path not only /system.
And you are right, ext4 option is not needed.
I found the solution
I know I am a bit late, but I was having issues modifying stuff in the /system/priv-app folder and every attempt of any mount call described up until now did NOT work.
BUT I found the solution: since I am using magisk (and you do too), the /system partition is somewhat "remapped" to /system_root.
So the solution is easy: just mount /system_root and you will be good to go:
Code:
mount -o rw,remount /system_root