[Q][void.][SOLVED] a2sd error. Mounting ext partition failed. - Optimus One, P500, V Q&A, Help & Troubleshooting

Hello,
I would like to post this in void. rom but I don't have enough post count.
I install void. delta as per instruction, and create directory on the following order: kernel, a2sd, gingerbread, gapps, one reboot for one directory. Then after installing Launcher Pro I realize I only have 138MB left on internal memory. I tried installing all my previous application and now got only 62MB left.
I partitioned the sd card as instructed, 0 for swap, 512 for ext, convert to ext3 then ext4, wipe everything, and after flashing it is all the same: apps still resided in internal memory.
I wonder what's wrong. Here the output for command a2sd check:
Code:
# a2sd check
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[ ] Starting A2SD in check mode
[ ] Running A2SD Check Program.
[ ] Searching for Mount Point...
[*] Mount point /system/sd located.
[ ] Checking for ext partition
[X] Ext partition found, but not mounted.
Your rom may not be setup to run A2SD.
Check with your rom developer if the boot image
is programmed to run A2SD.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
Here the output for command a2sd remove:
Code:
# a2sd remove
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[ ] Starting A2SD in remove mode
[ ] Running A2SD Setup Program.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Remounting /system to read-write
[ ] Checking for ext partition
[!] Ext partition found, but not mounted.
[ ] Mounting ext partitions
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Invalid argument
[X] Mounting ext partition failed.
[X] Can't continue script...aborting.
[ ] Remounting /system to read-only.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
Here the output for command a2sd install:
Code:
# a2sd install
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[ ] Starting A2SD in install mode
[ ] Running A2SD Setup Program.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Remounting /system to read-write
[ ] Checking for ext partition
[!] Ext partition found, but not mounted.
[ ] Mounting ext partitions
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Invalid argument
[X] Mounting ext partition failed.
[X] Can't continue script...aborting.
[ ] Remounting /system to read-only.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
And the last command a2sd repair show (perhaps) some info:
Code:
# a2sd repair
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[ ] Starting A2SD in repair mode
[ ] Running A2SD Repair Program.
[ ] Searching for Mount Point...
[!] Mount point found..no further action required.
[ ] Remounting /system to read-write
[ ] Checking for ext partition
[!] Ext partition found, but not mounted.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p2 has unsupported feature(s): extents gdt_checksum
e2fsck: Get a newer version of e2fsck!
[ ] Mounting ext partitions
mount: mounting /dev/block/mmcblk0p2 on /system/sd failed: Invalid argument
[X] Mounting ext partition failed.
[X] Can't continue script...aborting.
[ ] Remounting /system as read-only.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
I tried searching the forum but cannot find the suitable solution.
Thank you very much for your time.
UPDATE:
After several re-flash I got app2sd working. Here is what I did:
- reboot into recovery
- wipe everything
- partition micro sd: swap => 0, ext => 1024
- convert ext2 to ext3
- convert ext3 to ext4
- enable usb storage
- copy rom file
- and while the storage is connected, format the ext partition (/dev/sdb2 if on Linux) as ext4 using GNOME's Disk Utility
- disable usb storage
- flash zip
- reboot
- first boot, check free space: 165 MB
- create directory kernel
- reboot
- check free space: 165 MB
- create directory a2sd
- reboot
- check free space: 178 MB
- dont' do anything, just reboot
- check free space: 193 MB
And a2sd check command give me these:
Code:
# a2sd check
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[ ] Starting A2SD in check mode
[ ] Running A2SD Check Program.
[ ] Searching for Mount Point...
[*] Mount point /system/sd located.
[ ] Checking for ext partition
/dev/block/mmcblk0p2 /system/sd ext4 rw,noatime,nodiratime,barrier=1,data=ordered 0 0
[*] Ext partition is mounted.
[ ] Checking A2SD links.
A2SD Status Report
===============================================================
Apps - [-] Linked to SD Card.
[-] File .noa2sd not found.
[*] Programs run from SD card
To run from internal storage, type a2sd remove
Private Apps - [-] Linked to SD Card.
[-] File .noa2sd not found.
[*] Private Programs run from SD card
To run from internal storage, type a2sd remove
Dalvik Cache - [-] Symbolically Linked.
[-] File .dalvikcache found.
[*] Dalvik runs from SD card
To run from internal storage, type a2sd nocache
To run from /cache partition, type a2sd cachepart
Swap - [!] Partition not present.
[!] Swap does not start.
ZipAlign - [!] Not running at boot.
Property Patch - [-] File System Ready property
found.
[*] Boot image init.rc patched.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
Thank you guys for your time. Have a nice weekend.

Try to convert ext2 to ext 3,then ext3 to ext4.I worked for me!

Had the same problem. I did as TheError said; i just wiped everything then repartitioned sd and it worked after reflashing

