Roehsoft Cannot create swap file - Android Q&A, Help & Troubleshooting

I have got a Sandroid kernel for my Galaxy core 2....and it supports Swapping.
When i try to create a swap file,the app closes and starts on its own and i have to create a swap file again. Thus i am unable to create a swap file for increasing my ram....
I also have 'zram' active ...is it making problem,???
What should i do now???
Plzz help

How to disable zram?

It created swap file after i decreased swapiness....

How much swapiness should i select for 896 mb ram swap file

Related

[APP] Windows: Create Your Own Data.img Maker Application, +/- From Existing data.img

You NO larger need GParted or a Linux/Unix distro in order to make your own data.img! You NO longer need a command prompt either. However, you can use the command prompt still as an alternative option since this supports the commands in Windows. But this is an application.
With this Application you can create a brand NEW data.img or Add/Subtract space from an existing data.img. Example: You can take a 256MB data.img & make it convert to a 1GB data.img or take a 1GB data.img & make it 256MB data.img. Maximum space possible shown is based on the HDD or SD space left. So you could create a 150GB data.img if the drive had 150GB free space. It is completely safe & wont do anything to damage an existing data.img.
You will need WinRar or 7zip to extract the .RAR for this download.
WARNING!: DO NOT MAKE YOUR DATA.IMG Larger than 2GB because Android will not recognize the SD Card after. I will test this later.
1024 = 1GB
2048 = 2GB
4096 = 4GB
8192 = 8GB
Just double the #!
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to make a NEW(Fresh) Data.img:
NOTE: In order to start NEW you must have wiped your SD card or removed every file or folder such as: .REC, Cache, Android, OLD Data.img & any apps that took a folder on the card.
1. Open TopoResize
2. Select "Create New"
3. Select Save destination such as the SD Card & name it data
4. Select "Create File"
5. Select ext2 or ext3
6. Hit Ok & it will autorun.
DONE!
How to add space to an existing Data.img:
1. Open TopoResize
2. Select "Find File"
3. Locate file & select it
4. Use the size slider to select the extra space
5. Select "Resize File"
6. It will autorun
DONE!
How to subtract space to an existing Data.img:
Same instructions apply to add space just use the slider to go down & select resize file.
How to read the system.ext2 & transfer it over to the desktop:
1. Open Ext2explore
2. Select File & Open Image
3. Goto the system.ext2 & select it
4. Select Save
5. Select a destination to save it to. (Save it to a folder is preferred, so make one.)
INSTRUCTIONS TO CREATE A NEW or MODIFY EXISTING DATA.IMG via Command Prompt:
1. Open Command Prompt
2. Goto the directory of Data.img Maker
3. Enter dd if=/dev/zero bs=1M count=XXX >> data.img (XXX = Amount of Space for NEW such as 256MB is 256. Also if file is 256 already add 256 to make modified data.img = 512MB)
Alternative method! Instead of dd. You can use the following (only for new data.img):
Enter tfile data.img XXX (XXX = Size of MB ex. 1024 = 1GB. For new data.img only)
Alternative method! Instead of dd. You can use the following (only for modify data.img):
Enter Resize2fs -p data.img XXXXXX (1024*512MB=524288, always use 1024 times amount of space like 1024MB=1GB, so 1024*1024MB=1048576 for modify data.img only, can skip dd & just run this command for modify!)
4. Enter Mke2fs data.img (This will actually partition it so it doesnt come out as a bad read, MODIFY DATA IMAGE DOES NOT APPLY TO THIS STEP!)
5. Enter Resize2fs -f data.img (This will resize it for MODIFY ONLY! NOTE: can skip if you did the alternative method for existing!)
6. Enter E2fsck -f data.img (This checks to make everything is correct)
DONE!
Creating NEW Example:
d:\Software\DATA.IMG Maker\DATA.IMG Maker>dd if=/dev/zero bs=1M count=512 >> dat
a.img
rawwrite dd for windows version 0.6beta3.
Written by John Newbigin <[email protected]>
This program is covered by terms of the GPL Version 2.
512+0 records in
512+0 records out
d:\Software\DATA.IMG Maker\DATA.IMG Maker>mke2fs data.img
mke2fs 1.40.6 (09-Feb-2008)
data.img is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
131072 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67633152
64 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
d:\Software\DATA.IMG Maker\DATA.IMG Maker>e2fsck -f data.img
e2fsck 1.40.6 (09-Feb-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
data.img: 11/131072 files (9.1% non-contiguous), 18858/524288 blocks
Alternative examples:
Using tfile to create fresh data.img instead:
D:\Software\DATA.IMG Maker\DATA.IMG Maker>tfile data.img 512
data.img
sizeMB= 512
Using resize2fs only to resize w/o anything else:
D:\Software\DATA.IMG Maker\DATA.IMG Maker>resize2fs -p data.img 524288
resize2fs 1.40.6 (09-Feb-2008)
Resizing the filesystem on data.img to 524288 (1k) blocks.
Begin pass 1 (max = 30)
Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on data.img is now 524288 blocks long.
Download HERE! (Alternate)
NEED HELP? Comment here.
FINALLY! Thanks. I'm sure this will definitely come in useful. Downloading now... Testing later.
Yeah, really appreciated! Downloaded and will try out and report back (expanding standard 256MB data .img months old to 512MB or 1GB).
Nice App
I tried this out a few days ago to see how easy it was to use and how well. It was surprisingly simple. Good app. Worked like a charm.
OK. First of all a big thanks Viper.
But -yes it IS a stupid question but i don't get it - what does this application do beside from making a data.img with various sizes. I use android now for -i think it is- a long(er) time and just want to know what i can do to explore the System .
Cheers Bieka
Bieka said:
But -yes it IS a stupid question but i don't get it - what does this application do beside from making a data.img with various sizes. I use android now for -i think it is- a long(er) time and just want to know what i can do to explore the System .
Click to expand...
Click to collapse
That's all it does... Other questions?
arrrghhh said:
That's all it does... Other questions?
Click to expand...
Click to collapse
Uhm am i kickin' myself out if i ask what this (making various sizes of a data.img file) means?! Is this the storage size android gets?
That's all it does... Other questions?
Click to expand...
Click to collapse
Uhm am i kickin' myself out if i ask what this (making various sizes of a data.img file) means?! Is this the storage size android get?
Click to expand...
Click to collapse
You kno the way if you had an android device you would have sd storage and phone storage? and phone storage would be used for apps? well this data.img is lik a virtual phone memory, When you install apps they are stored on the data.img. And for alot of of ppl 256mb isnt enough, but unlike physical harware phone memory the data.img can be made bigger. understand?
Also a big tanks viper matrix, i was looking for a way to do this a couple weeks ago, i got it sorted by using someones modified rootfs to create a new data.img but this application will probly still come in handy
Aaaaah. Thanks a lot. Now i get it Simple and obvious .
Now i can say Thanks Viper for this aplication ^^ Great Job
Worked GREAT expanding trusty months-old data.img from nearly filled up 256MB to glorious 1GB. Now Android reports memory is over 990MB!
Dead simple: run the .bat, point to data.img on SD, move slider to expand size and go. Recognized errors, corrected them, then set to it's task which took a few minutes. Done.
Superb tool, waaay too unknown to group.
Open ext2explore & goto your system.ext2 & open it & then youll be able to save it to your desktop.

			
				
Use it on the desktop & make sure its extracted into a folder.
hi!
i linked my thread to your tool if you don't mind.
posting this app in the hd2 forums would bring it a LOT of attention.
@Viper
Excellent work on these apps! I was easily able to resize my data.img. I also tried ext2explore, which works well extract items from a system.ext2. A few questions:
- Would it be possible to have the data.img resizer use standard sizes, like 524288 for 512MB, 786432 for 768MB, 1048576 for 1GB (I think you get the idea). It seems like the resizing sizes are a bit arbitrary - or is there some sort of correlation between the standard sizes and the ones selectable in the app? Or, is there a way to put these values in manually?
- In the ext2explore app, will the possibly to Copy/Cut/Paste ever be added (or drag & drop from Explorer)?
I would love to see these apps developed further .
Again, great work!
P.S. I was hoping to be able to use ext2explore to add the BLAZN theme to the FRX03 build (see this thread) - that's when I realized I couldn't copy/paste.
Viper Matrix Wireless said:
You NO larger need GParted or a Linux/Unix distro in order to make your own data.img! You NO longer need a command prompt either. However, you can use the command prompt still as an alternative option since this supports the commands in Windows. But this is an application.
With this Application you can create a brand NEW data.img or Add/Subtract space from an existing data.img. Example: You can take a 256MB data.img & make it convert to a 1GB data.img or take a 1GB data.img & make it 256MB data.img. Maximum space possible shown is based on the HDD or SD space left. So you could create a 150GB data.img if the drive had 150GB free space. It is completely safe & wont do anything to damage an existing data.img.
You will need WinRar or 7zip to extract the .RAR for this download.
WARNING!: THIS HAS NOT BEEN TESTED, DO NOT MAKE YOUR DATA.IMG Larger than 2GB because Android may not recognize the SD Card after. I will test this later.
1024 = 1GB
2048 = 2GB
4096 = 4GB
8192 = 8GB
Just double the #!
Screenshot:
How to make a NEW(Fresh) Data.img:
NOTE: In order to start NEW you must have wiped your SD card or removed every file or folder such as: .REC, Cache, Android, OLD Data.img & any apps that took a folder on the card.
1. Open TopoResize
2. Select "Create New"
3. Select Save destination such as the SD Card & name it data
4. Select "Create File"
5. Select ext2 or ext3
6. Hit Ok & it will autorun.
DONE!
How to add space to an existing Data.img:
1. Open TopoResize
2. Select "Find File"
3. Locate file & select it
4. Use the size slider to select the extra space
5. Select "Resize File"
6. It will autorun
DONE!
How to subtract space to an existing Data.img:
Same instructions apply to add space just use the slider to go down & select resize file.
How to read the system.ext2 & transfer it over to the desktop:
1. Open Ext2explore
2. Select File & Open Image
3. Goto the system.ext2 & select it
4. Select Save
5. Select a destination to save it to. (Save it to a folder is preferred, so make one.)
Download HERE!
NEED HELP? Comment here.
Click to expand...
Click to collapse
Or you just install linux and make that all with one or two mouse clicks by your self
d0nate110 said:
Or you just install linux and make that all with one or two mouse clicks by your self
Click to expand...
Click to collapse
That's not an option for everyone , so Viper's tool is very useful for those people (like me) .
Captain_Throwback said:
That's not an option for everyone , so Viper's tool is very useful for those people (like me) .
Click to expand...
Click to collapse
For me it is ONLY option, cuz with linux I can apply my lovely BLAZN theme to any Froyo etc. Release what I want
Jandyman said:
You kno the way if you had an android device you would have sd storage and phone storage? and phone storage would be used for apps? well this data.img is lik a virtual phone memory, When you install apps they are stored on the data.img. And for alot of of ppl 256mb isnt enough, but unlike physical harware phone memory the data.img can be made bigger. understand?
Also a big tanks viper matrix, i was looking for a way to do this a couple weeks ago, i got it sorted by using someones modified rootfs to create a new data.img but this application will probly still come in handy
Click to expand...
Click to collapse
making sure I understand, under sd card in settings....phone free space, this is what it does...makes that free space bigger? more storage.?
Resized the img file from 512MB to 2 gigs, but I'm using the HD2 Nexus ROM, and it doesn't report the correct disk space usage. It still shows like 65MB free as it did before resizing. The file resized properly, but the phone doesn't report that.
Normal? If not, did I do something wrong? I followed the directions...

SD-Card Speed Up!

Speedup your SD-Card reading Speed as follow steps:
1-Download and install "SD Tools" app that attached below and run to inform your sdcard write and read speed before applying speedup patch.
2-Download and install "Script Manager".
3-download "sdcardspeed.zip" file and Move "sdcardspeed.sh" file into your SD-Card.
4-Run "Script Manager" program and select "sdcardspeed.sh".
in opened page: fill the "Run as Root" and "Run at Boot" check boxes and Save!
5- Reboot the phone and after reboot "Allow" superuser!
6-Run again the "SD Tools" and compare your SD-Card speed after applying the patch.
Progress in your SD-Card speed is depend on your SD-Card Class.
Why not asking for SU after ReBoot!? (Here's explaing of the problem!): Thanks to GlossGhost
Lol, it really does something, Read: 4.5 MB/s
thanks good staff for my x10 i will test it later
the clock on the before shot shows that it was taken after the other
There's actually a new app called "SD increase " that will take care of the script for u
Sent from my X10i using XDA App
ermm... is there really a need to open a new thread when someone has already posted in our X10 General section where it should belong?
increase sdcard read/write speeds
anyway, good effort though...
GlossGhost said:
Lol, it really does something, Read: 4.5 MB/s
Click to expand...
Click to collapse
mine - 9.6 mb/s before
now is 10 mb/s
how to Allow SU after reboot?
microsd SU16G
cache set to 3072
before write 5.8 read 17.2
after write 6.5 read 26.1
Before 6.7
17.7
After 5.6
19.2
MicroSD SU08G
before
2.6
14.7
after
4.6
25.1
thanks
nonentity said:
ermm... is there really a need to open a new thread when someone has already posted in our X10 General section where it should belong?
increase sdcard read/write speeds
anyway, good effort though...
Click to expand...
Click to collapse
You can see downloads number of the thread
Why would my write speed go up but not my read speed? In fact my read is slower than the write!
Sent from my X10a using XDA App
great find!!
before write 1,2 read 12
after write 1,2 read 13,8
nice!!
my results WITHOUT the script:
1 - Write: 3.2 MB / s Read: 12.1 MB / s
2 - Write: 5.4 MB / s Read: 13.3 MB / s
3 - Write: 9.1 MB / s Read: 14.5 MB / s
4 - Write: 10.1 MB / s Read: 14.9 MB / s
5 - Write: 11.0 MB / s Read: 14.6 MB / s
6 - Write: 10.4 MB / s Read: 14.6 MB / s
Now with the script:
Firstly, the script did not do anything!
Message from GScript "sdcardspeed.sh: / system / bin / echo: not found"
this happens because I have echo in the xbin folder
After changing the file "read_ahead_kb" manually to 3072,
1 - Write: 9.9 MB / s Read: 32.6 MB / s
2 - Write: 10.3 MB / s Read: 29.8 MB / s
3 - Write: 10.3 MB / s Read: 30.3 MB / s
Conclusion,
first we need to make 3 or 4 tests without the script to get the real speeds, and secondly, only the reading speed increased (is already good enough).
Question: How does "read_ahead" could increase the writing speed?
Why not asking for SU after ReBoot!? (Here's explaing of the problem!)
memazy said:
mine - 9.6 mb/s before
now is 10 mb/s
how to Allow SU after reboot?
Click to expand...
Click to collapse
Okay, so I think everybody know's that when you turn on the phone, it's "Preparing SD Card" so the Script Manager is starting earlier than the sd card (i know the card is not starting but preparing). So the manager starts, and searches for the script, but there is NO sd card (because the sd card is preparing...) and what? Loading the script FAILS! That's why the manager don't ask for SuperUser permissions. That's why You have to move the "sdcardspeed.sh" to the INTERNAL MEMORY (I suggest moving it to the root folder of the INTERNAL MEMORY where are all the folders: system, sdcard.. etc) then you do all the instructions below.
Here's MY instructions:
1-Download and install "SD Tools" app that attached below and run to inform your sdcard write and read speed before applying speedup patch.
(attached @ first post!)
2-Download and install "Script Manager".
(attached @ first post!)
3-Download "sdcardspeed.zip" file and Move "sdcardspeed.sh" file into your SD-Card.
(attached @ first post!)
4-Use something like Root Explorer and move the "sdcardspeed.sh" file to the root folder of the INTERNAL MEMORY.
5-Run "Script Manager" search for the "sdcardspeed.sh" in the INTERNAL MEMORY not at the EXTERNAL MEMORY!" and select it.
6-In opened page: fill the "Run as Root" and "Run at Boot" check boxes and Save!
7- Reboot the phone and after reboot "Allow" superuser!
8-Run again the "SD Tools" and compare your SD-Card speed after applying the patch.
____________________________________________
That's from me
Nice one
Before:
5.9 and 15.5
After
9.6 and 46.8
Read speed increased by 3 times!!! Good one mate..
sony ericsson E10i (x10 mini)
To what cache/buffer size does this script increase the stock value?
My sd has the fastest speeds with 2048kb...
Does this work for 2.1?
I've changed the cache size manually with Root Explorer and I've seen a huge jump in my read and write speeds.
The only issue is that the change I made goes back to default when I reboot my phone.
I've seen other MODs but it required for me to have 2.2, which is why I'm asking.
vitas0y said:
Does this work for 2.1?
I've changed the cache size manually with Root Explorer and I've seen a huge jump in my read and write speeds.
The only issue is that the change I made goes back to default when I reboot my phone.
I've seen other MODs but it required for me to have 2.2, which is why I'm asking.
Click to expand...
Click to collapse
there's a guid in this thread
http://forum.xda-developers.com/showthread.php?t=1013554
before:
write : 4.0 mb/s
read : 11.9 mb/s
after:
write : 1.3 mb/s
read : 99.4 mb/s
something must be wrong... write speed 4x less and read speed 9x more

[Q] Configure and test Zram

I compiled a kernel with SWAP and Zram capability and set up a compcache in RAM.
Is there a way to test the compcache capability?
Entering "free" in Terminal reports that Zram is used but not much.
How can I configure Zram, so it is used way more often?
Furthermore:
is xmvmalloc necessary for compcache?
I only use lzo_compress and decomress and zram modules.
€dit:
I set up zram as described here:
http://code.google.com/p/compcache/wiki/CompilingAndUsingNew
Entering "free" shows, that I have active zram.
But I didn't initialise with rzscontrol with init command as I don't have it.
Is zram working without rzscontrol?
free shows, that there is a little data in the zram.
nobody?

[Q] swap memory created not used by phone

i have accent A400 android phone with 512 ram i have used roehsoft ram expander o create 512 swap ram and it worked and when i lanched a hd game and switched to roehsoft ram expander the swap memry was used after i rebooted my phone and created 715 ram and launched the game it exit and and it only used 1 mb ram of the available swap ram

AVD/HAXM RAM error

When i lauch a AVD in the emulator i get... "the memory needed by this avd exceeds the max specified in your HAXM configuration". When i edit/adjust the ram in the AVD to be eual or less than the HAXM config(dropping it to 768, making them eual) then relaunch the avd, the ram size remains 1024 and the same error messege is given. In haxm set up, my ram range is 512 to 949mb(default 512). I manually set haxm ram size to 768. No matter what value i assign for the AVD ram it stays 1024 when launched. Is there something i am missing as to how to save the AVD ram changes. I hope there is a answwer, I would like to have it running correctly to use with some developement tutorials. Any help would be greatly appreciated.

Categories

Resources