A2sd

Vanteks1

New Member
Joined
Oct 12, 2010
Messages
4
Reaction score
0
Location
Orlando, Fl
Can someone please help me out, running D1-MIUI with slayers 1GHZ kernel.
Does MIUI support A2SD, I see the A2SD+ section in sd card settings but I can't seem to get it functioning correctly. I tried setting up Dark Tremors A2SD scripts as well and still no dice. :(

My 16GB sd card is formatted with a 512M ext3 partition, an 32M swap partition and the rest is fat32.

If anyone could help, these are my results when running A2SD

# a2sd
a2sd
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[*] Starting A2SD (Lite Version) in mode.
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[ ] Checking for ext partition
[ ] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p2: clean, 10/130560 files, 27008/522112 blocks
[ ] 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.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
# a2sd check
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.


could someone please help me out with this is you are experienced with Dark Tremors, or if anyone has A2SD running by using a different method i'd appreciate if you could fill me in or post a link to a good tut.
 

b00tleg82

New Member
Joined
Nov 17, 2009
Messages
8
Reaction score
0
Apps2SD-ext Help..

Can someone please help me out, running D1-MIUI with slayers 1GHZ kernel.
Does MIUI support A2SD, I see the A2SD+ section in sd card settings but I can't seem to get it functioning correctly. I tried setting up Dark Tremors A2SD scripts as well and still no dice. :(

My 16GB sd card is formatted with a 512M ext3 partition, an 32M swap partition and the rest is fat32.

If anyone could help, these are my results when running A2SD

# a2sd
a2sd
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[*] Starting A2SD (Lite Version) in mode.
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[ ] Checking for ext partition
[ ] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p2: clean, 10/130560 files, 27008/522112 blocks
[ ] 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.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
# a2sd check
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.


could someone please help me out with this is you are experienced with Dark Tremors, or if anyone has A2SD running by using a different method I'd appreciate if you could fill me in or post a link to a good tut.

+1
to this! I am not the one to bump a thread or even post but I have been having fits trying to get my /dev/block/mmcblk0p2 to mount to /sd-ext! I have searched and searched and messed up my rom many times trying to use "hacky" scripts and system file edits. The crazy thing is in root explorer /sd-ext shows up but when I open the folder it does not show free/used space. Also when I, "/mount -o rw /dev/block/mmcblk0p2 /sd-ext" from phone terminal or adb shell it returns the following; mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument. Ran a logcat because someone said this error is due to the fact the file that is trying to be created already exists in /mnt/secure/asec folder. Logcat did not return anything pointing to this. To be safe I deleted all files contained in that folder, but this also produced the same error when attempting to mount /sd-ext. I have also tried add the following 05mountsd file

[ spoiler]
#!/system/bin/sh
#
# mount ext[234] partition from sd card

mknod /dev/block/mmcblk0 b 179 0
mknod /dev/block/mmcblk0p1 b 179 1
mknod /dev/block/mmcblk0p2 b 179 2
mknod /dev/block/mmcblk0p3 b 179 3

mount -o remount, rw /
mkdir /sd-ext
mount -o remount, ro /

BB="logwarapper busybox";

if [ "$SD_EXT_DIRECTORY" = "" ];
then
SD_EXT_DIRECTORY=/sd-ext;
fi;

# find first linux partition on SD card
MMC=/dev/block/mmcblk0

# wait for the device to settle
COUNT=6;
until [ -b "$MMC" ] || [ $COUNT -lt 1 ];
do
sleep 1;
COUNT=$((COUNT-1));
done;

if [ -b "$MMC" ];
then
PARTITION=`busybox fdisk -l $MMC | awk '/^\// && $5 == 83 {print $1;exit;}'`

if [ -b "$PARTITION" ];
then
log -p i -t mountsd "Checking filesystems..";

