Error When Attempting to Enable Swap - myTouch 3G Slide Q&A, Help & Troubleshooting

Ok, so quick question. I have a 32MB linux-swap partition i created on my sd card. Using Darktremors a2ext i attempted to activate the swap partition i get the following error:
swapon: /dev/block/mmcblk0p3: Function not implemented
I also tried using the app "Swapper 2" from the market but I get the same error. I know I have the partition created correctly on the SD card so why can't I activate it? Thanks in advance!

No ideas anyone?
Sent from my T-Mobile myTouch 3G Slide using XDA App

pettigrew95 said:
No ideas anyone?
Sent from my T-Mobile myTouch 3G Slide using XDA App
Click to expand...
Click to collapse
You really don't need swap with this device, but if you have to have it:
$su
#mkswap /dev/block/mmcblk0p2
#swapon /dev/block/mmcblk0p2

h.nocturna said:
You really don't need swap with this device, but if you have to have it:
$su
#mkswap /dev/block/mmcblk0p2
#swapon /dev/block/mmcblk0p2
Click to expand...
Click to collapse
After running the mkswap command it says "Setting up swapspace version 1, size = 33549824 bytes"
After running swapon command it says the same thing about function not implemented

Your sig says you are running Arayray.. might check with them, swap might not be compiled in their kernel and resources; just a thought.

Related

[Q] EXT4?

Is there any way to see if I have ext4 file system on my phone?
goto a terminal, or adb, and type mount...
the output tells what FS each partition is..
I think you could also do a nandroid backup. Mine looks for sd/ext4 and fails. I figure that's because I'm on an Ext4 Rom.
sd-ext is a swap partition, and used for the older apps2sd... nothing to do with ext4. most dont use sdext anymore though
chris41g said:
goto a terminal, or adb, and type mount...
the output tells what FS each partition is..
Click to expand...
Click to collapse
Thank you for your help. I did, but a whole bunch of stuff came up LOL....and being the noob than I am.....I have no idea what I'm looking at.... :/
xfilemanx said:
Thank you for your help. I did, but a whole bunch of stuff came up LOL....and being the noob than I am.....I have no idea what I'm looking at.... :/
Click to expand...
Click to collapse
In the terminal type the following
mount | grep ext4
This should show you only those partitions that are ext4
Sent from the communications console of the NX-01 using a universal translator
jarcher1971 said:
In the terminal type the following
mount | grep ext4
This should show you only those partitions that are ext4
Sent from the communications console of the NX-01 using a universal translator
Click to expand...
Click to collapse
thank you for your help
and thank you everyone for your patience with the noob

Combining internal and external sdcards as one storage unit? Android LVM?

