General :: Changing Ext4 Partition To Swap Without Having To Format Entire SDCard?
Apr 27, 2013
One of devs from my device had told us that he'll move system and data images from sdcard to SD ext, but actually he left before doing this so now I'm stuck with useless 5gb ext4 partition on my scard. I'd format it and then change partitions if my sdcard wouldn't be filled with over 20GB of various files. Is it possible to change the size of the second partition to about 500 MB and turn it from ext4 to swap without formatting entire sdcard?
R800i
View 6 Replies
May 6, 2012
Basically, it's a permissions problem. I've tried using Permissions fix on CWM but with no luck. As FAT doesn't have a permissions subsystem, seems like there is no problem with it, but as EXT4 has it, everytime the phone creates a new file/folder, it cannot read its own file.
Although I can connect and see the files on the computer, they're marked with a padlock. It means I don't have permission to access it.
I can regain access to the file and the phone can read it back again, but it's a pain in the place if everytime the phone creates a file, I have to put it back to the computer and redo the permissions sets. It can't even view it's own files. I've already tried to set the SD card root permission to myself, and with everyone capable of read/write access. But unfortunately, newly created folders aren't affected by this.
As far as it looks like, it creates a 'user' for every app that makes the file.
For example, the folders on that picture were created by the camera software, so the user of both is "10041 - user #10041". It has R/W access, but nobody else has access to even see what's inside.
I really enjoyed the transfer speeds with EXT4 (I'm on Ubuntu 12.04), even inside the phone and outside, using USB cable and apps feels snappier. I don't want to go back to FAT32..
I'm using a Motorola Atrix 4G and Morrisoft CM7 latest buid (Custom ROM).
Just to clear things up: Device CAN read and write files under EXT4, but it trips on its own tail by settings permissions badly.
View 2 Replies
View Related
Aug 26, 2012
I can't figure what is exactly meaning the Partition Sdcard values in CWM.
I have an i9000, with 8Gb of flash. Some are system reserved. Available is around 6Gb.
When i run CWM, i can partition my sdcard, but i don't see what means the possible values (for 256 to 4096).
This is obviously not ruling the space left on /sdcard mountpoint (i partition to 2048, i still have nearly 6Gb available)... So what exactly means partition sdcard from CWM ??
i can't find an answer, and i dislike, when flashing rom, following commands i don't really master (generally a partition SD 2048 / SWAP 256 or SWAP 0).
View 1 Replies
View Related
Dec 13, 2012
is it possible to use swap on a sd-ext partition? I started to use simple 2ext and I don't know if it's that possible.
View 1 Replies
View Related
Dec 31, 2013
I just took over a second hand chinese android phone which appears to have swap enabled already.
The following is on the phone with SD card installed or removed completely
Terminal Emulator - Free - swap 196604 53036 143568
Diskinfo reports it as zram0 [swap]
The value of swap changes continually, so swap is active.
There is no swapper or any other swap app installed. How do I go about finding out how the phone is configured and if necessary undoing what was done and reconfiguring if necessary ?
View 2 Replies
View Related
Sep 11, 2013
What galaxy s3 mandatory internal sdcard partition in cwm.
View 1 Replies
View Related
Sep 29, 2013
I have a Mocordroid with scp6820a cpu rooted
First some objections:
1- The sdcard is used in vfat filesystem, move simplely /data folder to sdcard will be cause some problems
2- Copy /data to /mnt/sdcard/data will not work completly because we got some error of permission
Code:
adb shell
Code:
cp -r /data /mnt/sdcard
cp: can't create directory '/mnt/sdcard/data/misc/bluetoothd/FA:2B:B7:4E:90:59': Invalid argument
cp: can't create symlink '/mnt/sdcard/data/data/org.mariotaku.twidere/lib': Operation not permitted
cp: can't create '/mnt/sdcard/data/data/com.estrongs.android.pop/files/comm/tool_port': Operation not permitted
cp: can't create symlink '/mnt/sdcard/data/data/com.toss.removeappwidget/lib': Operation not permitted
[Code] .....
So first thing i change size of sdcard, decreasing the partition size, and add a second partition with 3 Gbytes using ext2. To do this
Unmount the sdcard in settings>storage>unmount sdcard. I need discover where is the partitions
Code:
fdisk /dev/block/mmcblk0
[Code] ....
For secure i reboot device, and umount card again. So format the second partition
Code:
mke2fs -t ext2 -m0 -b4096 /dev/block/mmcblk0p2
And reboot again. This was hopeful action that it would recognize the card. But not ...
Code:
# mkdir /mnt/sdext
mount -t ext2 /dev/block/mmcblk0p2 /mnt/sdext
mount: No such device
mount -t ext2 /dev/block/vold/179:2 /mnt/sdext
mount: No such device
In My Epic Fail I was not successful
BEFORE that I wrote i try several tentactivies, apps but i m thinking that use adb will be the more better.
What is the best way, my internal device have less than 200 MB internal, so is too little !!! Maybe i will need change fstab or init scripts.
View 6 Replies
View Related
Aug 17, 2012
my internal SDCARD is corrupted and the /data partition is unusable.
My device is i9003 and it's running on MIUI at the moment. By default MIUI didn't detect my external SD or my internal SD but after editing "vold.fstab" I was able to mount the first partition of my external SDCARD as external memory and everything was good, I could finally use the camera and pretty much do everything else.
But I was still unable to mount the second partition of my external SDCARD as my internal memory which meant none of my messages could be saved and the phone would pretty much go back to factory settings after a reboot, this apparently is because the /data partition (present on the internal memory) stores all the user data such as the time, the theme I'm using, etc and not having a /data partition meant none of these settings were really saved.
Having no internal memory also means I cannot install any apps such as Link2SD.
Moving on, after many hours of googling I found out that it might not be possible to mount the internal memory using "vold.fstab" and the only way to do it could be by mounting the memory manually during init.
I want to use the second partition of my external SDCARD as internal memory, this is likely to solve all my problems and make my phone usable again.
View 9 Replies
View Related
Apr 25, 2014
I've got a 3TB external drive drive hooked up to my Ouya running CM11 (Android 4.4)
I run Nzbget and Transmission in optware, and use CM primarily as a vehicle for XBMC so I need the space.
I had it in 2 ext4 partitions which needed a init script to mount under the stock OS.
I was hopping to get it working in a less hacky manner under CM.
I tried with the two parts, and no go so i redid it with one big partition with root as the UID and sdcard_rw as the GID.
Still no dice. I can access it in File Manager with elevated permissions, but no go in XBMC or other apps.
Also tried one big exFAT partioning with no luck.
I plugged in an 8g ntfs drive I had and it automounted it no problem.
What is the right way to configure the drive? We're a Linux household so sticking with ext2/3/4 would be ideal. NTFS I would like to avoid.
View 1 Replies
View Related
Dec 5, 2009
In Taskiller the amount of free memory is showing between 90-105mb. Is this normal? I have deleted text messages, cleared cache, deleting emails from inbox and trash etc. I going to get rid of a few apps too, but its a bummer if I cant have many apps due to it affecting memory!
Also I understand that if flash it with the Modaco custom ROM. I can create a swap partition, does this help a lot? Also would I lose quite a lot of the HTC Hero features such as Sense UI for example if I flash it with Modaco?
View 9 Replies
View Related
Jul 16, 2010
When ever I partition the sdcard it gives the option of installing a swap partition. I know that my ubuntu installation on my laptop installs a swap partition when I installed the operating system. Would there be any benefit for installing a swap partition on the sd card?
View 2 Replies
View Related
Nov 20, 2010
I know this is going to sound absurd, but would it be possible to for instance, buy a 4.3 inch (S)AMOLED screen and swap it with the DHD one?
View 3 Replies
View Related
Aug 1, 2010
Firstly, if I format the SD in the phone, will I lose the ext partition?
If not, how do I then format and check the ext partition?
View 2 Replies
View Related
Feb 8, 2012
I don't mean 12/24 hr format. I mean HH:mm:ss format. I want my status bar clock to display something like 23:59:59, I want the "seconds counter" included. How do I do this? Are there any app that can do this or I need to modify some system files (SystemUI.apk perhaps)? My phone is xperia mini pro (rooted).
View 3 Replies
View Related
May 3, 2010
I asked in a couple of places but nobody answered so i just tried making compcache work by myself. what i did was:
- use recovery to format external sd fat32+swap
- use galaxoconf to activate compcache setting it on default which is 25600 i think.
Now the thing is - how do i know if it works and did i even do it right?
View 18 Replies
View Related
Nov 11, 2010
Can someone please explain to me how to format and partition an SD card to use A2SD . Pls a step by step guide will be highly appreciated. I'm using leedroid 2.2f rom on my htc desire.
View 2 Replies
View Related
Feb 1, 2010
How to format the second partition on an SD Card using terminal emulator?I have been trying to format the second partition I created on an sd card using the terminal emulator.I have tried all the normal mkfs, mkpartfs, mkdosfs all of them say "<command>: not found".Though 'dd' works and clears the data it also destroys the File Allocation Table.I was trying to format the second partition of the sd card so that I can still use the sd card on my windows machine and view the files in the second partition.
View 2 Replies
View Related
Jun 8, 2009
I am having a bit of trouble with my current application. With a button at the beginning of my app, I send out Intents for two activities, one gets a camera object, and starts a preview screen. On top of that, in a separate layout, there is an activity with a translucent view, which shows a resource image (the user is trying to get the image he is actually taking to align with the translucent image) and a couple of textviews displaying a target phone orientation as well as the user's current phone orientation.
when I update the text value of one of my text views in my onSensorChanged() field, the system constantly reallocates 1.22MB and garbage collects it. I can only assume that this is because it is redrawing the entire layout with the translucent image and the text fields, because if I remove the view containing the translucent image from the layout, my text field updates 10x quicker and I don't have ridiculous heap growing / garbage collecting. I am wondering how to go about getting the text fields to update without redrawing the entire surface. I am very new to UI design, and this code was written by someone else before I took over the project, so I don't understand much of what is going on in the custom view he wrote to take care of the translucent image -- called MyView. I will post the code for the layout as well as the MyView code below.................................
View 4 Replies
View Related
Oct 8, 2013
I am running rooted stock Android 2.3 on LG E405 (no working 4.x ROMs exist for the device)
I have two questions:
1) What is the shell command to manually make android allow the PC to mount androids' (internal) partition as USB-drive? (I cannot think of right keywords to google this one up - )
2) How does android determine which partition is which (i.e. which one to remount for the PC when connecting in "USB storage" mode), beside vold.fstab and init.rc? On android 2.3 that info is not in "framework-res.apk", so where is it? In the partition table itself?
I had switched data partition with internal sdcard partition.
Here's how: Phone had a very small "/data" partition on /dev/block/mmcblk0p21 and large internal "/sdcard" partition on mmcblk0p20
So I reformatted mmcblk0p20 (ex-sdcard partition) into EXT4 and mmcblk0p21 (ex-data partition) into FAT32
Then I changed init.rc to mount mmcblk0p20 as /data type EXT4 and mmcblk0p21 as /sdcard type VFAT (mounting /sdcard was commented out in stock init.rc for some reason). This required modifying my boot image.
I have also set correct partition number in vold.fstab:
[#]dev_mount sdcard /mnt/sdcard auto /devices/platform/msm_sdcc.3/mmc_host[/#]
So basicly I now have a large /data partition and small internal /sdcard. I'm able install up to a gigabyte of APKs and it works fine.
However, when I connect to my PC via USB into "USB Storage" mode, the phone seems to still try to unmount what was previously sdcard partition (/dev/block/mmcblk0p20), instead of what is NOW an sdcard partition (/dev/block/mmcblk0p21) I can still send files to the phone via wi-fi and ADB, but the ability to mount it directly would be nice.
If I accidentally select "erase internal sdcard" from storage menu, that will also most likely erase what is now my /data partition, softbricking the phone. The "factory reset" option will probably only corrupt the sdcard.
View 1 Replies
View Related
Oct 19, 2012
I'm have been trying to create a second partition on my sd card using miniTool Partition Wizard.But in the end I never get a 2nd partition but just a smaller first one.My approach is as follows:
insert empty SD card (FAT32, 4GB)
open miniTool Partition Wizard
right click on SD card - "Move/Resize"
choose 1gb for unallocated space after - click ok
right click on 2nd partition and choose "create"
create 2nd partition with FAT32/Ext2/Ext3 (tried all options already) and "primary" and Cluster 4KB - click ok
Apply
Afterwards my SD card is still shown as one partition, but this has just 1gb less capacity then before.Neither the Wizard nor the phone detects the 2nd partition then.
View 1 Replies
View Related
Nov 24, 2012
I have 1 gb partition in ext 3 on my sdcard, i can update to ext 4 without format the sd card? there is a way?
View 9 Replies
View Related
Apr 23, 2014
I want to edit an ext4 file with Windows XP and and I haven't found a solution despite extensive research.
View 4 Replies
View Related
Jun 7, 2013
I have Xperia Tipo(Rooted)
I have installed Asphalt 7.
The app data of the game(1.31GB) has filled my SD
Can I move the app data to EXT4.?
I have already done the partition(EXT4).
View 1 Replies
View Related
Jan 14, 2013
I have bought a cheap chinese phone that had a 4g rom. 512mb is mapped to data as p3 and p4 is mapped to internal storage which is 2g.
I have managed to work out how to delete partition4 and extend partition3 as they follow on from each other.
However how do I remove all links to it in the system as it still tries to mount it on boot even though it isn't there.
I have removed the line from vold.fstab and that just crashed the external and internal sdcards and the storage section inside the system settings.
View 1 Replies
View Related
Jan 25, 2014
my android phone is Alps MITOT300.I tried to format my mini sdcard to ext4 type using MiniTools Partition Wizard on windows 7 , but when I put it back to my smartphone it keep saying "Damaged SD Card" , I format it using different phone but it keep saying the same thing over and over ...
The real problem is , it doesn't detected on my Windows (even using MiniTools Partition Wizard) , some Forum says to format it on PC , but how could I format it if my micro Sd card undetectable on my PC ?
Conclusion :
- Micro Sd Card Fully formated to Ext4 using MiniTools Partition Wizard
- Keep saying "Damaged SD Card" on many Different Android Smartphone
- microSD Card is Undetectable on windows 7 (using Card Reader or USB Cable)
View 3 Replies
View Related
Oct 29, 2012
I am using cm7 nightly on my galaxy ace, I have swap partition, ihave A2SDGUI and this script, catch to sd working, but swap not working.
How can I enable swap?
View 2 Replies
View Related
Nov 10, 2012
I rooted My My micromax A87 with XDA and I was Succeeded in It, and then I Partitioned my SD Card into three,(FAT-32 + EXT 3 + Linux Swap) with Parition Mini Tool.then I Installed Link2SD and Swapper 2 its all fine but microsd is too slow to Link and Swap because its (Class 4).but it run the temple run and some HD Games with Small Lag.
So I Experimented with other swap tools like "MemoryInfo & Swapfile Check and ROEHSOFT RAM-EXPANDER (SWAP)"and then Uninstalled these. but there is the problem starts. Now in my A87 it shows a swap cache always on. I opened adb shell and look for free.
I wonder that there is a swap file generated around 50 MB but I cant see it in my External SD or Internal Memory.So I Removed my SD Card and then check again, Still I see the same swap value 50 MB.
My Internal memory has no change in the value (available space not reduced) it looks like the same value before I Install the MemoryInfo & Swapfile Check + ROEHSOFT RAM-EXPANDER (SWAP).
View 4 Replies
View Related
Aug 16, 2010
I replaced my original sdcard with a sandisk 16gb card. Everything went well until I started getting these blasted read on errors. Earlymon suggested a fix from another board but I don't have a stand alone card reader so I couldn't do it that way.
I was wondering if I just backed up all my stuff from my sdcard to my iMac and then just reformatted my sdcard via the phone, would that solve my problems?
View 3 Replies
View Related
Nov 14, 2010
Does anyone know if the Behold II supports ext4 partitions? I was thinking of upgrading my ext3 app2sd to ext4 but I wanted to make sure that the phone supported it first.
View 1 Replies
View Related
Feb 22, 2009
I've got some code that downloads mp3s remotely over a streaming url connection... This all works fine but my problem is once the file is complete and I pull up the music app it's not there. A reboot of the phone and it now shows up... anyone know how to force this refresh to occur from without my code?
View 3 Replies
View Related