if e2fsck -y $PARTITION
then
setprop cm.e2fsck.errors 0
if busybox mount -o noatime,nodiratime -t ext4 $PARTITION $SD_EXT_DIRECTORY ||
busybox mount -o noatime,nodiratime -t ext3 $PARTITION $SD_EXT_DIRECTORY ||
busybox mount -o noatime,nodiratime -t auto $PARTITION $SD_EXT_DIRECTORY
then
chown 1000:1000 $SD_EXT_DIRECTORY;
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
setprop cm.e2fsck.errors $?
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi
fi
fi
[/spoiler]

to /system/etc/inti.d permission are all set rwxr-x--- with hope it would mount /sd-ext at boot.

I am at a loss! I hope someone can help us out Vanteks1..

Also my mmcblk0p2 partition is ext4 not sure if it has to be ext3 or not i just assumed that android would read ext4 as Jameselle's kernel has support modules for ext4.

Just some info about my setup:
MIUI 1.7.2011 (rom)
Jazmezelle-kernel-250-110-compcache.zip (kernel) *compcache works great and uses /dev/block/mmcblk0p3 Linux swap partition*

no unauthorized mods or addons


Thanks in advance!
 

jamezelle

Premium Member
Premium Member
Developer
Joined
Apr 11, 2010
Messages
620
Reaction score
0
Can someone please help me out, running D1-MIUI with slayers 1GHZ kernel.
Does MIUI support A2SD, I see the A2SD+ section in sd card settings but I can't seem to get it functioning correctly. I tried setting up Dark Tremors A2SD scripts as well and still no dice. :(

My 16GB sd card is formatted with a 512M ext3 partition, an 32M swap partition and the rest is fat32.

If anyone could help, these are my results when running A2SD

# a2sd
a2sd
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[*] Starting A2SD (Lite Version) in mode.
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[ ] Checking for ext partition
[ ] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p2: clean, 10/130560 files, 27008/522112 blocks
[ ] 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.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
# a2sd check
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.


could someone please help me out with this is you are experienced with Dark Tremors, or if anyone has A2SD running by using a different method I'd appreciate if you could fill me in or post a link to a good tut.

+1
to this! I am not the one to bump a thread or even post but I have been having fits trying to get my /dev/block/mmcblk0p2 to mount to /sd-ext! I have searched and searched and messed up my rom many times trying to use "hacky" scripts and system file edits. The crazy thing is in root explorer /sd-ext shows up but when I open the folder it does not show free/used space. Also when I, "/mount -o rw /dev/block/mmcblk0p2 /sd-ext" from phone terminal or adb shell it returns the following; mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument. Ran a logcat because someone said this error is due to the fact the file that is trying to be created already exists in /mnt/secure/asec folder. Logcat did not return anything pointing to this. To be safe I deleted all files contained in that folder, but this also produced the same error when attempting to mount /sd-ext. I have also tried add the following 05mountsd file

[ spoiler]
#!/system/bin/sh
#
# mount ext[234] partition from sd card

mknod /dev/block/mmcblk0 b 179 0
mknod /dev/block/mmcblk0p1 b 179 1
mknod /dev/block/mmcblk0p2 b 179 2
mknod /dev/block/mmcblk0p3 b 179 3

mount -o remount, rw /
mkdir /sd-ext
mount -o remount, ro /

BB="logwarapper busybox";

if [ "$SD_EXT_DIRECTORY" = "" ];
then
SD_EXT_DIRECTORY=/sd-ext;
fi;

# find first linux partition on SD card
MMC=/dev/block/mmcblk0

# wait for the device to settle
COUNT=6;
until [ -b "$MMC" ] || [ $COUNT -lt 1 ];
do
sleep 1;
COUNT=$((COUNT-1));
done;

if [ -b "$MMC" ];
then
PARTITION=`busybox fdisk -l $MMC | awk '/^\// && $5 == 83 {print $1;exit;}'`

if [ -b "$PARTITION" ];
then
log -p i -t mountsd "Checking filesystems..";

