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?
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.
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
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.
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?
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?
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).
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.
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.................................
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.
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.
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.
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)
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).
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?
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?