Basically what im getting at is would it be possible to combine both storage units to where the os can mount them as one? In traditional Linux I would use LVM2.
Anybody? You think something like this would've been done already but I haven't found any directions on Google just a project page.
dude, desktop computers require an entire card in order to do this kind of stuff, it's called raid, and android isn't programmed to support it
Sent from my SPH-L900 using xda app-developers app
That is incorrect. Try looking into what an LVM actually is before attempting to answer. RAID is something completely different.
Edit: not trying to be a **** but your post had a condescending tone to it.
schnowdapowda is correct, LVM would be able to do this just fine if Android supported it, but as far as I can tell the Android system doesn't have the kernel modules or systems in place sadly. Otherwise it'd be no problem making a physical volume from the two SD partitions, then a volume group and logical volumes.
One down side is you would run into system overhead while the slower SD card is keeping LVM from writing to faster on-board "SD card" partition space.
I just run the following at boot time, and it swaps the internal and external cards... Note this is with the Perseus kernel.
Code:
busybox mount -o remount,rw /
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:49 /mnt/sdcard
if busybox mount | busybox grep vold/179:49; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
I saw this on a website and it works perfectly, just need to verify your dev/block/vold/NNN:NN mount point and make this change after the SDCard is initialized.
aramova said:
schnowdapowda is correct, LVM would be able to do this just fine if Android supported it, but as far as I can tell the Android system doesn't have the kernel modules or systems in place sadly. Otherwise it'd be no problem making a physical volume from the two SD partitions, then a volume group and logical volumes.
One down side is you would run into system overhead while the slower SD card is keeping LVM from writing to faster on-board "SD card" partition space.
I just run the following at boot time, and it swaps the internal and external cards... Note this is with the Perseus kernel.
Code:
busybox mount -o remount,rw /
busybox mount -t exfat -o umask=0000 /dev/block/vold/179:49 /mnt/sdcard
if busybox mount | busybox grep vold/179:49; then
busybox mount -o bind /data/media /mnt/extSdCard
fi
I saw this on a website and it works perfectly, just need to verify your dev/block/vold/NNN:NN mount point and make this change after the SDCard is initialized.
Click to expand...
Click to collapse
How well does this work for you? And do you do this at every boot or only when you want to swap? Also when running apps after you swap the two and all of your other apps are already installed on internal then you swap the two, can you still just open the app drawer click and run? Or do they no longer run after the switch.
Also after the switch how does that all work when going into recovery and wiping directory's/folders etc and flashing ROM's what will it wipe since the directories are switched?
What is the benefit of swapping?
Sent from my SPH-L900 using xda app-developers app
Tw1sted247 said:
How well does this work for you? And do you do this at every boot or only when you want to swap? Also when running apps after you swap the two and all of your other apps are already installed on internal then you swap the two, can you still just open the app drawer click and run? Or do they no longer run after the switch.
Also after the switch how does that all work when going into recovery and wiping directory's/folders etc and flashing ROM's what will it wipe since the directories are switched?
Click to expand...
Click to collapse
Sorry i had forgotten about this thread. This shouldn't effect app storage. Only SD storage and the mock SD storage partition on your internal memory. I believe it might screw up any apps you have installed on your external unless there is some mechanism that changes where the system thinks they're installed. And this wouldn't effect recovery as you cant run that script till startup.
Devi0124 said:
What is the benefit of swapping?
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
Being able to save stuff automatically to your external without in app configuration.
Anyway.. this isn't what I'm really looking for. As far as I'd be concerned.. the system overhead wouldn't be an issue as I would gladly take a slowdown in read and writes to my storage for the convenience of having it accesible like that. I guess its just a matter of some genius dev compiling LVM into their kernel.
Devi0124 said:
What is the benefit of swapping?
Sent from my SPH-L900 using xda app-developers app
Click to expand...
Click to collapse
More space
Sent from my SPH-L900 using xda app-developers app

apps to sd card(galaxy S3 mini)