if e2fsck -y $PARTITION
then
setprop cm.e2fsck.errors 0
if busybox mount -o noatime,nodiratime -t ext4 $PARTITION $SD_EXT_DIRECTORY ||
busybox mount -o noatime,nodiratime -t ext3 $PARTITION $SD_EXT_DIRECTORY ||
busybox mount -o noatime,nodiratime -t auto $PARTITION $SD_EXT_DIRECTORY
then
chown 1000:1000 $SD_EXT_DIRECTORY;
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
setprop cm.e2fsck.errors $?
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi
fi
fi
[/spoiler]

to /system/etc/inti.d permission are all set rwxr-x--- with hope it would mount /sd-ext at boot.

I am at a loss! I hope someone can help us out Vanteks1..

Also my mmcblk0p2 partition is ext4 not sure if it has to be ext3 or not i just assumed that android would read ext4 as Jameselle's kernel has support modules for ext4.

Just some info about my setup:
MIUI 1.7.2011 (rom)
Jazmezelle-kernel-250-110-compcache.zip (kernel) *compcache works great and uses /dev/block/mmcblk0p3 Linux swap partition*

no unauthorized mods or addons


Thanks in advance!

the first thing that should be in your script is

insmod /system/lib/modules/ext4.ko but i just checked and my modules arent loading, ill try to build them into the kernel and let you know how it goes.
 

b00tleg82

New Member
Joined
Nov 17, 2009
Messages
8
Reaction score
0
Can someone please help me out, running D1-MIUI with slayers 1GHZ kernel.
Does MIUI support A2SD, I see the A2SD+ section in sd card settings but I can't seem to get it functioning correctly. I tried setting up Dark Tremors A2SD scripts as well and still no dice. :(

My 16GB sd card is formatted with a 512M ext3 partition, an 32M swap partition and the rest is fat32.

If anyone could help, these are my results when running A2SD

# a2sd
a2sd
[ ] Launching Darktremor A2SD
Starting Darktremor A2SD version 2.7 Update 3r1
[ ] Mounting /system as read-write
[*] Starting A2SD (Lite Version) in mode.
[ ] Searching for Mount Point...
[ ] Mount point found..no further action required.
[ ] Checking for ext partition
[ ] Ext partition found.
[ ] Checking Ext partition...
e2fsck 1.40.8 (13-Mar-2008)
/dev/block/mmcblk0p2: clean, 10/130560 files, 27008/522112 blocks
[ ] 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.
[ ] Setting File System Ready property to 1.
[ ] Remounting /system to read-only.
# a2sd check
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.


could someone please help me out with this is you are experienced with Dark Tremors, or if anyone has A2SD running by using a different method I'd appreciate if you could fill me in or post a link to a good tut.

+1
to this! I am not the one to bump a thread or even post but I have been having fits trying to get my /dev/block/mmcblk0p2 to mount to /sd-ext! I have searched and searched and messed up my rom many times trying to use "hacky" scripts and system file edits. The crazy thing is in root explorer /sd-ext shows up but when I open the folder it does not show free/used space. Also when I, "/mount -o rw /dev/block/mmcblk0p2 /sd-ext" from phone terminal or adb shell it returns the following; mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument. Ran a logcat because someone said this error is due to the fact the file that is trying to be created already exists in /mnt/secure/asec folder. Logcat did not return anything pointing to this. To be safe I deleted all files contained in that folder, but this also produced the same error when attempting to mount /sd-ext. I have also tried add the following 05mountsd file

[ spoiler]
#!/system/bin/sh
#
# mount ext[234] partition from sd card

mknod /dev/block/mmcblk0 b 179 0
mknod /dev/block/mmcblk0p1 b 179 1
mknod /dev/block/mmcblk0p2 b 179 2
mknod /dev/block/mmcblk0p3 b 179 3

mount -o remount, rw /
mkdir /sd-ext
mount -o remount, ro /

BB="logwarapper busybox";

if [ "$SD_EXT_DIRECTORY" = "" ];
then
SD_EXT_DIRECTORY=/sd-ext;
fi;

