Related
Hi,
As the title says, Is there Kernel loop support for our LG Optimus L9 ?
I'm trying to mount a loop file created on debian on the device, but I get the error
ioctl LOOP_SET_FD failed: Device or resource busy
Click to expand...
Click to collapse
.
This is what I did --
Loop file created on debian and formatted with ext4.
On Optimus L9 with CM10.1, in terminal emulator,
$su
#losetup /dev/block/loop0 /storage/sdcar1/file
#mount -o remount,rw /system
#mkdir /system/temp
#mount -rw -o loop -t ext4 /dev/block/loop0 /system/temp/
ioctl LOOP_SET_FD failed: Device or resource busy
#
Click to expand...
Click to collapse
Is our kernel having loop support. If yes, am I doing anything wrong? The file gets successfully mounted in Debian.
EDIT:
using "busybox mount" solved the issue.
Tried adding busybox to the mount command and voila it worked.
#busybox mount -rw -o loop -t ext4 /dev/block/loop0 /system/temp/
Click to expand...
Click to collapse
You just taught me something new, thanks.
Can you upload your img, I would really like to check this out, or can you direct me to a thread so I can learn some more.
Sent from my LGMS769 using xda app-developers app
kuma82 said:
You just taught me something new, thanks.
Can you upload your img, I would really like to check this out, or can you direct me to a thread so I can learn some more.
Sent from my LGMS769 using xda app-developers app
Click to expand...
Click to collapse
The one I created is over 100MB. I had a html tutorial containing 12,000 files. I don't want to put those files on sdcard and mess it up. So, I used this block device.
I have created a sample "temp.img" file with a size of 500KB. It contains a single text file. I'm attaching it and you can check it out.
Below is the way i created and mounted it.
Code:
# "temp.img" md5 b97642fed817fa3f1a0cc6dc64b6c40d
# remount rootfs rw.
mount -o remount,rw /
# create mount point.
mkdir /mnt/temp
# chmod mountpoint.
chmod 777 /mnt/temp
# create block file.
dd if=/dev/zero of=/storage/sdcard0/temp.img bs=1024 count=500
# this creates 500 KB file. I can't seem
# to get bs=1M argument working on android.
# so bs1024 x count = target file size (=count times in KB).
# query free loop device. (will be /dev/block/loopx)
losetup -f
#attach block file with free loop.
losetup /dev/block/loop0 /storage/sdcard0/temp.img
#create file system.
mke2fs -T ext2 /dev/block/loop0
# And finally mount it
busybox mount -o loop -t ext2 -rw /dev/block/loop0 /mnt/temp
# For unmounting
busybox umount /mnt/temp
And it isn't encrypted. I don't need encryption, and i can't even seem to figure out how to encrypt it.
i need help i dont know how transpose this mod for cyanogenmod (PAC-rom)
code:
#!/system/bin/sh
SU
busybox mount -o remount,rw /
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /storage/sdcard0
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:61 /storage/sdcard0
if busybox mount | busybox grep vold/179:61; then
busybox mount -o bind /data/media /storage/external_SD
chmod -R 0777 /storage/external_SD
fi
Help me please :laugh:
raukas said:
i need help i dont know how transpose this mod for cyanogenmod (PAC-rom)
code:
#!/system/bin/sh
SU
busybox mount -o remount,rw /
busybox mount -t vfat -o umask=0000 /dev/block/vold/179:61 /storage/sdcard0
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:61 /storage/sdcard0
if busybox mount | busybox grep vold/179:61; then
busybox mount -o bind /data/media /storage/external_SD
chmod -R 0777 /storage/external_SD
fi
Help me please :laugh:
Click to expand...
Click to collapse
AFAIK, this mod will not work with CM10.1 / 10.2.
There is no easy means to switch between emulated storage and external sdcard since JB(4.2.2).
The only way to disable internal sd emulation is to recompile the rom with this commit included.
(correct me if im wrong)
nfs1mw said:
AFAIK, this mod will not work with CM10.1 / 10.2.
There is no easy means to switch between emulated storage and external sdcard since JB(4.2.2).
The only way to disable internal sd emulation is to recompile the rom with this commit included.
(correct me if im wrong)
Click to expand...
Click to collapse
You are correct. OP use mateo1111 PAC (if p760-p768) or any of the p769 ports.
They have the fake internal SD removed.
Sent from my LGMS769 using XDA Premium 4 mobile app
Hallo, I want to know how I can switch the SD cards from external to internal in CM11?
I didn't find vold.fstab.
Thanks
SWTR said:
Hallo, I want to know how I can switch the SD cards from external to internal in CM11?
I didn't find vold.fstab.
Thanks
Click to expand...
Click to collapse
Since 10.2 I've done it by uncommenting the #persist in the Vold section toward the end of the build.prop but it isn't working for me in cm11. At least on my Moto Bionic that works. I still can't find a way but if you find out how I'd love to know.
Sent from my Bionic
bump also looking for solution
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/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:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
It ain't working
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/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:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Installed the Script manager,wrote the scripts but while executing it says no unmount command found....
vivin007 said:
Installed the Script manager,wrote the scripts but while executing it says no unmount command found....
Click to expand...
Click to collapse
What phone?
Samsung Galaxy Tab P1000
adx3660 said:
What phone?
Click to expand...
Click to collapse
P1000 Installed with Cm11 terecheng 25-12-2013.....
External to Internal sdcard app also is a no go.....its only a partial success
vivin007 said:
P1000 Installed with Cm11 terecheng 25-12-2013.....
External to Internal sdcard app also is a no go.....its only a partial success
Click to expand...
Click to collapse
I am sorry @vivin007 I don't have that device.. but I suggest you to double check the code that u typed in and try to ask in your device section the code and how to mount and unmount sd.. I am really2 sorry..
Up!
Sorry, but also looking for a better solution than linking!
I am currently trying this http://forum.xda-developers.com/showpost.php?p=48876834&postcount=472
so far so good but havent tested it much, i think games run slower..
No Problem dude
adx3660 said:
I am sorry @vivin007 I don't have that device.. but I suggest you to double check the code that u typed in and try to ask in your device section the code and how to mount and unmount sd.. I am really2 sorry..
Click to expand...
Click to collapse
Ha ha ha ....No Problem dude...You did a great Job helping me!
BTW Wish you a Happy New Year....
Will find a Solution....
vivin007 said:
Ha ha ha ....No Problem dude...You did a great Job helping me!
BTW Wish you a Happy New Year....
Will find a Solution....
Click to expand...
Click to collapse
Happy New Year too.. don't forget to share if u find a solution,,
Found it for P1/L/N Tab
adx3660 said:
Happy New Year too.. don't forget to share if u find a solution,,
Click to expand...
Click to collapse
Got Sd switched @adx3660 dude for P1/L/N Tab after Requesting such a feature with the Terenceng dev in his CM11 Roms, he was kind enough to build it for me.
He has asked me to test it, I am going to do it Now.
Folder mount
Gesendet von meinem Xperia SP
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/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:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Thanks, this worked on my galaxy ace plus! But having unmount before mount threw some error like device is busy or something, works if I just have the mount command.
adx3660 said:
Use script manager to execute this script at boot..
For GalaxySL = i9003
#!/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:49 /mnt/media_rw/sdcard0
mount -t vfat -o uid=1023,gid=1023 /dev/block/vold/179:1 /mnt/media_rw/sdcard1
Can't be installed inside "init.d" folder.. Suggest to use /data..
Replace the id = 179:49 and 179.1 according to your device internal and external id.You can check them by executing the command:
mount | grep sdcard0
and
mount | grep sdcard1
to swap change the id.. change the sdcard0 id to sdcard1..
Click to expand...
Click to collapse
Cant execute those commands with terminal?
TecknoFreak said:
Cant execute those commands with terminal?
Click to expand...
Click to collapse
Why not give it a test.. :good:
p/s: I am not responsible for anything happen while / when you using this script..
Guys Im a newbie here but Ive been looking for a way to swap my Galaxy Tab 2 7'0's (running CM11 ) external sd with the internal memory. ive tried several scripts and guides but I just cant seem to find a solution. Is there a memory swap mod made for it or can anyone help me with that.
Hi can u help me? how to swap memory with 2.5 build.. i have some trouble with that.. (newbie here )
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