Hi,
How can i put in my Samsung Galaxy S3 mini(android 4.1.2) my apps, to sd card. Step by step pls, if you Know.
Thanks.
kdidie said:
Hi,
How can i put in my Samsung Galaxy S3 mini(android 4.1.2) my apps, to sd card. Step by step pls, if you Know.
Thanks.
Click to expand...
Click to collapse
Also, I need to know how to put my apps to SD Card.
If you found a method please tell me
Link2sd
Sent from the dark side on my GT-I8190
I installed link2sd but when I try to move the app to sd card show me this error.
Sent from my GT-I8190 using xda premium
Follow this guide here http://forum.xda-developers.com/showthread.php?t=2087497
Don't move the apps to sd, just create a 'link'.
You need init.d support and a properly partitioned sd card. This guide will show you how.
Sent from the dark side on my GT-I8190
iKlutz said:
Follow this guide here http://forum.xda-developers.com/showthread.php?t=2087497
Don't move the apps to sd, just create a 'link'.
You need init.d support and a properly partitioned sd card. This guide will show you how.
Sent from the dark side on my GT-I8190
Click to expand...
Click to collapse
Thanks very much for the guide.
Here is an easy method to enable init.d support with an app [http://forum.xda-developers.com/showthread.php?t=1933849]
eduardd- said:
I installed link2sd but when I try to move the app to sd card show me this error.
Sent from my GT-I8190 using xda premium
Click to expand...
Click to collapse
I had the same problem with my S3 Mini, what i did is 1.Install Link2SD. wich created a mount script for the second partition to be mounted to /data/sdext2 at boottime
and then i also got the INSUFFICIENT SPACE error when i tried to move. so i looked for the init.d script at /etc/init.d/ its called link2sd or someting like that and then 2. i manually changed that script to include "mount -o bind" commands so i could link manually my copied data maps on the second partition to the 'local' /sdcard/Android/data or ../obb
it worked but you have to remount the /etc directory to get write acces to be able to change the init scripts and also you are depending on a kernel wich supports init.d scripts.
took me a few days to figure it out but i just got my first android since 2 weeks and only have some linux/unix experience so i get the commands.
dhscholtus said:
I had the same problem with my S3 Mini, what i did is 1.Install Link2SD. wich created a mount script for the second partition to be mounted to /data/sdext2 at boottime
and then i also got the INSUFFICIENT SPACE error when i tried to move. so i looked for the init.d script at /etc/init.d/ its called link2sd or someting like that and then 2. i manually changed that script to include "mount -o bind" commands so i could link manually my copied data maps on the second partition to the 'local' /sdcard/Android/data or ../obb
it worked but you have to remount the /etc directory to get write acces to be able to change the init scripts and also you are depending on a kernel wich supports init.d scripts.
took me a few days to figure it out but i just got my first android since 2 weeks and only have some linux/unix experience so i get the commands.
Click to expand...
Click to collapse
Can you explain better wnat you changed in that file, please?
I menage to find it after all... now i don't know what to change...
THX
#!/system/bin/sh
#added by link2sd
LOG=/data/link2sd-11link2sd.log
echo "$(date) mounting..." > $LOG
mount -t vfat -o rw /dev/block/vold/179:98 /data/sdext2 1>>$LOG 2>>$LOG
mount -t vfat -o rw /dev/block/mmcblk1p2 /data/sdext2 1>>$LOG 2>>$LOG
mount >> $LOG
echo "$(date) mount finished" >> $LOG
i found one thing...
after root the phone, use "GL to SD"
it will move the games data to sd card, but apps not able...
use directory bind to move data games
maulana98 said:
use directory bind to move data games
Click to expand...
Click to collapse
How , can you explain please
I got a Samsung S3 Mini from AT&T the other day and I can install apps to sd card with the stock rom! here are my phone specs:
Model number: Sumsung-SM-G730A
Android version:
4.2.2
Baseband version:
G730AUCUAMH4
Kernel Version:
3.4.0-1299773
[email protected] #1
Wed Aug 21 13:15:42 KST 2013
Build version:
JDQ39.G730AUCUAMH4
Hi
I use this program and it works very good https://play.google.com/store/apps/details?id=com.slf.ListglApp
1. Install
2. options/move data
3. Select apps to move
4. start, it will work,
5. each time you wanna play or run any app only select mount (the chain in the right side), if you wanna move more apps select unmount and move data again, and that's all.
gafer said:
How , can you explain please
Click to expand...
Click to collapse
Go to: [TOOL] DirectoryBind - move data to external_sd (GameLoft, Shadowgun etc.) ROOT req.
Hey guys,
I think I've tried everything but it doesn't look like this is possible to do.
I tried to do it on an un-rooted I9300 4.1.2 with TouchWiz and had no success.
Now I'm using CM 10.2 and I still I'm trying to find something useful. And again with no success.
iKlutz said:
Follow this guide here http://forum.xda-developers.com/showthread.php?t=2087497
Don't move the apps to sd, just create a 'link'.
You need init.d support and a properly partitioned sd card. This guide will show you how.
Sent from the dark side on my GT-I8190
Click to expand...
Click to collapse
Thanks, it helped me a lot

[Q] Android 4.4.2 file swap (or swap partition) for increase RAM

Hi, everybody! dows anyone know if the file swap or the partition swap for ram will work on kitkat? and if yes, is there a tutoriali that i can read? thank you all
jam90 said:
Hi, everybody! dows anyone know if the file swap or the partition swap for ram will work on kitkat? and if yes, is there a tutoriali that i can read? thank you all
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2095573
hack4er said:
http://forum.xda-developers.com/showthread.php?t=2095573
Click to expand...
Click to collapse
Thanks, i already knows what that apps do...do you know if there's a manually mode for the file.swap or if there's a tutorial for the swap partition? And do they works on kitkat?
Sent from my GT-I8150 using xda app-developers app
You can create a swapfile from terminal emulator. I suggest you to use internal memory, but if you have swapped your memory so it would be external memory.
First, Go to term. Then type
Su
targ=/external_sd/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=512
mkswap $targ
swapon $targ
For "count=512" you can change the number to other swap size that you want.
You must to enable the swap ram on every boot from term again. Its simple, just type;
Su
Swapon /external_sd/.swapfile
Nb: you can change "external_sd" with "sdcard". Its up to you, but choose a disk that have more space to swap.
Sent from my GT-I8150 using xda premium
eryzerz said:
You can create a swapfile from terminal emulator. I suggest you to use internal memory, but if you have swapped your memory so it would be external memory.
First, Go to term. Then type
Su
targ=/external_sd/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=512
mkswap $targ
swapon $targ
For "count=512" you can change the number to other swap size that you want.
You must to enable the swap ram on every boot from term again. Its simple, just type;
Su
Swapon /external_sd/.swapfile
Nb: you can change "external_sd" with "sdcard". Its up to you, but choose a disk that have more space to swap.
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
This works on cm10? just for curiosity
It work on all android version.
Sent from my GT-I8150 using xda premium
what advantage of this swap campare to turbo boost..because turbo boost will make pgone laggy after 2,3 days if phone not reboot
Sent from my GT-I8150 using Tapatalk 4
kacanghantu said:
what advantage of this swap campare to turbo boost..because turbo boost will make pgone laggy after 2,3 days if phone not reboot
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
There's no specific different, turbo boost using space for swap in /cache,/data and /system, normal swapram using /sdcard or /external_sd. Just that.
For performance, try it by yourself. Test by playing a game, not antutu.
If you're using normal swapram u can change the swappinnes value easily with performance control app. 0-50 for a good perform, 51-100 for heavy use(hard gaming,etc).
Sent from my GT-I8150 using xda premium
eryzerz said:
There's no specific different, turbo boost using space for swap in /cache,/data and /system, normal swapram using /sdcard or /external_sd. Just that.
For performance, try it by yourself. Test by playing a game, not antutu.
If you're using normal swapram u can change the swappinnes value easily with performance control app. 0-50 for a good perform, 51-100 for heavy use(hard gaming,etc).
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
so that mean the only difference is where the swap file created..thanks brother
Sent from my GT-I8150 using Tapatalk 4
kacanghantu said:
so that mean the only difference is where the swap file created..thanks brother
Sent from my GT-I8150 using Tapatalk 4
Click to expand...
Click to collapse
Yes, you got it. My pleasure brother
Sent from my GT-I8150 using xda premium
it always tell me that swapon failed !!!!
eryzerz said:
You can create a swapfile from terminal emulator. I suggest you to use internal memory, but if you have swapped your memory so it would be external memory.
First, Go to term. Then type
Su
targ=/external_sd/.swapfile
dd if=/dev/zero of=$targ bs=$((1024*1024)) count=512
mkswap $targ
swapon $targ
For "count=512" you can change the number to other swap size that you want.
You must to enable the swap ram on every boot from term again. Its simple, just type;
Su
Swapon /external_sd/.swapfile
Nb: you can change "external_sd" with "sdcard". Its up to you, but choose a disk that have more space to swap.
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
Uhh well i got 1.6gb on my device and i type count=500 but it could use all my phone space is the number wrong or what?
it says invalid argument
terminal emu. swaped on sd card but say invalid argument when swapon...pls help

[4.3] Can't mount external partition with Link2SD on rooted Xperia M

Hi all,
I have a sony Xperia M (C1905). Till some days ago I have the old android release with rooted access and link2sd. All worked good.
With the last 4.3 update I had some problems, since I'm not an expert android developer . However I managed to root my phone using the haresh311999 guide.
I have my phone rooted, checked also with Root checker. I've also SuperSu, BusyBox and Link2Sd app. I've enabled the debug mode and checked the MSC storage mode.
But in Link2sd I cannot mount my external partition in which I used to link all the bigger apps. I've an ext3 partition and before the 4.3 upgrade it worked good. Now If I try to rebuild the script I got an error:
Mounting script cannot be created (This string isn't the original one, since I'm not english).
"mount: Operation not supported on transport endpoint"
Click to expand...
Click to collapse
I've found in the forum that I should try this procedure but with adb I can't run adb mount or adb root:
adbd can't run as root in production builds
Click to expand...
Click to collapse
I've tried also with adb shell and su command, to mount system as r/w but till now I haven't succeded....
$ adb shell
$ su
# mount -o rw,remount /system
Click to expand...
Click to collapse
Any suggestion ?
You can try to set second partition with FAT32,,
My partition workin' perfect,,
Sent from my C1905 using XDA Premium 4 mobile app
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it... Now I just had an idea: I can try to do another partition with the minitool and try if there is only a filesystem problem...
must be ext4 on my working fine and fast
and i got bootloop :/
Root device clean partition and create new and mount script should be ok
Wysyłane z mojego C1905 za pomocą Tapatalk 2
orion_42 said:
Hi all,
I have a sony Xperia M (C1905). Till some days ago I have the old android release with rooted access and link2sd. All worked good.
With the last 4.3 update I had some problems, since I'm not an expert android developer . However I managed to root my phone using the haresh311999 guide.
I have my phone rooted, checked also with Root checker. I've also SuperSu, BusyBox and Link2Sd app. I've enabled the debug mode and checked the MSC storage mode.
But in Link2sd I cannot mount my external partition in which I used to link all the bigger apps. I've an ext3 partition and before the 4.3 upgrade it worked good. Now If I try to rebuild the script I got an error:
I've found in the forum that I should try this procedure but with adb I can't run adb mount or adb root:
I've tried also with adb shell and su command, to mount system as r/w but till now I haven't succeded....
Any suggestion ?
Click to expand...
Click to collapse
echo juned said:
You can try to set second partition with FAT32,,
My partition workin' perfect,,
Sent from my C1905 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
orion_42 said:
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it... Now I just had an idea: I can try to do another partition with the minitool and try if there is only a filesystem problem...
Click to expand...
Click to collapse
darekesp said:
must be ext4 on my working fine and fast
Click to expand...
Click to collapse
n00BXperia said:
and i got bootloop :/
Click to expand...
Click to collapse
darekesp said:
Root device clean partition and create new and mount script should be ok
Wysyłane z mojego C1905 za pomocą Tapatalk 2
Click to expand...
Click to collapse
Well, I am sure you must be using Link2Sd to mount games/applications on your Xperia.
Mind if I suggest that you can use FOLDER MOUNT
FOLDER MOUNT LINK
This is amazing little software which requires root but it doesnot do anything more than telling games where to find the OBB files.
In free version, you can mount upto 3 games where as in full version, you can use unlimited mounts!
Check it out and you wouldnot use Link2SD any more
orion_42 said:
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it....
Click to expand...
Click to collapse
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
Worked for me as well on Samsung Xcover2 GT-7710
br0ziliy said:
Worked for me as well on Samsung Xcover2 GT-7710
Click to expand...
Click to collapse
Had the same error, choose ext4 as the partition type and it created the script and asked me to reboot my phone just like it used to on all my other devices.
orion_42 said:
Also my ext3 was working good.
I don't want to lose all the data in the partition...
If there are some fixes I prefer to try before format it... Now I just had an idea: I can try to do another partition with the minitool and try if there is only a filesystem problem...
Click to expand...
Click to collapse
darekesp said:
must be ext4 on my working fine and fast
Click to expand...
Click to collapse
I couldn't believe that.
Will ext partitions work on our XM?
I had tried many times.
boot loop was the result :crying:
I had formatted all types of ext versions. no hope.
Now I am using Memory Swap (JB 4.3)
but still I want Link2SD to be worked.
I have Link2SD Pro App.
Will Link2SD work with swapping?
Now I have been using "nicky root" for rooting, since its a "full root" method.
I have a reserve of 5GB for second partition; not formatted.
Please guide me......
I have a LG L65, had the same problem, but could fix it
Hi, guys.
I have a LG L65 running Android 4.4.2 KitKat. I had the same problem. My phone was rooted (using towelroot), my SD Card was partitioned, but couldn't get the mount script. I tried what some of you said about creating an ext2 partition and choosing ext4 on Link2SD, and it worked.
Also, don't know if it matters or not, but I'll say it anyway; I was using FAT for my data partition, but switched to FAT32.
Great, ext4 did the trick. Thank you very much!
Sony E1 D2004 (4.4.2) fixed
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
*******
Also worked on my Sony E1 D2004 (4.4.2). Thanx, dangerzone!:good:
Who'd have thunk that 4 means 2? !!!
Rob
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
Thanks. Worked for me too..
Bootloop?
I did the ext4 option trick, but somehow now it just turns off suddenly after that and keeps looping at the boot until I remove the SD Card. Any tips?
PS: I also re-formatted the SD Card over to the ext4 format, and that didn't work either.
dangerzone said:
Same problem on a different device... solution: in Link2SD, choose EXT4 (even if the 2rd partition is actually EXT2/3).
This worked for me, and I didn't lose any data in the EXT2 partition. No reformatting needed.
Click to expand...
Click to collapse
Confirmed - 4 does in fact equal 2. Worked fine.
choosing ex4 partition is the solution
i choosed ex4 partition and the problem solved
thank you very much
LG L70
:laugh::laugh::laugh::good::good:
Not working for me in any way. I have the second partition formated ext3, and Link2Sd says the following for each format:
mount script cannot be created...
ext3
mount: operation not supported on transport end point
ext4
mount: invalid argument
ext2
mount: no such device
... ?... WTH is going on?
Sent from my LG-D855 using XDA Free mobile app
CNK80Q3MX said:
Not working for me in any way. I have the second partition formated ext3, and Link2Sd says the following for each format:
mount script cannot be created...
ext3
mount: operation not supported on transport end point
ext4
mount: invalid argument
ext2
mount: no such device
... ?... WTH is going on?
Sent from my LG-D855 using XDA Free mobile app
Click to expand...
Click to collapse
are your kernel support move app to sd feature?

Categories

Resources