# find first linux partition on SD card
MMC=/dev/block/mmcblk0

# wait for the device to settle
COUNT=6;
until [ -b "$MMC" ] || [ $COUNT -lt 1 ];
do
sleep 1;
COUNT=$((COUNT-1));
done;

if [ -b "$MMC" ];
then
PARTITION=`busybox fdisk -l $MMC | awk '/^\// && $5 == 83 {print $1;exit;}'`

if [ -b "$PARTITION" ];
then
log -p i -t mountsd "Checking filesystems..";

if e2fsck -y $PARTITION
then
setprop cm.e2fsck.errors 0
if busybox mount -o noatime,nodiratime -t ext4 $PARTITION $SD_EXT_DIRECTORY ||
busybox mount -o noatime,nodiratime -t ext3 $PARTITION $SD_EXT_DIRECTORY ||
busybox mount -o noatime,nodiratime -t auto $PARTITION $SD_EXT_DIRECTORY
then
chown 1000:1000 $SD_EXT_DIRECTORY;
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
setprop cm.e2fsck.errors $?
log -p e -t mountsd "Unable to repair filesystem, disabling apps2sd";
fi
fi
fi
[/spoiler]

to /system/etc/inti.d permission are all set rwxr-x--- with hope it would mount /sd-ext at boot.

I am at a loss! I hope someone can help us out Vanteks1..

Also my mmcblk0p2 partition is ext4 not sure if it has to be ext3 or not i just assumed that android would read ext4 as Jameselle's kernel has support modules for ext4.

Just some info about my setup:
MIUI 1.7.2011 (rom)
Jazmezelle-kernel-250-110-compcache.zip (kernel) *compcache works great and uses /dev/block/mmcblk0p3 Linux swap partition*

no unauthorized mods or addons


Thanks in advance!

the first thing that should be in your script is

insmod /system/lib/modules/ext4.ko but i just checked and my modules arent loading, ill try to build them into the kernel and let you know how it goes.

Thanks! jamezelle you are the man...
 
Z

ZeroBarrier

Guest

+1
to this! I am not the one to bump a thread or even post but I have been having fits trying to get my /dev/block/mmcblk0p2 to mount to /sd-ext! I have searched and searched and messed up my rom many times trying to use "hacky" scripts and system file edits. The crazy thing is in root explorer /sd-ext shows up but when I open the folder it does not show free/used space. Also when I, "/mount -o rw /dev/block/mmcblk0p2 /sd-ext" from phone terminal or adb shell it returns the following; mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument. Ran a logcat because someone said this error is due to the fact the file that is trying to be created already exists in /mnt/secure/asec folder. Logcat did not return anything pointing to this. To be safe I deleted all files contained in that folder, but this also produced the same error when attempting to mount /sd-ext.

Sent you a pm, I can help you get it to work as I've done for about 8 people now.
 

tharris297

New Member
Joined
Sep 12, 2010
Messages
28
Reaction score
0

+1
to this! I am not the one to bump a thread or even post but I have been having fits trying to get my /dev/block/mmcblk0p2 to mount to /sd-ext! I have searched and searched and messed up my rom many times trying to use "hacky" scripts and system file edits. The crazy thing is in root explorer /sd-ext shows up but when I open the folder it does not show free/used space. Also when I, "/mount -o rw /dev/block/mmcblk0p2 /sd-ext" from phone terminal or adb shell it returns the following; mount: mounting /dev/block/mmcblk0p2 on /sd-ext failed: Invalid argument. Ran a logcat because someone said this error is due to the fact the file that is trying to be created already exists in /mnt/secure/asec folder. Logcat did not return anything pointing to this. To be safe I deleted all files contained in that folder, but this also produced the same error when attempting to mount /sd-ext.

Sent you a pm, I can help you get it to work as I've done for about 8 people now.

Zerobarrier is a genius!
 

gimpyestrada

Member
Joined
Nov 30, 2010
Messages
162
Reaction score
0
Location
Wichita, KS
Top