rosuvladut said:
Try to convert ext2 to ext 3,then ext3 to ext4.I worked for me!
Click to expand...
Click to collapse
Have done that too, but still not working.
kite86 said:
Had the same problem. I did as TheError said; i just wiped everything then repartitioned sd and it worked after reflashing
Click to expand...
Click to collapse
I notice you do wiping before partitioning. Will try that for next time flashing, might work for me.
UPDATE:
Done that too and still not working, but I can get it working now, will update the first post.

Hey one question.I'm using megatron and as the ROM said,it has apps to sd and dalvik to sd. But I feel I'm actually running out of space still.I would like to try out all this ext 3 ext 4 thing but I'm kinda stuck! Any suggestions???

AsherChua said:
Hey one question.I'm using megatron and as the ROM said,it has apps to sd and dalvik to sd. But I feel I'm actually running out of space still.I would like to try out all this ext 3 ext 4 thing but I'm kinda stuck! Any suggestions???
Click to expand...
Click to collapse
To check whether your a2sd working or not run this command on terminal emulator or adb shell:
Code:
a2sd check
If it working it should be output similar to mine in the first post.

export PATH=/data/local/bin:$PATH
sh-3.2$ export PATH=/data/local/bin:$PATH
sh-3.2$ a2sd check
rm: cannot remove '/data/dta2sd.lg2': Permission denied
cp: cannot create '/data/dta2sd.lg2': File exists
rm: cannot remove '/data/dta2sd.lg1': Permission denied
cp: cannot create '/data/dta2sd.lg1': File exists
rm: cannot remove '/data/dta2sd.log': Permission denied
[ ] Apps2SD is launching...
/system/bin/a2sd: line 22: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 23: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 24: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 31: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 35: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 36: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 37: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 38: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 39: /data/dta2sd.log: Permission denied
grep: /init.rc: Permission denied
tee: /data/dta2sd.log: Permission denied
__ _____
tee: /data/dta2sd.log: Permission denied
| \ |
tee: /data/dta2sd.log: Permission denied
| | |
tee: /data/dta2sd.log: Permission denied
|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)
tee: /data/dta2sd.log: Permission denied
/system/bin/launcha2sd: line 117: /data/dta2sd.log: Permission denied
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
tee: /data/dta2sd.log: Permission denied
[ ] Creating /cache/dc
tee: /data/dta2sd.log: Permission denied
mkdir: can't create directory '/cache/dc': Permission denied
tee: /data/dta2sd.log: Permission denied
chmod: /cache/dc: Permission denied
[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache
tee: /data/dta2sd.log: Permission denied
rm: can't stat '/cache/dalvik-cache': Permission denied
ln: /cache/dalvik-cache: Permission denied
tee: /data/dta2sd.log: Permission denied
/system/bin/launcha2sd: line 273: /data/dta2sd.log: Permission denied
[ ] Starting Apps2SD Check Program.
/system/bin/chka2sd: line 7: /data/dta2sd.log: Permission denied
grep: /init.rc: Permission denied
grep: /init.rc: Permission denied
tee: /data/dta2sd.log: Permission denied
[ ] Checking for ext partition
tee: /data/dta2sd.log: Permission denied
[X] Ext partition found, but not mounted.
tee: /data/dta2sd.log: Permission denied
Your rom may not be setup to run Apps2SD.
tee: /data/dta2sd.log: Permission denied
Check with your rom developer if the boot image
tee: /data/dta2sd.log: Permission denied
is programmed to run Apps2SD.
tee: /data/dta2sd.log: Permission denied
tee: /data/dta2sd.log: Permission denied
Your partition may be using an EXT4 partition,
tee: /data/dta2sd.log: Permission denied
but your rom may not support EXT4. Repartition
tee: /data/dta2sd.log: Permission denied
your SD card to use EXT2 or EXT3.
tee: /data/dta2sd.log: Permission denied
/system/bin/chka2sd: line 96: /data/dta2sd.log: Permission denied
/system/bin/launcha2sd: line 276: /data/dta2sd.log: Permission denied
/system/bin/launcha2sd: line 277: /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 41: /data/dta2sd.log: Permission denied
sh-3.2$
This is what I got.So is it working? The permission denied shows me something is not right.

Try running the command as superuser. Enter su first, allow permission if requested, then execute a2sd check.

export PATH=/data/local/bin:$PATH
sh-3.2$ export PATH=/data/local/bin:$PATH
sh-3.2$ su
sh-3.2# a2sd check
[ ] Apps2SD is launching...
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.2 (2010-09-30)
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[ ] Creating /cache/dc
[ ] Symlinking /cache/dalvik-cache to /data/dalvik-cache
[ ] Starting Apps2SD Check Program.
[ ] Checking for ext partition
[X] Ext partition found, but not mounted.
Your rom may not be setup to run Apps2SD.
Check with your rom developer if the boot image
is programmed to run Apps2SD.
Your partition may be using an EXT4 partition,
but your rom may not support EXT4. Repartition
your SD card to use EXT2 or EXT3.
sh-3.2#
Now I got this.Looks to me like I have the apps2sd?

Yes, you got a2sd installed, but it has problem mounting ext partition. This problem was similar to mine.
You may want to try formatting ext partition using computer. No need to re-flash, just format the (supposedly) ext partition with ext4 using computer, reboot your phone and the a2sd should have no problem anymore.
You can also check the first post for how I do it.

Alright! I'm not very good with the 'computer and phone' way! Is there a way to do this just by using the phone? And after doing that,will I lose all my data on phone or sd card?

AsherChua said:
Alright! I'm not very good with the 'computer and phone' way! Is there a way to do this just by using the phone? And after doing that,will I lose all my data on phone or sd card?
Click to expand...
Click to collapse
You can try formatting using recovery mode, see if it's working for the second time.
I tried re-wiping, re-partitioning and re-flashing about three time until I finally decide to format manually using computer.
Yes on sd card, if you decide to re-partitioning again. Yes on the phone, if you decide to flashing again.
But always do backup before any attempt.

Alright! I'll try to figure this out. What good will it do me once I finish this?

fixed
I had the same exact problem but managed to figure out a way to fix it
The problem was that the ext was ext4 and not ext3 so a2sd could not detect it, which didnt make sense because I had backed up my entire phone using clockwork mod touch and it was restoring as ext4
So I booted into parted magic and put the microsd card in a usb reader, it would not detect it properly with the phone
Then I backed up all the files on the ext4 partition (right click mount), then look for disk under file manager
Next I reformatted the ext4 as ext3
Lastly I copied all the files I had backed up to the ext3 partition.
When I booted back into my phone, all my apps were there and it was working fine.
For some reason when I use the restore sd-ext in clockworkmod it changes the partition to ext4
That was giving me the issues with the lost apps and the mounting ext partition error.

Related

DT apps2sd working right for me?

I posted this question in the unlocking forum, but it doesn't look like too many people check in there. Hope it isn't a problem to repeat it here. I really need an answer.
----------------------------------------
I have, I think successfully, installed apps2sd on my N1 (CM7 build 22). Titanium Backup shows the ext2 partition with 90MB used. And all my applications that used to be on the FAT32 partition have been moved to the phone, which I understand means that they are really on the ext2 partition of the sdcard.
But using terminal emulator to enter a2sd commands gives a bunch of errors (see below). Can someone tell me what the problem is?
$a2sd cachesd
cp: can't create '/data/dta2sd.lg1': Permission denied
rm: can't remove '/data/dta2sd.log': Permission denied [ ] Apps2SD is launching...
/system/bin/a2sd: line 24: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 25: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 26: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 35: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 37: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 38: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 39: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 40: can't create /data/dta2sd.log: Permission denied
/system/bin/a2sd: line 41: can't create /data/dta2sd.log: Permission denied
grep: /init.rc: Permission denied
tee: /data/dta2sd.log: Permission denied __ _____
tee: /data/dta2sd.log: Permission denied
| \ |
tee: /data/dta2sd.log: Permission denied
| | |
tee: /data/dta2sd.log: Permission denied
|__/ | Darktremor Apps2SD 2.7.5.3 Beta 3a (2011-01-25)
tee: /data/dta2sd.log: Permission denied
I'm in a similar situation. Any advice?
Got an answer in another forum. Using the on-phone terminal emulator requires superuser permission to be granted. The solution is to enter the command "su" before a2sd commands.
Another approach is to use adb from your computer, which bypasses the need for superuser permission.

a2sd no block device

Hi when i install a2sd on my Galaxy Gio then get i the follow log from a2sd check
Code:
a2sd check
[ ] GREP: Using ROM Busybox.
[ ] REBOOT: Using ROM Busybox.
[ ] FDISK: Using ROM Busybox.
[ ] CAT: Using ROM Busybox.
[ ] MKDIR: Using ROM Busybox.
[ ] RMDIR: Using ROM Busybox.
[ ] CHMOD: Using ROM Busybox.
[ ] MOUNT: Using ROM Busybox.
[ ] UMOUNT: Using ROM Busybox.
[ ] CP: Using ROM Busybox.
[ ] RM: Using ROM Busybox.
[ ] MV: Using ROM Busybox.
[ ] LN: Using ROM Busybox.
[ ] MORE: Using ROM Busybox.
[ ] MKNOD: Using ROM Busybox.
[ ] AWK: Using ROM Busybox.
[ ] SLEEP: Using ROM Busybox.
[ ] SYNC: Using ROM Busybox.
[ ] TEE: Using ROM Busybox.
__ _____
| \ |
| | |
|__/ | Darktremor Apps2SD 2.7.5.3 Beta 4a (2011-01-30)
[-] Checkpoint 1: Check for SD Card Fix and Implement.
[-] Checkpoint 2: Run Dalvik Heap Program (if exists).
[-] Checkpoint 3: Run Set Low Memory Killer Program (if exists).
[-] Checkpoint 4: Determine Mount Point.
[-] Checkpoint 5: Set Parameter Variables.
[ ] GetProp Command = /system/bin/toolbox getprop
[ ] SetProp Command = /system/bin/toolbox setprop
[ ] Mount Point = /system/sd
[-] Checkpoint 6: Insert CyanogenMod patch.
[-] Checkpoint 7: Complete Dalvik Cache Move (if applicable).
[-] Checkpoint 8: Resetting Dalvik Cache Partition
[-] Checkpoint 9: Switching Davlik Cache to Cache Partition (if applicable)
[-] Checkpoint 10: Checking for existence of command parameter
[-] Checkpoint 11: Check for a2sd help command
[-] Checkpoint 12: Check for a2sd check command
[ ] Starting Apps2SD Check Program.
Darktremor 2.7.5.3 Beta 4a Apps2SD Status Report
================================================================================
===
Legend: [Ô£ö]=Setting is correct
[ÔÇ╝]=Setting is correct, but not optimal.
[Ô£û]=Setting is incorrect and needs to be fixed or option is not availa
ble.
================================================================================
===
[COLOR="Red"]Block Device - [Ô£ö][/COLOR]
Mount Point - [Ô£ö] /system/sd
Support EXT2? - [Ô£ö] Yes
Support EXT3? - [Ô£û] No
Support EXT4? - [Ô£û] No
Apps - [ ] Regular directory.
[ ] No Apps2SD Flag File not found.
[Ô£û] Programs runs from Int. Storage.
Setup issue. Run a2sd repair to fix.
Private Apps - [ ] Regular directory.
[ ] No Apps2SD Flag File not found.
[Ô£û] Private Programs runs from Int. Storage.
Setup issue. Run a2sd repair to fix.
Dalvik Cache - [ ] Regular directory.
[ ] Dalvik to /cache flag file not found.
[ ] Dalvik to SD flag file not found.
[Ô£ö] Dalvik runs from Int. Storage.
To run from SD card, type a2sd cachesd.
To run from /cache partition, type a2sd cachepart.
Data - [ ] Program Data on Internal Storage.
Swap - [ ] Partition not present or no swap support.
[Ô£ö] Swap does not start.
ZipAlign - [Ô£ö] Not running at boot.
To activate it, type a2sd zipalign
Dalvik Heap(MB) - [Ô£ö] 64m
Low Memory
Killer Settings - [Ô£ö] 1536,2048,6144,8192,12288,15360
Note: Values are in pages.
1 page = 4KB memory.
Values represent the following:
1st number = Foreground App
2nd number = Visible App
3rd number = Secondary Server
4th number = Hidden App
5th number = Content Provider
6th number = Empty App
[Ôüç] For a list of commands that you can use with Apps2SD
Type: a2sd help
#
who knows the problem ?
does your GIO support a2sd Darktremor? to use a2sd , your boot.img must support it
zico_newbie said:
does your GIO support a2sd Darktremor? to use a2sd , your boot.img must support it
Click to expand...
Click to collapse
He makes a tut.
http://forum.xda-developers.com/showpost.php?p=16359561&postcount=302
But i get that error
strunkie said:
He makes a tut.
http://forum.xda-developers.com/showpost.php?p=16359561&postcount=302
But i get that error
Click to expand...
Click to collapse
strunkie said:
He makes a tut.
http://forum.xda-developers.com/showpost.php?p=16359561&postcount=302
But i get that error
Click to expand...
Click to collapse
Ô£ö maybe = checklist, there are word "ran a2sd to repair on your terminal after a2sd check, isnt it? , so lets write a2sd on your terminal to repair, so maybe your a2sd work but cheklist code error, lets try to move cache to ext and enable zipalign, lets read a2sd help and to move cache to ext, write a2sd cachesd on terminal and to zipalign write on terminal: a2sd zipalign
Sent from my GT-S5570 using XDA App
Sent from my GT-S5570 using XDA App

[Q] SD-EXT script for Android 4.2.2?

Hi is there a script that increases internal storage via sd-ext for Cyanogenmod 10.1 (android 4.2.2)?
If so could someone link it to me?
gymfreak7855 said:
Hi is there a script that increases internal storage via sd-ext for Cyanogenmod 10.1 (android 4.2.2)?
If so could someone link it to me?
Click to expand...
Click to collapse
Mounts2SD worked really well for me on 4.2.2; it's my a2sd script of choice. Here's the XDA thread about it.
Syd_M said:
Mounts2SD worked really well for me on 4.2.2; it's my a2sd script of choice. Here's the XDA thread about it.
Click to expand...
Click to collapse
That worked for me too!
gymfreak7855 said:
Hi is there a script that increases internal storage via sd-ext for Cyanogenmod 10.1 (android 4.2.2)?
If so could someone link it to me?
Click to expand...
Click to collapse
cronmod's int2ext
engr_exxi said:
cronmod's int2ext
Click to expand...
Click to collapse
That isnt working for me -_-
rhar**** said:
That isnt working for me -_-
Click to expand...
Click to collapse
you must use int2extv2.
scroll my signature for link.
gymfreak7855 said:
Hi is there a script that increases internal storage via sd-ext for Cyanogenmod 10.1 (android 4.2.2)?
If so could someone link it to me?
Click to expand...
Click to collapse
I was using link2sd with King Evo ROM but not if I'm so result. Nor well but if I use function works.
If someone recommended I would appreciate any Script
Create a file name 40int2ext then paste this.
Open notepad or notepad++.
Save file as 40int2ext
delete .txt extension at filename. (note you should set your pc to show extension file names)
You must have an ext partition at your sd card. I use ext4. You could choose among ext2/3/4 though.
As cronmod suggest the maximum size for partition must be 1GB/100mb of internal storage. I used about 512mb
From cronmod's int2ext
Code:
#!/system/bin/sh
#####################################
## CronMod INT2EXT+ - 02/21/2013 ##
## Written by CronicCorey [user=243864]@xda[/user] ##
## 40int2ext ##
#####################################
## Thanks to Mastermind1024 [user=3964321]@Xda F[/user]or helping to solve the IMEI and Baseband issues on some devices
## Thanks to vvFICKvv, DK75, and Dark Passenger [user=3964321]@Xda F[/user]or help to fix compatibility issues with Android 4.2.x
## Thanks to Mortaromarcello [user=4166799]@github[/user] for code to check if mmcblk0p2 exists
## Only continue if mmcblk0p2 exists
if [ ! -e /dev/block/mmcblk0p2 ]
then
exit
fi;
## Set SD cache size
SD_CACHE=/sys/devices/virtual/bdi/179:0/read_ahead_kb
if [ -e $SD_CACHE ]
then
busybox echo "1024" > $SD_CACHE;
fi;
## Make /sd-ext directory if needed and unmount /sd-ext if it already mounted
if [ ! -e /sd-ext ]
then
busybox mount -o remount,rw /;
busybox mkdir /sd-ext;
busybox mount -o remount,ro /;
else
busybox umount /sd-ext;
fi;
## Move /data mount point to /sd-ext
INT_DATA=$(busybox mountpoint -n /data | cut -d ' ' -f1)
busybox umount /data;
busybox mount $INT_DATA /sd-ext;
## Mount mmcblk0p2 to /data
busybox mount -o noatime,nodiratime,nosuid,nodev /dev/block/mmcblk0p2 /data;
busybox chown 1000:1000 /data;
busybox chmod 771 /data;
## Move existing files
if [ ! -e /data/app ]
then
busybox mv /sd-ext/* /data;
fi;
## Move /data, /misc, /nvram, /property, and /radio back to /sd-ext
for i in data misc nvram property radio;
do
if [ ! -e /sd-ext/$i ] && [ -e /data/$i ]
then
busybox mv /data/$i /sd-ext;
busybox mkdir /data/$i;
fi;
## Make Binds
if [ -e /data/$i ]
then
busybox mount -o bind /sd-ext/$i /data/$i;
fi;
done;
## Unmount /sd-ext
busybox umount /sd-ext;
sync;
############################################################################################################################################################
########################################################
## Bind Cache by CyanogenMod ##
## bind mount /data/local/download to /cache/download ##
## if cache partition is too small ##
########################################################
CACHESIZE=$(df -k /cache | tail -n1 | tr -s ' ' | cut -d ' ' -f2)
DATAONLY=$(getprop dalvik.vm.dexopt-data-only)
if [ "$DATAONLY" = "1" ]
then
NEEDED=60000
else
NEEDED=105000
fi;
if [ $CACHESIZE -lt $NEEDED ]
then
mount -o bind /data/local/download /cache/download;
fi;
rm /cache/download/downloadfile*.apk >/dev/null 2>&1;
sync;
############################################################################################################################################################
######################################################################
## Automatic ZipAlign by Wes Garner ##
## ZipAlign files in /data that have not been previously ZipAligned ##
## Thanks to oknowton for the changes ##
######################################################################
LOG_FILE=/data/zipalign.log
if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;
echo "Starting Automatic ZipAlign" | tee -a $LOG_FILE;
for apk in /data/app/*.apk ; do
zipalign -c 4 $apk;
ZIPCHECK=$?;
if [ $ZIPCHECK -eq 1 ]; then
echo ZipAligning $(basename $apk) | tee -a $LOG_FILE;
zipalign -f 4 $apk /cache/$(basename $apk);
if [ -e /cache/$(basename $apk) ]; then
cp -f -p /cache/$(basename $apk) $apk | tee -a $LOG_FILE;
rm /cache/$(basename $apk);
else
echo ZipAligning $(basename $apk) Failed | tee -a $LOG_FILE;
fi;
else
echo ZipAlign already completed on $apk | tee -a $LOG_FILE;
fi;
done;
echo "Automatic ZipAlign finished" | tee -a $LOG_FILE;
I used it and it works
engr_exxi said:
cronmod's int2ext
Click to expand...
Click to collapse
Yeah cronmod's didn't work for me.
PROBLEM!
I wanted to extend my EXT partition size. So for that, I used Mini Partition Tool Home Edition to unallocate everything and create the full partition as primary sd card. Then i rebooted into recovery (CWM) and partitioned my sd card and created ext partition of 512 mb. But now, I am unable to use that ext partition. I cant mount it, even in recovery! SD card is working fine but problem is EXT. I have tried it with TWRP too and tried to create a SWAP too. But no luck!
What to do now?
pls dont tell to buy a new SD card.
rhar**** said:
I wanted to extend my EXT partition size. So for that, I used Mini Partition Tool Home Edition to unallocate everything and create the full partition as primary sd card. Then i rebooted into recovery (CWM) and partitioned my sd card and created ext partition of 512 mb. But now, I am unable to use that ext partition. I cant mount it, even in recovery! SD card is working fine but problem is EXT. I have tried it with TWRP too and tried to create a SWAP too. But no luck!
What to do now?
pls dont tell to buy a new SD card.
Click to expand...
Click to collapse
You can't use the ext partition like the primary partition. It's either a script use it like link2sd,data2sd,ext2sd or anythingyoucanimagine2sd.
Try this method. After you partition your sdcard. and installed cronmod's int2ext. Try to reaplce the 40int2ext file with the one I provide. I also suggest to remove other scripts currently at the /system/etc/init.d folder but retain the two 00banner and 90userinit. You can use any root file browsers. Then restart your phone
engr_exxi said:
You can't use the ext partition like the primary partition. It's either a script use it like link2sd,data2sd,ext2sd or anythingyoucanimagine2sd.
Try this method. After you partition your sdcard. and installed cronmod's int2ext. Try to reaplce the 40int2ext file with the one I provide. I also suggest to remove other scripts currently at the /system/etc/init.d folder but retain the two 00banner and 90userinit. You can use any root file browsers. Then restart your phone
Click to expand...
Click to collapse
Thats fine. I have been using it before too.
But now i am unable to mount sd-ext, even through recovery! No use of scripts. They wont work and some of them may even make my phone go to bootloop.
I wanna know how do i partition it now. Some other method than CWM or TWRP.

Mount external partition using rooted Z3 with locked bootloader

Hello.
I just started messing around with my Z3 and so far followed the tutorial here https://forum.xda-developers.com/z3-compact/general/recovery-root-mm-575-lb-t3418714 to install root and recovery without unlocking the bootloader. Also took the chance to make a backup of the ta partition.
My objective was being able to mount an external ext4 partition so I could move game data and free some internal space. I believe the official kernel doesn't support init.d so I searched and found a script that worked and added it to the bottom of init.qcom.post_boot.sh.
Code:
### Init.d support ###
busybox run-parts /system/etc/init.d/
It's a very simple script that creates /sd-ext folder if it's missing and mounts /dev/block/mmcblk1p2 there
Code:
#!/system/bin/sh
#
# mounts ext partition from sd card
if [ ! -d /sd-ext ];
then
mount -o rw,remount /
install -m 774 -o 1000 -g 1000 -d /sd-ext
mount -o ro,remount /
fi
if [ ! -d /sd-ext ];
then
echo sd-ext not created >> /data/Test.log
else
mount -o rw -t ext4 /dev/block/mmcblk1p2 /sd-ext
fi
It was something that I got on some forum plus some trial and error and some Linux knowledge I have.
It seemed to work. The directory was created and mounted and I was able to move the games there using Titanium Backup.
But after I rebooted, the folder was there and all the data, but the apps don't show up on the apps list. I have to reinstall them...
Am I missing something? How can I fix this?

Android 10_Q system-as-root

As the thread starter state's...
Android 10 'System-As-Root' was never supposed to be released. Google it.
It never was. Nothing wrong with my fone. boot-debug.img IS the system-as-root, it just isnt a root app.
User-debug will be tied to your account, so dont expect to see them ever again...
So many naysayers saying my fone company got it wrong, that my fone is fecked up...
Na.. System-As-Root = root, as good as it's ever gonna be in the open, provided by boot-debug.
You have root but cant flash a dynamic /system. Magisk KILL's Developer/Feature Flags. With stock boot, feature flags is seen, but shows 'experimental' nothing else. With boot-debug, all feature flags are shown. First thing you'll do is flash magisk. Why does magisk remove this access? In particular for YOU is 'settings-dynamic-system' (used to overlay your gsi - needed to flash gsi). Without these feature flags to set, how will your magisk'd fone boot gsi on system-as-root a-only? It cant. Uninstall magisk... but magisk leaves traces on the fone that prevent earlier versions of magisk being installed, so how can we test earlier versions? That we know worked before?
Magisk'd boot removes the feature flags section from developer menu in Android 10_Q. Why?
This is needed to mount any gsi on an 'a-only' 'system-as-root', by mounting to 'upper' partition, which wipes when re-flashing stock boot.img. Do the work in the upper (like we do in twrp) reflash to the lower after 'sync' will retain your work before reflashing stock boot.img, so no root app needed, but we need one to cut down on how tedious it all is now.. at least they keep you at home... safe lol...
Magisk is only using overlay because it works in pie... in fact, all using magisk are using PIE exploits that dont work in android 10 system as root!! (just a noticed warning )
SystemRW works in PIE, even works in my system-as-root but useless, cause the point, being able to write system while in fone gui, is negated by the fact that system is ro, in about 20 different locations, in about a billion different mount points and well... right down to file sizes for each file in each partition contained within the super.img, but what I dont get is why it works in twrp, yet not in the gui.. (i'm in the directory so cant mount it when using fone, duh...)
As for the other tool to create rw in the super partition, I'll say this:
Pie is dying. Re-write your apps to work with the android 10 super, which is NOT the same as PIE super.img... (this is not a super.img ring any bell's?)
Both rw tool authors stuck on them damn pie's.. I'd swap parted to get the auto resize of space on the fly, I'd give my 10 cents worth, but you know better... if they kill all fones previous to android 10... google win.
They gave us root.
Overlay your own tools!
In a system-as-root booted fone. Feck safety net, I use my nokia 8310 to this day..
And for the naysayers...
D:\0\AdbStation>adb reboot download
D:\0\AdbStation>fastboot flashing unlock_critical
(bootloader) Start unlock flow
OKAY [ 4.196s]
Finished. Total time: 4.196s
D:\0\AdbStation>fastboot --disable-verity --disable-verification flash boot boot
-debug.img
Sending 'boot' (32768 KB) OKAY [ 0.764s]
Writing 'boot' OKAY [ 0.515s]
Finished. Total time: 1.420s
D:\0\AdbStation>fastboot -w
Erasing 'userdata' OKAY [ 0.452s]
mke2fs 1.46.2 (28-Feb-2021)
Creating filesystem with 6311931 4k blocks and 1581056 inodes
Filesystem UUID: aa3b871c-2496-11ec-9dd6-d71d0c30be37
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'userdata' (180 KB) OKAY [ 0.016s]
Writing 'userdata' OKAY [ 0.047s]
Erasing 'cache' OKAY [ 0.016s]
mke2fs 1.46.2 (28-Feb-2021)
Creating filesystem with 110592 4k blocks and 110592 inodes
Filesystem UUID: aa63fe86-2496-11ec-99f6-f719dec4c630
Superblock backups stored on blocks:
32768, 98304
Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
Sending 'cache' (68 KB) OKAY [ 0.016s]
Writing 'cache' OKAY [ 0.031s]
Erasing 'metadata' OKAY [ 0.016s]
Erase successful, but not automatically formatting.
File system type raw data not supported.
Finished. Total time: 0.889s
D:\0\AdbStation>fastboot reboot
Rebooting OKAY [ 0.000s]
Finished. Total time: 0.000s
D:\0\AdbStation>adb disable-verity
Error getting verity state. Try adb root first?
D:\0\AdbStation>adb root
restarting adbd as root
D:\0\AdbStation>adb shell
Armor_X5_Q:/ # whoami
root
Armor_X5_Q:/ # mount -o rw,remount /
'/dev/block/dm-3' is read-only
Armor_X5_Q:/ # mount -o rw,remount /sys
Armor_X5_Q:/ # cd sys
Armor_X5_Q:/sys # ls
block bus dev firmware kernel mtk_rgu
bootinfo class devices fs module power
Armor_X5_Q:/sys # bootinfo
/system/bin/sh: bootinfo: inaccessible or not found
127|Armor_X5_Q:/sys # bootinfo --help
/system/bin/sh: bootinfo: inaccessible or not found
127|Armor_X5_Q:/sys # devices
/system/bin/sh: devices: inaccessible or not found
127|Armor_X5_Q:/sys # cd dev
Armor_X5_Q:/sys/dev # ls
block char
Armor_X5_Q:/sys/dev # cd /
Armor_X5_Q:/ # cd /
Armor_X5_Q:/ # ls
acct d init.environ.rc metadata sbin
apex data init.rc mnt sdcard
bin debug_ramdisk init.usb.configfs.rc odm storage
bugreports default.prop init.usb.rc oem sys
cache dev init.zygote32.rc proc system
charger etc init.zygote64_32.rc product ueventd.rc
config init lost+found product_services vendor
Armor_X5_Q:/ # cd system
Armor_X5_Q:/system # cd bin
Armor_X5_Q:/system/bin # ls
AudioSetParam hwclock printenv
abb hwservicemanager printf
acpi i2cdetect procrank
adbd i2cdump profman
aee i2cget ps
aee_aed i2cset pwd
aee_aed64 iconv racoon
aee_archive id readlink
aee_core_forwarder idmap realpath
aee_dumpstate idmap2 reboot
am idmap2d recovery-persist
apexd ifconfig renice
app_process ime requestsync
app_process32 incident resize.f2fs
app_process64 incident_helper resize2fs
applypatch incidentd restorecon
appops init rm
appwidget inotifyd rmdir
art_apex_boot_integrity input rmmod
ashmemd insmod rss_hwm_reset
atrace install rtt
audioserver install-recovery.sh run-as
auditctl installd runcon
awk ionice schedtest
badblocks iorapd screencap
base64 iorenice screenrecord
basename ip sdcard
batterywarning ip-wrapper-1.0 secdiscard
bc ip6tables secilc
bcc ip6tables-restore sed
blank_screen ip6tables-save sendevent
blkid ip6tables-wrapper-1.0 sensorservice
blockdev iptables seq
bmgr iptables-restore service
boot_logo_updater iptables-save servicemanager
bootstat iptables-wrapper-1.0 setenforce
bootstrap keystore setprop
bpfloader keystore_cli_v2 setsid
bu kill settings
bugreport killall sgdisk
bugreportz kpoc_charger sh
bunzip2 lbs_dbg sha1sum
bzcat lcdc_screen_cap sha224sum
bzip2 ld.mc sha256sum
cal librank sha384sum
cameraserver linker sha512sum
cat linker64 showmap
charger linker_asan simpleperf
chcon linker_asan64 simpleperf_app_runner
chgrp lmkd sleep
chmod ln sload_f2fs
chown load_policy sm
chroot locksettings sort
chrt log split
cksum logcat ss
clatd logd sspm_log_writer
clear loghidlsysservice st_factorytests
cmd logname start
cmp logwrapper stat
comm losetup statsd
connsyslogger lpdump stop
content lpdumpd storaged
cp ls strings
cpio lshal stty
crash_dump32 lsmod surfaceflinger
crash_dump64 lsof svc
cut lspci swapoff
dalvikvm lsusb swapon
dalvikvm32 make_f2fs sync
dalvikvm64 md5sum sysctl
date mdlogger tac
dd mdnsd tail
debuggerd media tar
defrag.f2fs mediadrmserver taskset
device_config mediaextractor tc
devmem mediametrics tc-wrapper-1.0
dex2oat mediaserver tcpdump
dexdiag met-cmd tee
dexdump met_log_d telecom
dexlist microcom terservice
dexoptanalyzer migrate_legacy_obb_data.sh thermald
df mini-keyctl time
diff mkdir timeout
dirname mke2fs tombstoned
dmctl mkfifo toolbox
dmesg mkfs.ext2 top
dnsmasq mkfs.ext3 touch
dos2unix mkfs.ext4 toybox
dpm mknod tr
drmserver mkswap traced
du mktemp traced_probes
dumpstate mobile_log_d trigger_perfetto
dumpsys modemdbfilter_client true
e2fsck modinfo truncate
e2fsdroid modprobe tty
echo monkey tune2fs
egrep more tzdatacheck
emdlogger1 mount ueventd
emdlogger2 mountpoint uiautomator
emdlogger3 move_widevine_data.sh ulimit
emdlogger5 mtkbootanimation umount
env mtpd uname
expand mv uncrypt
expr nc uniq
fallocate ndc unix2dos
false ndc-wrapper-1.0 unlink
fgrep netcat unshare
file netd unzip
find netdiag uptime
flags_health_check netstat usbd
flock netutils-wrapper-1.0 usleep
fmt newfs_msdos uudecode
free nfcstackp uuencode
fsck.f2fs nice uuidgen
fsck_msdos nl vdc
fsverity_init nohup viewcompiler
fsync notify_traceur.override.sh vintf
gatekeeperd notify_traceur.sh vmstat
getconf nproc vold
getenforce nsenter vold_prepare_subdirs
getevent oatdump vr
getprop od vtservice
gpuservice oem-iptables-init.sh wait_for_keymaster
grep paste watch
groups patch watchdogd
gsi_tool perfetto wc
gsid pgrep which
gunzip pidof whoami
gzip ping wificond
head ping6 wm
heapprofd pkill xargs
hid pm xxd
hostname pmap yes
hw pppd zcat
Armor_X5_Q:/system/bin # getenforce
Enforcing
Armor_X5_Q:/system/bin # setenforce 0
Armor_X5_Q:/system/bin # get enforce
/system/bin/sh: get: inaccessible or not found
127|Armor_X5_Q:/system/bin # getenforce
Permissive
Armor_X5_Q:/system/bin # root mofo's, System-As-Root! boot-debug rocks!
> ^C
130|Armor_X5_Q:/system/bin # Who needs su
/system/bin/sh: Who: inaccessible or not found
127|Armor_X5_Q:/system/bin # whoami
root
Armor_X5_Q:/system/bin #

Categories

Resources